-
Notifications
You must be signed in to change notification settings - Fork 327
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
Allow multiple callback_urls for all backends #79
Comments
Yeah that seems like it'd be good.
vouch-proxy/pkg/domains/domains.go Line 20 in a832330
The test might be better against the originally provided URL stored in the session variable. |
@bnfinet I do, I just moved the if logic. I didn't however do what you suggested (against the originally provided URL stored in the session variable) I can submit a PR if you still want it |
In principle one vouch proxy instance can be used to authenticate users on different vhosts. Putting the nginx config for vouch in a separate file and including it for different vhosts adds a lot of convenience. Such setup currently almost works and only fails at the callback since only a single callback url can be specified in the vouch config. Only the google backend already allows for multiple callback_urls. As can be seen below, it chooses the callback url that matches the identified domain.
vouch-proxy/handlers/handlers.go
Lines 60 to 70 in db84bc6
To enable using one vouch proxy on different vhosts, it would be great to move the code out of the if-statement and apply this logic to all backends.
The text was updated successfully, but these errors were encountered: