mediatekformation

SimpleAuthenticationHandler
in package
implements AuthenticationFailureHandlerInterface, AuthenticationSuccessHandlerInterface

Class to proxy authentication success/failure handlers.

Events are sent to the SimpleAuthenticatorInterface if it implements the right interface, otherwise (or if it fails to return a Response) the default handlers are triggered.

Tags
author

Jordi Boggiano j.boggiano@seld.be

deprecated

since Symfony 4.2, use Guard instead.

Interfaces, Classes, Traits and Enums

AuthenticationFailureHandlerInterface
Interface for custom authentication failure handlers.
AuthenticationSuccessHandlerInterface
Interface for a custom authentication success handler.

Table of Contents

$failureHandler  : mixed
$logger  : mixed
$simpleAuthenticator  : mixed
$successHandler  : mixed
__construct()  : mixed
onAuthenticationFailure()  : Response
This is called when an interactive authentication attempt fails. This is called by authentication listeners inheriting from AbstractAuthenticationListener.
onAuthenticationSuccess()  : Response
This is called when an interactive authentication attempt succeeds. This is called by authentication listeners inheriting from AbstractAuthenticationListener.

Properties

Methods

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
Return values
Response

Search results