RememberMeServicesInterface

interface RememberMeServicesInterface Interface that needs to be implemented by classes which provide remember-me capabilities. We provide two implementations out-of-the-box: - TokenBasedRememberMeServices (does not require a TokenProvider) - PersistentTokenBasedRememberMeServices (requires a TokenProvider) Constants COOKIE_ATTR_NAME This attribute name can be used by the implementation if it needs to set a cookie on the Request when there is no actual Response, yet. Methods TokenInte

RememberMeServicesInterface::autoLogin()

TokenInterface autoLogin(Request $request) This method will be called whenever the TokenStorage does not contain a TokenInterface object and the framework wishes to provide an implementation with an opportunity to authenticate the request using remember-me capabilities. No attempt whatsoever is made to determine whether the browser has requested remember-me services or presented a valid cookie. Any and all such determinations are left to the implementation of this method. If a b

RememberMeServicesInterface::loginFail()

loginFail(Request $request) Called whenever an interactive authentication attempt was made, but the credentials supplied by the user were missing or otherwise invalid. This method needs to take care of invalidating the cookie. Parameters Request $request

RememberMeListener

class RememberMeListener implements ListenerInterface RememberMeListener implements authentication capabilities via a cookie. Methods __construct(TokenStorageInterface $tokenStorage, RememberMeServicesInterface $rememberMeServices, AuthenticationManagerInterface $authenticationManager, LoggerInterface $logger = null, EventDispatcherInterface $dispatcher = null, bool $catchExceptions = true, SessionAuthenticationStrategyInterface $sessionStrategy = null) Constructor. handle(GetRespon

RememberMeFactory::getKey()

getKey()

RememberMeFactory::create()

create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) Parameters ContainerBuilder $container $id $config $userProvider $defaultEntryPoint

RememberMeAuthenticationProvider::supports()

bool supports(TokenInterface $token) Checks whether this provider supports the given token. Parameters TokenInterface $token A TokenInterface instance Return Value bool true if the implementation supports the Token, false otherwise

RememberMeFactory::getPosition()

string getPosition() Defines the position at which the provider is called. Possible values: preauth, form, http, and rememberme. Return Value string

RememberMeFactory

class RememberMeFactory implements SecurityFactoryInterface Methods create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) string getPosition() Defines the position at which the provider is called. getKey() addConfiguration(NodeDefinition $node) Details create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) Parameters ContainerBuilder $container $id $config $user

RememberMeFactory::addConfiguration()

addConfiguration(NodeDefinition $node) Parameters NodeDefinition $node