-
Notifications
You must be signed in to change notification settings - Fork 90
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
Signing cookies problem #154
Comments
I'm experiencing this problem too, as soon as I enable signed cookies, it's impossible to login. |
Anyone knows a work around so that I can use cookie signing with login working? |
Same problem here |
Debugging |
Any ideas what's the best way to fix this, while keeping the signed cookie option? @romainneutron Thanks! |
+1 i am experiencing the same ... enabling signed cookies, breaks the login somehow |
TL;DR: do not use I tracked the problem to the fact that the session cookie is not being signed. First: Next step: Moving on: Instead of creating the cookie directly, for instance, using
After this, you should see a cookie called Last piece of the puzzle: if you're using the default Symfony configuration, you probably use the native session storage: At least that's my understanding of what's wrong. I'll pop this problem into the ever-growing "too-hard basket" and result in other session-related security hardening measures. Suppose you want to use the cookie signature, set up a companion (signed) cookie that lives alongside the session cookie, with the value matching the session cookie. If the two values diverge or the companion cookie signature fails, terminate the session and log it as a security incident. Not ideal, but it should work. |
I've spent hours to solve my problem with login. Really big headaches. |
Here's the PR to update the docs: #368 |
With configuration:
I get my system cannot login anymore for any user. Is there a requirement for this?
symfony configuration:
The text was updated successfully, but these errors were encountered: