-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
Feature request: Support multiple auth-host's #115
Comments
I was about to open an issue, I am experiencing similar troubles. I have been using |
At the moment there isn's support for multiple @starcraft66 because cookies aren't shared across domains, by design traefik-forward-auth will fallback to using the domain of the original request if it can't use an auth-host. I would suggest adding any new domains that don't fall under your |
This is not a solution for me because I have traefik listening on both my public and private domains. Since all endpoints (30+ of them) are listening on both, I would need to add every single endpoint on my IdP which is the same level of effort needed that AUTH_HOST solves for one domain. Is there work going on for this? If not, I can whip up a PR Looks like this is where stuff should change: traefik-forward-auth/internal/auth.go Line 147 in c4317b7
traefik-forward-auth/internal/auth.go Line 140 in c4317b7
|
@adyanth thanks for the hard work on this one as I'm using it in the same scenario with both public/private domains and the PR is greatly appreciated. Looking forward to testing it out. |
I can add test cases and push it out, I was waiting for @thomseddon to check if the implementation is okay. I am waiting to use it as well :) |
Added the test cases too, waiting for the PR to be accepted. @thomseddon can you have a look at this? |
I am currently using it successfully with no changes other than adding another AUTH_HOST (comma separated, exactly like COOKIE_DOMAIN) in my cluster. Here is a copy of the PR for people eager to use it: https://hub.docker.com/r/adyanth/traefik-forward-auth/tags Just use |
Thank you - I hope this gets merged |
I've been using your app for some time in
auth_host
mode for subdomains without any troubles, but am really struggling to add a second domain to the list. Once I add a second domain tocookie_domain
everything seems to break down. Would you be able to provide an example of the correct way to set up ouath for more than one tld?The text was updated successfully, but these errors were encountered: