Skip to content

Commit

Permalink
minor #3675 add missing code block directive (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.4 branch.

Discussion
----------

add missing code block directive

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.4+
| Fixed tickets |

Thought we already had a pull request for this but didn't find one.

Commits
-------

3ace4d6 add missing code block directive
  • Loading branch information
weaverryan committed Mar 17, 2014
2 parents f893883 + 3ace4d6 commit 07822b8
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 07822b8

Please sign in to comment.