PersistentTokenBasedRememberMeServices
class PersistentTokenBasedRememberMeServices extends AbstractRememberMeServices
Concrete implementation of the RememberMeServicesInterface which needs an implementation of TokenProviderInterface for providing remember-me capabilities.
Constants
COOKIE_DELIMITER |
|
Properties
protected | $logger | from AbstractRememberMeServices | |
protected | $options | from AbstractRememberMeServices |
Methods
No description
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.
Subclasses should validate the cookie and do any additional processing that is required. This is called from autoLogin().
This is called after a user has been logged in successfully, and has requested remember-me capabilities. The implementation usually sets a cookie and possibly stores a persistent record of it.
Details
__construct(array $userProviders, string $secret, string $providerKey, array $options = array(), LoggerInterface $logger = null)
string
getRememberMeParameter()
Returns the parameter that is used for checking whether remember-me services have been requested.
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.
logout(Request $request, Response $response, TokenInterface $token)
Implementation for LogoutHandlerInterface. Deletes the cookie.
final
loginFail(Request $request, Exception $exception = null)
Implementation for RememberMeServicesInterface. Deletes the cookie when an attempted authentication fails.
final
loginSuccess(Request $request, Response $response, TokenInterface $token)
Implementation for RememberMeServicesInterface. This is called when an authentication is successful.
protected UserInterface
processAutoLoginCookie(array $cookieParts, Request $request)
Subclasses should validate the cookie and do any additional processing that is required. This is called from autoLogin().
protected
onLoginSuccess(Request $request, Response $response, TokenInterface $token)
This is called after a user has been logged in successfully, and has requested remember-me capabilities. The implementation usually sets a cookie and possibly stores a persistent record of it.
protected bool
isRememberMeRequested(Request $request)
Checks whether remember-me capabilities were requested.