Open r-divakaran-hrs opened 6 years ago
This kind of behavior is known to me as a result of specifying /sign_in
as a must-hit endpoint. If your request hits sign_in
after the OAuth flow has completed, the endpoint will reset the cookie and present the authentication page.
Hello,
I am using oauth2_proxy for authenticating few ingresses using google. Example URL: monitor.qa-lab.com In google console: Origin URL is set to : https://monitor.qa-lab.com Call back URL as : https://monitor.qa-lab.com/oauth2/callback
Above is the deployment for oauth proxy. I have changed the domain name to test, which is not real.
The issue is that each time I access https://monitor.qa-lab.com, it keeps on asking for authentication process by looping to https://monitor.qa-lab.com/oauth2/sign_in?jd=/# At this time if I remove ?jd=/# and access, it works as expected.
Has anyone faced the same and already knows a work around or the fix ?
Thanks