UsernamePasswordJsonAuthenticationListener

class UsernamePasswordJsonAuthenticationListener implements ListenerInterface

UsernamePasswordJsonAuthenticationListener is a stateless implementation of an authentication via a JSON document composed of a username and a password.

Methods

__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, HttpUtils $httpUtils, $providerKey, AuthenticationSuccessHandlerInterface $successHandler = null, AuthenticationFailureHandlerInterface $failureHandler = null, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $eventDispatcher = null, PropertyAccessorInterface $propertyAccessor = null)
handle(GetResponseEvent $event)

This interface must be implemented by firewall listeners.

Details

__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, HttpUtils $httpUtils, $providerKey, AuthenticationSuccessHandlerInterface $successHandler = null, AuthenticationFailureHandlerInterface $failureHandler = null, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $eventDispatcher = null, PropertyAccessorInterface $propertyAccessor = null)

Parameters

TokenStorageInterface $tokenStorage
AuthenticationManagerInterface $authenticationManager
HttpUtils $httpUtils
$providerKey
AuthenticationSuccessHandlerInterface $successHandler
AuthenticationFailureHandlerInterface $failureHandler
array $options
LoggerInterface $logger
EventDispatcherInterface $eventDispatcher
PropertyAccessorInterface $propertyAccessor

handle(GetResponseEvent $event)

This interface must be implemented by firewall listeners.

Parameters

GetResponseEvent $event