We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentf893883 commit3ace4d6Copy full SHA for 3ace4d6
cookbook/security/api_key_authentication.rst
@@ -214,11 +214,13 @@ Handling Authentication Failure
214
-------------------------------
215
216
In order for your ``ApiKeyAuthentication`` to correctly display a 403
217
-http status when either bad credentials or authentication fails you will
218
-need to implement the:class:`Symfony\Component\Security\Http\Authentication\AuthenticationFailureHandlerInterface` on your
219
-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
220
you can use to create an error ``Response``.
221
222
+..code-block::php
223
+
224
// src/Acme/HelloBundle/Security/ApiKeyAuthenticator.php
225
namespace Acme\HelloBundle\Security;
226