mediatekformation

SimplePreAuthenticationListener extends AbstractListener
in package
implements ListenerInterface Uses LegacyListenerTrait

SimplePreAuthenticationListener implements simple proxying to an authenticator.

Tags
author

Jordi Boggiano j.boggiano@seld.be

deprecated

since Symfony 4.2, use Guard instead.

Interfaces, Classes, Traits and Enums

ListenerInterface
Interface that must be implemented by firewall listeners.

Table of Contents

$authenticationManager  : mixed
$dispatcher  : mixed
$logger  : mixed
$providerKey  : mixed
$sessionStrategy  : mixed
$simpleAuthenticator  : mixed
$tokenStorage  : mixed
$trustResolver  : mixed
__construct()  : mixed
__invoke()  : mixed
authenticate()  : mixed
Handles basic authentication.
setSessionAuthenticationStrategy()  : mixed
Call this method if your authentication token is stored to a session.
supports()  : bool|null
Tells whether the authenticate() method should be called or not depending on the incoming request.
migrateSession()  : mixed

Properties

Methods

__construct()

public __construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator[, LoggerInterface $logger = null ][, EventDispatcherInterface $dispatcher = null ][, AuthenticationTrustResolverInterface $trustResolver = null ]) : mixed
Parameters
$tokenStorage : TokenStorageInterface
$authenticationManager : AuthenticationManagerInterface
$providerKey : string
$simpleAuthenticator : SimplePreAuthenticatorInterface
$logger : LoggerInterface = null
$dispatcher : EventDispatcherInterface = null
$trustResolver : AuthenticationTrustResolverInterface = null
Return values
mixed

supports()

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

public 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

Search results