CustomAuthenticationSuccessHandler
in package
implements
AuthenticationSuccessHandlerInterface
Tags
Interfaces, Classes, Traits and Enums
- AuthenticationSuccessHandlerInterface
- Interface for a custom authentication success handler.
Table of Contents
- $handler : mixed
- __construct() : mixed
- onAuthenticationSuccess() : Response
- This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
Properties
$handler
private
mixed
$handler
Methods
__construct()
public
__construct(AuthenticationSuccessHandlerInterface $handler, array<string|int, mixed> $options, string $providerKey) : mixed
Parameters
- $handler : AuthenticationSuccessHandlerInterface
- $options : array<string|int, mixed>
-
Options for processing a successful authentication attempt
- $providerKey : string
-
The provider key
Return values
mixed —onAuthenticationSuccess()
This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
public
onAuthenticationSuccess(Request $request, TokenInterface $token) : Response
Parameters
- $request : Request
- $token : TokenInterface