Open LanceSandino opened 6 years ago
This might be because
proxy_set_header Host $host;
omits the original port, so there's no good way for oauth2_proxy to know what it was. Usually this is fine, if you use the default http or https port, but in your case it doesn't work out ...
I think I have it figured out... but now I have a different problem...
AADSTS50011:: The reply address 'https://sub.domain.com:7303/oauth2/callback' does not match the reply addresses configured for the application: 'XXXX-xxxx-xxxxx-XXXX'. More details: not specified
I tried using redirect_url (to avoid having to add EACH reverse proxy port I have to the Reply URL's of Azure...) but then I have the initial issue I had before -> redirecting without the port.....
Hi.... Not sure if I'm doing something wrong, but after sign in (from URL: https://sub.domain.com:PORT) it redirects me to https://sub.domain.com [NO PORT]
Current Setup: nginx.conf sample
oauth2_config.cfg
Let me know if you need more information :)