feat: SCIM discovery endpoints - #2643
Open
xlgmokha wants to merge 1 commit into
Open
Conversation
xlgmokha
force-pushed
the
xlgmokha/auth-1361
branch
4 times, most recently
from
July 27, 2026 16:53
27f6093 to
8b11a0d
Compare
xlgmokha
force-pushed
the
xlgmokha/auth-1362
branch
2 times, most recently
from
July 27, 2026 21:17
c9efa6c to
4a4002e
Compare
xlgmokha
force-pushed
the
xlgmokha/auth-1362
branch
4 times, most recently
from
July 28, 2026 21:50
b31d174 to
e53a795
Compare
This comment has been minimized.
This comment has been minimized.
xlgmokha
force-pushed
the
xlgmokha/auth-1362
branch
8 times, most recently
from
July 29, 2026 21:00
57d2422 to
a4e9939
Compare
xlgmokha
marked this pull request as ready for review
July 29, 2026 21:19
xlgmokha
force-pushed
the
xlgmokha/auth-1362
branch
6 times, most recently
from
July 29, 2026 22:03
91eecb6 to
85b0e52
Compare
Implement the SCIM 2.0 discovery endpoints from RFC 7644: - GET /scim/v2/ServiceProviderConfig - GET /scim/v2/ResourceTypes - GET /scim/v2/Schemas ServiceProviderConfig reports the required attributes from RFC 7643 and advertises the OAuth bearer token scheme. Errors under `/scim/v2` use the RFC 7644 error form, served as `application/scim+json`: - 403: with scimType invalidFilter for a filtered discovery query - 404: for an unknown endpoint or resource - 405: with an Allow header, for an unsupported method Nothing is reachable unless `GOTRUE_EXPERIMENTAL_SCIM_ENABLED` is set.
xlgmokha
force-pushed
the
xlgmokha/auth-1362
branch
from
July 29, 2026 22:06
85b0e52 to
61ca3d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What kind of change does this PR introduce?
This change implements the SCIM discovery/metadata endpoints behind the experimental feature flag from #2639:
GET /scim/v2/ServiceProviderConfigGET /scim/v2/ResourceTypesGET /scim/v2/SchemasThese replace the
501 Not Implementedstubs with spec-compliant JSON responses.https://linear.app/supabase/issue/AUTH-1362/scim-discovery-endpoints
What is the current behavior?
With #2639 alone, the three routes above mount when the flag is on, but each just returns a bare 501 with no body.
What is the new behavior?
Each endpoint now returns real RFC 7643-compliant JSON responses:
ServiceProviderConfigreports this server's actual current capabilities. (authenticationSchemesuser bearer-token scheme that a later PR will enforce.)ResourceTypesandSchemasreturn an emptyResources: []list, since no resource types (Users, Groups) exist yet.Nothing here is reachable unless
GOTRUE_EXPERIMENTAL_SCIM_ENABLEDis set.GET /scim/v2/ServiceProviderConfigGET /scim/v2/ResourceTypesGET /scim/v2/Schemas404 Error:
405 Error:
Additional context