SimpleFormAuthenticationListener

SimpleFormAuthenticationListener

class SimpleFormAuthenticationListener extends 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, SimpleFormAuthenticatorInterface $simpleAuthenticator = null)

Constructor.

setRememberMeServices(RememberMeServicesInterface $rememberMeServices)

Sets the RememberMeServices implementation to use.

from AbstractAuthenticationListener
handle(GetResponseEvent $event)

Handles form based authentication.

from AbstractAuthenticationListener

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, SimpleFormAuthenticatorInterface $simpleAuthenticator = null)

Constructor.

Parameters

TokenStorageInterface $tokenStorage A TokenStorageInterface instance
AuthenticationManagerInterface $authenticationManager An AuthenticationManagerInterface instance
SessionAuthenticationStrategyInterface $sessionStrategy
HttpUtils $httpUtils An HttpUtils instance
string $providerKey
AuthenticationSuccessHandlerInterface $successHandler
AuthenticationFailureHandlerInterface $failureHandler
array $options An array of options for the processing of a successful, or failed authentication attempt
LoggerInterface $logger A LoggerInterface instance
EventDispatcherInterface $dispatcher An EventDispatcherInterface instance
CsrfTokenManagerInterface $csrfTokenManager A CsrfTokenManagerInterface instance
SimpleFormAuthenticatorInterface $simpleAuthenticator A SimpleFormAuthenticatorInterface instance

Exceptions

InvalidArgumentException In case no simple authenticator is provided

setRememberMeServices(RememberMeServicesInterface $rememberMeServices)

Sets the RememberMeServices implementation to use.

Parameters

RememberMeServicesInterface $rememberMeServices

final handle(GetResponseEvent $event)

Handles form based authentication.

Parameters

GetResponseEvent $event

Exceptions

RuntimeException
SessionUnavailableException
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部