SimplePreAuthenticationListener
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) | ||
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)
Parameters
TokenStorageInterface | $tokenStorage | |
AuthenticationManagerInterface | $authenticationManager | |
string | $providerKey | |
SimplePreAuthenticatorInterface | $simpleAuthenticator | |
LoggerInterface | $logger | |
EventDispatcherInterface | $dispatcher |
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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Firewall/SimplePreAuthenticationListener.html