Skip to content

feat: gate SCIM router behind an experimental feature flag#2639

Open
xlgmokha wants to merge 2 commits into
masterfrom
xlgmokha/auth-1361
Open

feat: gate SCIM router behind an experimental feature flag#2639
xlgmokha wants to merge 2 commits into
masterfrom
xlgmokha/auth-1361

Conversation

@xlgmokha

@xlgmokha xlgmokha commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Add GOTRUE_EXPERIMENTAL_SCIM_ENABLED (default false) to conditionally mount /scim/v2/*, the first step toward SCIM (System for Cross-domain Identity Management) support for provisioning and deprovisioning users from an identity provider.

Ships dark: with the flag off, no SCIM routes are reachable; with it on, the router mounts three stub endpoints (ServiceProviderConfig, ResourceTypes, Schemas) that return 501 until real handlers land in follow-up PRs.

What is the current behavior?

Currently, we do not have SCIM support. There is no /scim/v2 router and no way for an identity provider to provision or deprovision users automatically.

https://linear.app/supabase/issue/AUTH-1361/enable-scim-via-feature-flag

What is the new behavior?

This is the first step towards adding SCIM support: a feature flag that gates the /scim/v2 router, shipped dark with no customer-facing toggle yet, so it can be verified internally before real per-provider enablement is added.

Additional context

This reimplements a smaller, subset of SCIM support. It draws on ideas and endpoint shapes explored in two earlier PRs:

@xlgmokha xlgmokha self-assigned this Jul 22, 2026
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1361 branch 2 times, most recently from e7d8b74 to 8f88cf8 Compare July 22, 2026 20:48
@xlgmokha xlgmokha changed the title feat: enable experimental SCIM API feat: gate SCIM router behind an experimental feature flag Jul 22, 2026
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1361 branch from b655b27 to 3264d52 Compare July 22, 2026 21:15
Add `GOTRUE_EXPERIMENTAL_SCIM_ENABLED` (default false) to conditionally
mount `/scim/v2/*`, the first step toward SCIM (System for Cross-domain
Identity Management) support for provisioning and deprovisioning
users from an identity provider.

This reimplements a smaller, subset of prior SCIM work from:

* #2115
* #2309
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1361 branch from b62eda3 to e5ed34f Compare July 22, 2026 21:31
@xlgmokha
xlgmokha marked this pull request as ready for review July 22, 2026 21:42
@xlgmokha
xlgmokha requested a review from a team as a code owner July 22, 2026 21:42
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.

1 participant