CustomAuthenticationFailureHandler
in package
implements
AuthenticationFailureHandlerInterface
Tags
Table of Contents
Interfaces
- AuthenticationFailureHandlerInterface
- Interface for custom authentication failure handlers.
Properties
- $handler : mixed
Methods
- __construct() : mixed
- onAuthenticationFailure() : Response
- This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
Properties
$handler
private
mixed
$handler
Methods
__construct()
public
__construct(AuthenticationFailureHandlerInterface $handler, array<string|int, mixed> $options) : mixed
Parameters
- $handler : AuthenticationFailureHandlerInterface
- $options : array<string|int, mixed>
-
Options for processing a successful authentication attempt
onAuthenticationFailure()
This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
public
onAuthenticationFailure(Request $request, AuthenticationException $exception) : Response
Parameters
- $request : Request
- $exception : AuthenticationException