PersistentTokenBasedRememberMeServices
class PersistentTokenBasedRememberMeServices extends AbstractRememberMeServices
Concrete implementation of the RememberMeServicesInterface which needs an implementation of TokenProviderInterface for providing remember-me capabilities.
Constants
COOKIE_DELIMITER |
|
Methods
Constructor.
Returns the parameter that is used for checking whether remember-me services have been requested.
Implementation for LogoutHandlerInterface. Deletes the cookie.
Implementation for RememberMeServicesInterface. This is called when an authentication is successful.
Details
in AbstractRememberMeServices at line line 57
__construct(array $userProviders, string $secret, string $providerKey, array $options = array(), LoggerInterface $logger = null)
Constructor.
in AbstractRememberMeServices at line line 82
string
getRememberMeParameter()
Returns the parameter that is used for checking whether remember-me services have been requested.
in AbstractRememberMeServices at line line 90
string
getSecret()
in AbstractRememberMeServices at line line 106
final TokenInterface
autoLogin(Request $request)
Implementation of RememberMeServicesInterface. Detects whether a remember-me cookie was set, decodes it, and hands it to subclasses for further processing.
in AbstractRememberMeServices at line line 158
logout(Request $request, Response $response, TokenInterface $token)
Implementation for LogoutHandlerInterface. Deletes the cookie.
in AbstractRememberMeServices at line line 169
final
loginFail(Request $request)
Implementation for RememberMeServicesInterface. Deletes the cookie when an attempted authentication fails.
in AbstractRememberMeServices at line line 183
final
loginSuccess(Request $request, Response $response, TokenInterface $token)
Implementation for RememberMeServicesInterface. This is called when an authentication is successful.
at line line 40
setTokenProvider(TokenProviderInterface $tokenProvider)
Sets the token provider.