-
Notifications
You must be signed in to change notification settings - Fork 141
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
SameSite cookie config not respected by skipSilentLogin cookie #315
Comments
+1 |
Yes, this would be great to get in place! Can we get a PR up with the mentioned fix in the original issue or do we have any other input from the core maintainers of the project? Thanks |
Hi @linuws @antonhedstrom @andreasenberg Have raised a pr #317 You can test it out by installing |
Hi @adamjmcgrath and thank you very much for looking into this. I have testet and verified that it worked. I can see the settings being present in the cookie and there is no redirect-loop anymore. 👍 |
Hi @adamjmcgrath. Thank you for looking into this, appreciate it! Looking forward to that release! 🙂 Thanks @linuws for your help testing the provided fix. |
No problem - this got released in https://github.com/auth0/express-openid-connect/releases/tag/v2.6.0 |
Describe the problem
An application embedded within an iframe gets stuck in a redirect loop when attempting to do silent log in and user is not logged in at IDP.
The issue seems to be related to the fact that the
skipSilentLogin
cookie is missing a same site attribute and thus is defaulted to Lax by the browser. As the application is embedded within an iframe this cookie will be blocked and not sent to the application backend causing another silent log in attempt.What was the expected behavior?
Silent log in should be attempted once and not on subsequent page requests.
I was expecting the
skipSilentLogin
cookie to honor the sameSite attribute fromconfig.session.cookie.sameSite
. That is unless there is a good reason not to, if so help me understand why.I've forked the repository myself to see if changes to pickup the sameSite config for
skipSilentLogin
will solve this issue and it seems to be the case.Reproduction
A reproduction would look something like this
Environment
The text was updated successfully, but these errors were encountered: