Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Security] Improved upgrade path for custom remember me services#36832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
47f3116 to2035b08Comparesrc/Symfony/Component/Security/Http/EventListener/RememberMeLogoutListener.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/Security/Http/EventListener/RememberMeLogoutListener.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
2035b08 toc49d00fComparenicolas-grekas commentedMay 16, 2020
Thank you@wouterj. |
nicolas-grekas commentedMay 16, 2020
I'll let you deal with the doc side of this PR, if there is any. |
wouterj commentedMay 16, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks for the quick merge! For future reference: I don't think docs need to be updated. Implementing a custom remember me service is very unlikely (given that the two implementations of Symfony already have a token provider abstraction layer). |
Uh oh!
There was an error while loading.Please reload this page.
This improves the upgrade path for custom remember me services now
LogoutHandlerInterfacehas been deprecated.As suggested in#36806 (comment), the
logout()method should be added to theRememberMeServicesInterfacein Symfony 6.This patch allows developers to write a custom class implementing only
RememberMeServicesInterfacewith alogout()method. Requiring them to implementLogoutHandlerInterfacewill mean they have to maintain 2 version of the class to support both Symfony 5.1+ and 6.0.