class SimplePreAuthenticationListener implements ListenerInterface

deprecated since Symfony 4.2, use Guard instead.

SimplePreAuthenticationListener implements simple proxying to an authenticator.

Methods

__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, SimplePreAuthenticatorInterface $simpleAuthenticator, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, AuthenticationTrustResolverInterface $trustResolver = 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

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

Parameters

TokenStorageInterface $tokenStorage
AuthenticationManagerInterface $authenticationManager
string $providerKey
SimplePreAuthenticatorInterface $simpleAuthenticator
LoggerInterface $logger
EventDispatcherInterface $dispatcher
AuthenticationTrustResolverInterface $trustResolver

setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

Parameters

SessionAuthenticationStrategyInterface $sessionStrategy

handle(GetResponseEvent $event)

Handles basic authentication.

Parameters

GetResponseEvent $event