vouch / vouch-proxy

an SSO and OAuth / OIDC login solution for Nginx using the auth_request module
MIT License
2.92k stars 327 forks source link

Azure and 400 Bad Request #498

Closed zoriax closed 2 years ago

zoriax commented 2 years ago

Hi everyone,

After a few days of success with vouch-proxy (in a path). I restarded it today and suddently, I have this kind of error

{"level":"debug","ts":1661519816.9954345,"msg":"CaptureWriter.Write set w.StatusCode 302"}
{"level":"info","ts":1661519816.995485,"msg":"|302|    84.27µs /authenticate/auth","statusCode":302,"request":5,"latency":0.00008427,"avgLatency":0.000161944,"ipPort":"127.0.0.1:43856","method":"GET","host":"myhost","path":"/authenticate/auth","referer":"https://login.microsoftonline.com/"}
{"level":"debug","ts":1661519817.0064461,"msg":"/auth/{state}/"}
{"level":"warn","ts":1661519817.3997035,"msg":"/auth Error while retrieving user info after successful login at the OAuth provider: oauth2: cannot fetch token: 401 Unauthorized...}

And in my proxied app I have :

image

I don't exactely what happends. I tried to stop, edit config change my NGINX config but no change :-(

Can you help me ? Is it related to Azure or to my Vouch/Nginx configs ? Do you have any issue related to this kind of error ?

zoriax commented 2 years ago

Effectivley after some search it is regarding to Azure configuration. I closed this issue :-)