class BasicAuthenticationListener implements ListenerInterface

BasicAuthenticationListener implements Basic HTTP authentication.

Methods

__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint, LoggerInterface $logger = null)

No description

handle(GetResponseEvent $event)

Handles basic authentication.

setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

Details

at line 40
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, AuthenticationEntryPointInterface $authenticationEntryPoint, LoggerInterface $logger = null)

Parameters

TokenStorageInterface $tokenStorage
AuthenticationManagerInterface $authenticationManager
string $providerKey
AuthenticationEntryPointInterface $authenticationEntryPoint
LoggerInterface $logger

at line 57
handle(GetResponseEvent $event)

Handles basic authentication.

Parameters

GetResponseEvent $event

at line 104
setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

Parameters

SessionAuthenticationStrategyInterface $sessionStrategy