Skip to content

feat(scim): Serve a minimal SCIM User resource - #2670

Open
xlgmokha wants to merge 1 commit into
masterfrom
xlgmokha/auth-1368a
Open

feat(scim): Serve a minimal SCIM User resource#2670
xlgmokha wants to merge 1 commit into
masterfrom
xlgmokha/auth-1368a

Conversation

@xlgmokha

@xlgmokha xlgmokha commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Feature. This serves GET /scim/v2/Users/{id} and the User ResourceType and Schema, behind GOTRUE_EXPERIMENTAL_SCIM_ENABLED.

What is the current behavior?

The /scim/v2 router ships dark behind GOTRUE_EXPERIMENTAL_SCIM_ENABLED and serves /ServiceProviderConfig, /ResourceTypes and /Schemas.
There is no way to read a provisioned user, and no authentication on the subtree.

What is the new behavior?

GET /scim/v2/Users/{id} returns the SCIM User for a user provisioned by one SSO provider, scoped so a provider can only see its own users.
/ResourceTypes/{id} and /Schemas/{id} serve the User resource type and its schema.

The project admin token authenticates the request, and a temporary x-scim-provider-id header names the tenant. A per-provider SCIM token will replace this in a followup PR.

@xlgmokha xlgmokha self-assigned this Aug 3, 2026
@xlgmokha
xlgmokha marked this pull request as ready for review August 3, 2026 20:53
@xlgmokha
xlgmokha requested a review from a team as a code owner August 3, 2026 20:53
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 5c30fe8 to 105842b Compare August 4, 2026 16:18
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 105842b to 5c30fe8 Compare August 4, 2026 16:43
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 5c30fe8 to 681e3de Compare August 4, 2026 16:46
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 681e3de to 8d5ab8e Compare August 4, 2026 17:19
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 8d5ab8e to aef7060 Compare August 4, 2026 17:27
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from aef7060 to 605a241 Compare August 4, 2026 19:52
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 605a241 to 76e14c9 Compare August 4, 2026 20:05
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 76e14c9 to e43f8da Compare August 6, 2026 15:34
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from e43f8da to d01a1ec Compare August 6, 2026 18:07
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch 2 times, most recently from 0c91448 to 71e3963 Compare August 6, 2026 19:47
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from afcc9c2 to 77cc6af Compare August 10, 2026 15:55
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 77cc6af to 223c123 Compare August 10, 2026 22:50
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 223c123 to 210713b Compare August 12, 2026 15:29
Comment thread internal/models/sso.go Outdated
Comment thread internal/models/sso.go Outdated
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 210713b to e04c509 Compare August 12, 2026 16:57
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch 2 times, most recently from 81135e6 to 32ecad6 Compare August 12, 2026 17:13
Base automatically changed from xlgmokha/auth-1362e to master August 12, 2026 22:30
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch 2 times, most recently from 289d59c to cd7a474 Compare August 12, 2026 22:31
Comment thread internal/models/sso.go Outdated
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 54f3478 to c94ceb6 Compare August 12, 2026 23:00
@xlgmokha
xlgmokha force-pushed the xlgmokha/auth-1368a branch from 6277756 to af12f51 Compare August 17, 2026 19:59
@xlgmokha xlgmokha changed the title feat(scim): store a per-provider SCIM token feat(scim): Serve a minimal SCIM User resource Aug 17, 2026
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