Skip to content
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

Share login through multiple subdomains #9

Closed
beetlegius-jt opened this issue Dec 4, 2024 · 1 comment
Closed

Share login through multiple subdomains #9

beetlegius-jt opened this issue Dec 4, 2024 · 1 comment

Comments

@beetlegius-jt
Copy link

Hello :) I noticed the gem doesn't allow me to login through multiple subdomains. After a quick research, I found the signed cookie options does not include domain: :all and I couldn't find a way to configure it from outside (like a specific configuration or default options for cookies).

cookies.signed.permanent[:session_token] = { value: @session.id, httponly: true }

Changing the local gem code to something like this works fine:

cookies.signed.permanent[:session_token] = { value: @session.id, httponly: true, domain: :all }

Thanks!

@kobaltz
Copy link
Owner

kobaltz commented Dec 5, 2024

Release v1.7.1 has been pushed to address this. It is disabled by default but you can enable it with config.insert_cookie_domain = true in your ActionAuth config.

@kobaltz kobaltz closed this as completed Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants