File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -214,11 +214,13 @@ Handling Authentication Failure
214
214
-------------------------------
215
215
216
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\C omponent\S ecurity\H ttp\A uthentication\A uthenticationFailureHandlerInterface ` on your
219
- Authenticator. This will provide a method ``onAuthenticationFailure `` which
217
+ http status when either bad credentials or authentication fails you will
218
+ need to implement the :class: `Symfony\C omponent\S ecurity\H ttp\A uthentication\A uthenticationFailureHandlerInterface ` on your
219
+ Authenticator. This will provide a method ``onAuthenticationFailure `` which
220
220
you can use to create an error ``Response ``.
221
221
222
+ .. code-block :: php
223
+
222
224
// src/Acme/HelloBundle/Security/ApiKeyAuthenticator.php
223
225
namespace Acme\HelloBundle\Security;
224
226
You can’t perform that action at this time.
0 commit comments