-
-
Notifications
You must be signed in to change notification settings - Fork 438
Description
In the new authenticator system, if you want to support "remember me" functionality, then your authenticator needs to return a RememberMeBadge. This advertises that it is "ok to activate remember me on this authenticator". It is safe to always add in our generated code because if the user doesn't have remember me activated (either in config or they don't have the remember me checkbox), nothing will happen. For example, it is ALWAYS returned from the core FormLoginAuthenticator.
Probably we will also need one comment line above the new badge to explain its purpose.
EDIT: And I wonder if we should even ask "Do you want to support remember me?" during this process? We could then ask "Do you want remember me to be activated via a checkbox or always activated"? We could use this to determine how the template is generated AND to automatically add the correct remember_me config to security.yaml.