Use configured GNAUTH_REDIRECT_URI instead of dynamic base_url
_get_redirect_uri was building the redirect_uri from request.base_url,
which returns the internal address when behind a reverse proxy. This
caused gnexus-auth to reject the redirect_uri as invalid.

Now _get_redirect_uri always returns settings.gnauth_redirect_uri,
so the public URL configured in .env is used consistently.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 660f2cd commit 33ff9447b7ec8ce13d4d0f1794d91f3ce37b4a73
@Eugene Sukhodolskiy Eugene Sukhodolskiy authored on 8 May
Showing 1 changed file
View
navi/api/routes/auth.py