UsernamePasswordFormAuthenticationListener
class UsernamePasswordFormAuthenticationListener extends AbstractAuthenticationListener
UsernamePasswordFormAuthenticationListener is the default implementation of an authentication via a simple form composed of a username and a password.
Properties
protected | $options | from AbstractAuthenticationListener | |
protected | $logger | from AbstractAuthenticationListener | |
protected | $authenticationManager | from AbstractAuthenticationListener | |
protected | $providerKey | from AbstractAuthenticationListener | |
protected | $httpUtils | from AbstractAuthenticationListener |
Methods
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, SessionAuthenticationStrategyInterface $sessionStrategy, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, CsrfTokenManagerInterface $csrfTokenManager = null)
No description
setRememberMeServices(RememberMeServicesInterface $rememberMeServices)
Sets the RememberMeServices implementation to use.
bool
TokenInterface|Response|null
Details
__construct(TokenStorageInterface $tokenStorage, AuthenticationManagerInterface $authenticationManager, SessionAuthenticationStrategyInterface $sessionStrategy, HttpUtils $httpUtils, string $providerKey, AuthenticationSuccessHandlerInterface $successHandler, AuthenticationFailureHandlerInterface $failureHandler, array $options = array(), LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, CsrfTokenManagerInterface $csrfTokenManager = null)
setRememberMeServices(RememberMeServicesInterface $rememberMeServices)
Sets the RememberMeServices implementation to use.
protected bool
requiresAuthentication(Request $request)
Whether this request requires authentication.
The default implementation only processes requests to a specific path, but a subclass could change this to only authenticate requests where a certain parameters is present.
protected TokenInterface|Response|null
attemptAuthentication(Request $request)
Performs authentication.