Skip to content

feat: add optional override for custom provider redirect URIs#2641

Merged
cemalkilic merged 5 commits into
masterfrom
cemal/feat-explicit-base-url-for-custom-oauth
Jul 23, 2026
Merged

feat: add optional override for custom provider redirect URIs#2641
cemalkilic merged 5 commits into
masterfrom
cemal/feat-explicit-base-url-for-custom-oauth

Conversation

@cemalkilic

Copy link
Copy Markdown
Contributor

Summary

  • Adds GOTRUE_CUSTOM_OAUTH_EXTERNAL_URL (CustomOAuthConfiguration.ExternalURL), an optional config value that overrides the base URL used to build the OAuth redirect_uri for custom OAuth2/OIDC providers in loadCustomProvider.
  • When unset, behavior is unchanged — falls back to GOTRUE_API_EXTERNAL_URL exactly as before. Non-breaking.

Allow overriding the external URL base used for custom OAuth/OIDC
providers independently of GOTRUE_API_EXTERNAL_URL.
…ct URI

loadCustomProvider now falls back to config.API.ExternalURL only when
CustomOAuth.ExternalURL is unset, so custom OAuth/OIDC providers can be
served from a different public URL than the rest of the API.
@cemalkilic
cemalkilic requested a review from a team as a code owner July 23, 2026 08:50
Comment thread internal/conf/configuration.go
Comment thread example.env Outdated
Comment thread example.docker.env Outdated
cemalkilic and others added 2 commits July 23, 2026 13:25
Co-authored-by: fadymak <dev@fadymak.com>
Co-authored-by: fadymak <dev@fadymak.com>
@cemalkilic
cemalkilic merged commit 67c55c0 into master Jul 23, 2026
12 checks passed
@cemalkilic
cemalkilic deleted the cemal/feat-explicit-base-url-for-custom-oauth branch July 23, 2026 11:51
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.

2 participants