class UsernamePasswordJsonAuthenticationListener implements ListenerInterface
UsernamePasswordJsonAuthenticationListener is a stateless implementation of an authentication via a JSON document composed of a username and a password.
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $successHandler = null, AuthenticationFailureHandlerInterface $failureHandler = null, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $eventDispatcher = null, PropertyAccessorInterface $propertyAccessor = null) | ||
handle(GetResponseEvent $event) | ||
setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy) Call this method if your authentication token is stored to a session. |
TokenStorageInterface | $tokenStorage | |
AuthenticationManagerInterface | $authenticationManager | |
HttpUtils | $httpUtils | |
string | $providerKey | |
AuthenticationSuccessHandlerInterface | $successHandler | |
AuthenticationFailureHandlerInterface | $failureHandler | |
array | $options | |
LoggerInterface | $logger | |
EventDispatcherInterface | $eventDispatcher | |
PropertyAccessorInterface | $propertyAccessor |
GetResponseEvent | $event |
Call this method if your authentication token is stored to a session.
SessionAuthenticationStrategyInterface | $sessionStrategy |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Security/Http/Firewall/UsernamePasswordJsonAuthenticationListener.html