Skip to content

feat(linking): add experimental provider linking-domain groups#2604

Open
cemalkilic wants to merge 1 commit into
masterfrom
cemal/feat-experimental-provider-gropping
Open

feat(linking): add experimental provider linking-domain groups#2604
cemalkilic wants to merge 1 commit into
masterfrom
cemal/feat-experimental-provider-gropping

Conversation

@cemalkilic

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Feature

What

Adds an experimental provider linking-domain map so independent providers can be grouped to share account linking. Providers in the same domain link to one another (matching verified email → same account) but stay isolated from the default email-linked pool and from SSO.

GOTRUE_EXPERIMENTAL_PROVIDER_LINKING_DOMAINS="provider_a=social,provider_b=social"

Why

The previous GOTRUE_EXPERIMENTAL_PROVIDERS_WITH_OWN_LINKING_DOMAIN only let a provider own an isolated domain named after itself, two distinct providers couldn't share one. This generalizes it to an explicit provider→domain map.

Notes

  • Backward compatible: the old list is deprecated and auto-migrated in ApplyDefaults to {provider: provider}; explicit map entries win. No behavior change for existing deployments. (old list handling will be removed in a later pr)
  • SSO and "default" resolution are unchanged.

@cemalkilic cemalkilic requested a review from a team as a code owner June 29, 2026 14:43

@xlgmokha xlgmokha left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left one non-blocking question. LGTM.

Comment thread internal/conf/configuration.go
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