-
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
Add cross domain iframe support for modern browsers #317
Conversation
This pull request introduces 1 alert when merging bc2902c into 73d50df - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 8aab1e0 into c1b1b0c - view on LGTM.com new alerts:
|
@@ -213,7 +214,8 @@ module.exports = (config) => { | |||
) { | |||
const hasPrevSession = !!req[COOKIES][sessionName]; | |||
const replacingPrevSession = !!req[REGENERATED_SESSION_ID]; | |||
const hasCurrentSession = req[sessionName] && Object.keys(req[sessionName]).length; | |||
const hasCurrentSession = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These whitespace changes are from a previous prettier
update
…frame-skip-silent-login
This pull request introduces 1 alert when merging 523a5e9 into c1b1b0c - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging da84e1e into 48526b1 - view on LGTM.com new alerts:
|
Description
Fixing crossdomain iframe login/logout and attemptSilentAuth support. This can be enabled by using
session.cookie.sameSite = 'None'
andsession.cookie.secure = true
(you should run localhost on https for this see: https://auth0.com/docs/libraries/secure-local-development)References
fixes #315
Testing
To test login/logout from a cross domain iframe:
caddy reverse-proxy --from localhost:443 --to localhost:3000
baseUrl
set tohttps://localhost
http://localhost:3000/iframe
(running same app on a different domain to the iframe, which is onhttps://localhost
)auth_verification
transaction cookies have been removedappSession
cookie has been removedChecklist
master