-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
RememberMe cookie should only contain the bare minimum of details #42349
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for this issue. |
Nope. |
Would you mind investigating? If it's not used let's remove it indeed. |
I am all in for removing, but me and @vasilvestre have tried to do so in #43006 and we both cannot find a way to remove it in a backwards compatible matter. |
Thank you for this issue. |
@wouterj how about removing it in a backward incompatible manner? There is Symfony 7, where it can be done. When I reported it - php 6.0 was not released, so it could have been done back then. But nonetheless, what's bad in waiting another year and fixing it, instead of dragging it til the heat death of the universe? |
Any change must have a smooth upgrade path in Symfony. This means that the only BC break allowed in a new major is removing code that was deprecated (and properly reported as such) in the previous minor version. Besides that, this is a minor thing. It would have been nice to clean it up, but it's not worth massively complex BC layers. |
RememberMe is a short living cookie, it's not a broken experience if a user needs to reauthenticate. No need for any BC layers - just release it and let users reauthenticate. RememberMe was broken in some way or another for 2 years, and it was not a problem. |
May be wrong but it breaks your code (that's what BC is about). Having users disconnected is not important, but breaking BC policy is afaik |
My advice: deprecate We still have to accept the fqcn as constructor argument but in Symfony 7.1, we'll be able to deprecate passing 4 arguments to the constructor, and we'll be able to generate cookies with no FQCN without breaking anything. PR welcome. |
Same for |
Let's to it the reverse way: closing, but PR still welcome if someone wants to dive this topic. |
it does not. |
is it not possible to deprecate it now in |
Just to be clear, we should remove the usage of the argument but still allow it despite the deprecation and remove it later ? |
Because we just deprecate the method, we still need a way to make it return something useful. That's what the argument is for. |
Im wondering, why we don't simply md5 or hash the |
Description
As I mentioned at #40145 (comment) at this moment remember-me cookie exposes a
userFqcn
. It leaks implementation details of the application. And it's not used anywhere.I understand now it's too late - but what was the reason to include it originally?
Example
The text was updated successfully, but these errors were encountered: