TokenBasedRememberMeServices
class TokenBasedRememberMeServices extends AbstractRememberMeServices
Concrete implementation of the RememberMeServicesInterface providing remember-me capabilities without requiring a TokenProvider.
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
getKey()
deprecated
deprecated
in AbstractRememberMeServices at line line 100
string
getSecret()
in AbstractRememberMeServices at line line 116
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 168
logout(Request $request, Response $response, TokenInterface $token)
Implementation for LogoutHandlerInterface. Deletes the cookie.
in AbstractRememberMeServices at line line 179
final
loginFail(Request $request)
Implementation for RememberMeServicesInterface. Deletes the cookie when an attempted authentication fails.
in AbstractRememberMeServices at line line 193
final
loginSuccess(Request $request, Response $response, TokenInterface $token)
Implementation for RememberMeServicesInterface. This is called when an authentication is successful.