Replies: 1 comment
-
|
Thanks for reporting this. I reviewed the OAuth callback flow in detail. The code correctly:
The 502 is happening after Bonds returns the 307 redirect, which means the issue is in the reverse proxy layer, not in Bonds itself. Most likely causes:
Debugging steps:
If the issue persists after verifying these, please share your reverse proxy config (nginx/caddy/traefik) and I can help debug further. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I configured Authentik OAuth authentication with Bonds. The OAuth login flow appears to complete successfully, but after the callback the browser shows 502 Bad Gateway.
OAuth callback configured in Authentik:
https://people.mydomain.com/api/auth/Authentik/callback
What happens:
1. Click Sign in with Authentik
2. Authentik login page appears
3. Login succeeds
4. Redirect goes to /api/auth/Authentik/callback?code=...&state=...
5. Browser shows 502 Bad Gateway
Example callback URL:
https://people.mydomain.com/api/auth/Authentik/callback?code=...&state=...
Bonds logs show the callback being processed and returning 307, including finding the Authentik token, finding the user, updating the OAuth token, and reading app.url. After that redirect, the browser receives the 502 error.
Is there anything specific that needs to be configured for Authentik OAuth in Bonds? The callback appears to succeed but the final redirect fails.
Beta Was this translation helpful? Give feedback.
All reactions