interface AuthenticationFailureHandlerInterface
Interface for custom authentication failure handlers.
If you want to customize the failure handling process, instead of overwriting the respective listener globally, you can set a custom failure handler which implements this interface.
Response | onAuthenticationFailure(Request $request, AuthenticationException $exception) This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener. |
This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
Request | $request | |
AuthenticationException | $exception |
Response | The response to return, never null |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.html