Skip to content

fix: to redirect back after auth we used the wrong base url#747

Merged
maartenbreddels merged 1 commit intomasterfrom
fix_oauth_use_base_url_override_for_redirect
Aug 23, 2024
Merged

fix: to redirect back after auth we used the wrong base url#747
maartenbreddels merged 1 commit intomasterfrom
fix_oauth_use_base_url_override_for_redirect

Conversation

@maartenbreddels
Copy link
Copy Markdown
Contributor

settings.main.base_url should have been used, since that can be used to override the base url from starlette.

Note that this should always never be needed once a proxy and uvicorn are configured correctly (see also #745).

But starlette does not respect the x-forwarded-host header, so we might need to use this in the future in situations of proxies that need to set the Host header due to https communication.

Fixes #740

settings.main.base_url should have been used, since that can be
used to override the base url from starlette.

Note that this should always never be needed once a proxy and uvicorn
are configured correctly (see also #745).

But starlette does not respect the x-forwarded-host header, so we
might need to use this in the future in situations of proxies that
need to set the Host header due to https communication.

Fixes #740
@maartenbreddels maartenbreddels merged commit e37ae28 into master Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OAuth flow breaking due to wrong base url variable being used

1 participant