Skip to content

Commit

Permalink
add missing code block directive
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Mar 13, 2014
1 parent f893883 commit 3ace4d6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cookbook/security/api_key_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,13 @@ Handling Authentication Failure
-------------------------------

In order for your ``ApiKeyAuthentication`` to correctly display a 403
http status when either bad credentials or authentication fails you will
need to implement the :class:`Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface` on your
Authenticator. This will provide a method ``onAuthenticationFailure`` which
http status when either bad credentials or authentication fails you will
need to implement the :class:`Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface` on your
Authenticator. This will provide a method ``onAuthenticationFailure`` which
you can use to create an error ``Response``.

.. code-block:: php
// src/Acme/HelloBundle/Security/ApiKeyAuthenticator.php
namespace Acme\HelloBundle\Security;
Expand Down

0 comments on commit 3ace4d6

Please sign in to comment.