AuthenticationFailureHandlerInterface

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.

Methods

Response onAuthenticationFailure(Request $request, AuthenticationException $exception)

This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Details

Response onAuthenticationFailure(Request $request, AuthenticationException $exception)

This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Parameters

Request $request
AuthenticationException $exception

Return Value

Response The response to return, never null
doc_Symfony
2016-10-28 06:06:28
Comments
Leave a Comment

Please login to continue.