class SimplePreAuthenticationListener implements ListenerInterface

SimplePreAuthenticationListener implements simple proxying to an authenticator.

Methods

__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)

No description

setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

Call this method if your authentication token is stored to a session.

handle(GetResponseEvent $event)

Handles basic authentication.

Details

at line 54
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)

Parameters

TokenStorageInterface $tokenStorage A TokenStorageInterface instance
AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance
string $providerKey
SimplePreAuthenticatorInterface $simpleAuthenticator A SimplePreAuthenticatorInterface instance
LoggerInterface $logger A LoggerInterface instance
EventDispatcherInterface $dispatcher An EventDispatcherInterface instance

at line 73
setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

Call this method if your authentication token is stored to a session.

Parameters

SessionAuthenticationStrategyInterface $sessionStrategy

at line 81
handle(GetResponseEvent $event)

Handles basic authentication.

Parameters

GetResponseEvent $event