Skip to content

Commit

Permalink
fixed line wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hudson authored and Sam Hudson committed Mar 9, 2014
1 parent e4f5c6e commit 21e3536
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cookbook/security/api_key_authentication.rst
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,11 @@ exception in ``refreshUser()``.
Handling Exceptions
-------------------

In order for you're ``ApiKeyAuthentication`` to correctly display a 403 http status when either bad credentials, or authentication fails you will need to implement the ``AuthenticationFailureHandlerInterface`` on your Authenticator. This will provide a method ``onAuthenticationFailure`` which you can then return a ``Response`` with.
In order for you're ``ApiKeyAuthentication`` to correctly display a 403
http status when either bad credentials, or authentication fails you will
need to implement the ``AuthenticationFailureHandlerInterface`` on your
Authenticator. This will provide a method ``onAuthenticationFailure`` which
you can then return a ``Response`` with.

// src/Acme/HelloBundle/Security/ApiKeyAuthenticator.php
namespace Acme\HelloBundle\Security;
Expand Down

0 comments on commit 21e3536

Please sign in to comment.