-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
question: How to set the callback and redirect URI? #64
Comments
@simaotwx , thank you for the question! 👍 it needs to be implemented. |
Thank you for the quick response. Looking forward to it! |
I'm running into this as well. My use-case is when running caddy behind another reverse-proxy for and the "localhost" of the caddy binding is being injected as the redirect_uri, rather than the indented public uri. I've tried various trick and look through the code to see if there is a workaround via Host headers; but no luck yet.
Edit: seems like judicious application of |
I have a somewhat similar need. I am using The problem is, because caddy-l4 terminates TLS, EDIT: Found a solution to my problem on the |
I was also getting the Google OAuth2 "request_uri mismatch" error due to the request_uri passing http instead of https. I'm noting the solution that worked for me, as suggested by @tomberek above. Simply adding the 'X-Forwarded-Proto: https' header on my upstream reverse proxy, which happens to be opnsense, made everything work. |
This is probably already answered or at least discussed in https://github.com/greenpau/caddy-auth-portal/issues/193 however, the issues are no longer visible.
I'd like to change the callback URL in this plugin to avoid changing it in the provider as in enterprises this is often a process which takes time and approvals to get through.
Example:
Instead of
/auth/oauth2/example/authorization-code-callback
just/callback
Is this possible or does it need to be implemented?
There are two parts that would need to cooperate here:
The redirect_uri parameter when redirecting to the provider as well as the route in Caddy to listen on /callback (or any other custom URL).
The text was updated successfully, but these errors were encountered: