mediatekformation

SimpleFormAuthenticationListener extends AbstractAuthenticationListener
in package

The AbstractAuthenticationListener is the preferred base class for all browser-/HTTP-based authentication requests.

Tags
author

Jordi Boggiano j.boggiano@seld.be

deprecated

since Symfony 4.2, use Guard instead.

Table of Contents

$authenticationManager  : mixed
$httpUtils  : mixed
$logger  : mixed
$options  : mixed
$providerKey  : mixed
$csrfTokenManager  : mixed
$dispatcher  : mixed
$failureHandler  : mixed
$rememberMeServices  : mixed
$sessionStrategy  : mixed
$simpleAuthenticator  : mixed
$successHandler  : mixed
$tokenStorage  : mixed
__construct()  : mixed
__invoke()  : mixed
authenticate()  : mixed
Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.
setRememberMeServices()  : mixed
Sets the RememberMeServices implementation to use.
supports()  : bool|null
Tells whether the authenticate() method should be called or not depending on the incoming request.
attemptAuthentication()  : TokenInterface|Response|null
Performs authentication.
requiresAuthentication()  : bool
Whether this request requires authentication.
onFailure()  : Response
onSuccess()  : Response

Properties

Methods

__construct()

public __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, SessionAuthenticationStrategyInterface $sessionStrategy, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler[, array<string|int, mixed> $options = [] ][, LoggerInterface $logger = null ][, EventDispatcherInterface $dispatcher = null ][, CsrfTokenManagerInterface $csrfTokenManager = null ][, SimpleFormAuthenticatorInterface $simpleAuthenticator = null ]) : mixed
Parameters
$tokenStorage : TokenStorageInterface
$authenticationManager : AuthenticationManagerInterface
$sessionStrategy : SessionAuthenticationStrategyInterface
$httpUtils : HttpUtils
$providerKey : string
$successHandler : AuthenticationSuccessHandlerInterface
$failureHandler : AuthenticationFailureHandlerInterface
$options : array<string|int, mixed> = []
$logger : LoggerInterface = null
$dispatcher : EventDispatcherInterface = null
$csrfTokenManager : CsrfTokenManagerInterface = null
$simpleAuthenticator : SimpleFormAuthenticatorInterface = null
Tags
throws
InvalidArgumentException

In case no simple authenticator is provided

Return values
mixed

authenticate()

Does whatever is required to authenticate the request, typically calling $event->setResponse() internally.

public abstract authenticate(RequestEvent $event) : mixed
Parameters
$event : RequestEvent
Return values
mixed

supports()

Tells whether the authenticate() method should be called or not depending on the incoming request.

public abstract supports(Request $request) : bool|null

Returning null means authenticate() can be called lazily when accessing the token storage.

Parameters
$request : Request
Return values
bool|null

requiresAuthentication()

Whether this request requires authentication.

protected requiresAuthentication(Request $request) : bool
Parameters
$request : Request
Return values
bool

Search results