Documentation

DefaultAuthenticationFailureHandler
in package
implements AuthenticationFailureHandlerInterface

Class with the default authentication failure handling logic.

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

Tags
author

Fabien Potencier fabien@symfony.com

author

Johannes M. Schmitt schmittjoh@gmail.com

author

Alexander iam.asm89@gmail.com

Table of Contents

Interfaces

AuthenticationFailureHandlerInterface
Interface for custom authentication failure handlers.

Properties

$defaultOptions  : mixed
$httpKernel  : mixed
$httpUtils  : mixed
$logger  : mixed
$options  : mixed

Methods

__construct()  : mixed
getOptions()  : array<string|int, mixed>
Gets the options.
onAuthenticationFailure()  : Response
This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
setOptions()  : mixed

Properties

$defaultOptions

protected mixed $defaultOptions = ['failure_path' => null, 'failure_forward' => false, 'login_path' => '/login', 'failure_path_parameter' => '_failure_path']

Methods


        
On this page

Search results