-
-
Notifications
You must be signed in to change notification settings - Fork 497
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
Authentication on different subdomain #20
Comments
Cookies can be configured to apply to subdomains if they are set on the root domain. For me, it seems that the path is Cookies are handled by Express, check out the documentation on cookies. app.use(express.session({ secret: 'keyboard cat', cookie: { maxAge: 43200000 } })); Hope that helps, cheers. |
Setting the cookie domain via options passed to express.session did not work for me. i.e.: cookie: { maxAge: ONE_DAY, domain: '.mydomain.com' } Login sessions are destroyed when navigating between apps on different subdomains. Cannot Passport share login sessions across subdomains? |
Please see closing comment in referenced passport issue above. |
You can use: |
No, it doesn't help. |
Hi Jared.
I would like to know if there is some way to move authentication form to a different subdomain.
When user tries to access restricted area he is redirected to auth. subdomain and asked to enter username, password. When done he is redirected back to where he wanted.
The text was updated successfully, but these errors were encountered: