class UsernamePasswordJsonAuthenticationListener implements ListenerInterface

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

Traits

LegacyListenerTrait deprecated

Methods

handle(GetResponseEvent $event) deprecated

No description

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

No description

getResponse()

No description

setResponse(Response $response)

No description

hasResponse()

No description

__invoke(RequestEvent $event)

{@inheritdoc}

setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

Details

in LegacyListenerTrait at line 27
handle(GetResponseEvent $event) deprecated

deprecated since Symfony 4.3, use __invoke() instead

Parameters

GetResponseEvent $event

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

Parameters

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

in LegacyListenerTrait at line 41
getResponse()

in LegacyListenerTrait at line 46
setResponse(Response $response)

Parameters

Response $response

in LegacyListenerTrait at line 51
hasResponse()

at line 80
__invoke(RequestEvent $event)

{@inheritdoc}

Parameters

RequestEvent $event

at line 200
setSessionAuthenticationStrategy(SessionAuthenticationStrategyInterface $sessionStrategy)

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

Parameters

SessionAuthenticationStrategyInterface $sessionStrategy