feat(scim): add GET /scim/v2/Users/{id} - #2671
Open
xlgmokha wants to merge 6 commits into
Open
Conversation
xlgmokha
marked this pull request as ready for review
August 3, 2026 21:06
xlgmokha
force-pushed
the
xlgmokha/auth-1368b
branch
2 times, most recently
from
August 4, 2026 16:43
bfdaf08 to
edc69eb
Compare
xlgmokha
force-pushed
the
xlgmokha/auth-1368b
branch
from
August 4, 2026 16:46
edc69eb to
eb57a35
Compare
xlgmokha
force-pushed
the
xlgmokha/auth-1368b
branch
2 times, most recently
from
August 4, 2026 17:27
a66ea24 to
b353b6d
Compare
xlgmokha
force-pushed
the
xlgmokha/auth-1368b
branch
from
August 4, 2026 19:52
b353b6d to
78515b5
Compare
xlgmokha
force-pushed
the
xlgmokha/auth-1368b
branch
from
August 4, 2026 20:05
78515b5 to
f3d911f
Compare
Resolves the requesting SSO provider from the bearer token stored in `sso_providers.scim_token_hash` and returns that provider's user.
…instead of the single one needed for SCIM
xlgmokha
force-pushed
the
xlgmokha/auth-1368b
branch
from
August 6, 2026 15:34
f3d911f to
8f19172
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?
Feature. Adds
GET /scim/v2/Users/{id}, the first SCIM resource endpoint.https://linear.app/supabase/issue/AUTH-1368/scim-users-get-by-id
What is the current behavior?
/scim/v2serves the three discovery endpoints and nothing else.What is the new behavior?
scim.Server.Authenticateresolves the SSO provider that owns the presented bearer token and puts it on the request context.UserByIDthen returns that provider's user:200+ User resource,application/scim+json401+WWW-Authenticate: Bearer403404, identical bodyDiscovery stays unauthenticated.
Authenticateis scoped to the/Usersroute so a deployment with no provisioned tenant still serves/Schemas.Additional context