class X509AuthenticationListener extends AbstractPreAuthenticatedListener

X509 authentication listener.

Properties

protected $logger from AbstractPreAuthenticatedListener

Methods

__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, string $userKey = 'SSL_CLIENT_S_DN_Email', string $credentialKey = 'SSL_CLIENT_S_DN', LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)

No description

handle(GetResponseEvent $event)

Handles pre-authentication.

setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

array
getPreAuthenticatedData(Request $request)

Gets the user and credentials from the Request.

Details

at line 31
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, string $providerKey, string $userKey = 'SSL_CLIENT_S_DN_Email', string $credentialKey = 'SSL_CLIENT_S_DN', LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null)

Parameters

TokenStorageInterface $tokenStorage
AuthenticationManagerInterface $authenticationManager
string $providerKey
string $userKey
string $credentialKey
LoggerInterface $logger
EventDispatcherInterface $dispatcher

final handle(GetResponseEvent $event)

Handles pre-authentication.

Parameters

GetResponseEvent $event

setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

Parameters

SessionAuthenticationStrategyInterface $sessionStrategy

at line 42
protected array getPreAuthenticatedData(Request $request)

Gets the user and credentials from the Request.

Parameters

Request $request

Return Value

array An array composed of the user and the credentials