SimpleFormAuthenticationListener
class SimpleFormAuthenticationListener extends AbstractAuthenticationListener
Properties
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, SimpleFormAuthenticatorInterface $simpleAuthenticator = null) | |
| setRememberMeServices(RememberMeServicesInterface $rememberMeServices) Sets the RememberMeServices implementation to use. | from AbstractAuthenticationListener |
| handle(GetResponseEvent $event) Handles form based authentication. | from AbstractAuthenticationListener |
bool | requiresAuthentication(Request $request) Whether this request requires authentication. | |
TokenInterface|Response|null | attemptAuthentication(Request $request) Performs authentication. | |
Details
Parameters
Exceptions
Sets the RememberMeServices implementation to use.
Parameters
Handles form based authentication.
Parameters
Exceptions
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.
Parameters
Return Value
Performs authentication.
Parameters
Return Value
TokenInterface|Response|null | The authenticated token, null if full authentication is not possible, or a Response |
Exceptions