AuthThingie
AuthThingie copied to clipboard
Multiple domains in play.http.session.domain
Is it possible to have one auth server running on https://auth.domain.com
and authenticating sites like wiki.domain.com
, nextcloud.domain.com
while also authenticating sites on another domain test.domain.net
?
I have added the extra domain in play.filters.hosts and i get the proper redirect, but when i authenricate i get the error Check failed because no token found in headers
I have tried to add the domain in play.http.session like:
domain = ["domain.com", "domain.net"]
which does not work.
I have also tried to make another play.http entry, and another pley.http.session entry, but none of them works.
For right now, this isn't possible. Cookies for other domains can't be set through headers for security reasons. I'll see if I can figure out a different way of doing things to support this use case, but for now, AuthThingie doesn't support it. As an alternative, you could set up two instances of AuthThingie, one for each domain, but that's the best that can exist right now.
Sorry :(