DefaultAuthenticationFailureHandler

class DefaultAuthenticationFailureHandler implements AuthenticationFailureHandlerInterface

Class with the default authentication failure handling logic.

Can be optionally be extended from by the developer to alter the behaviour while keeping the default behaviour.

Methods

__construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null)

Constructor.

array getOptions()

Gets the options.

setOptions(array $options)

Sets the options.

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

__construct(HttpKernelInterface $httpKernel, HttpUtils $httpUtils, array $options = array(), LoggerInterface $logger = null)

Constructor.

Parameters

HttpKernelInterface $httpKernel
HttpUtils $httpUtils
array $options Options for processing a failed authentication attempt
LoggerInterface $logger Optional logger

array getOptions()

Gets the options.

Return Value

array An array of options

setOptions(array $options)

Sets the options.

Parameters

array $options An array of options

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:13:33
Comments
Leave a Comment

Please login to continue.