Skip to content

feat: SCIM discover endpoints#2643

Draft
xlgmokha wants to merge 6 commits into
xlgmokha/auth-1361from
xlgmokha/auth-1362
Draft

feat: SCIM discover endpoints#2643
xlgmokha wants to merge 6 commits into
xlgmokha/auth-1361from
xlgmokha/auth-1362

Conversation

@xlgmokha

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?

Implements the three SCIM discovery/metadata endpoints behind the experimental feature flag from #2639:

  • GET /scim/v2/ServiceProviderConfig
  • GET /scim/v2/ResourceTypes
  • GET /scim/v2/Schemas

These replace the 501 Not Implemented stubs from #2639 with real, spec-shaped JSON.

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-shaped JSON:

  • ServiceProviderConfig reports this server's actual current capabilities — patch, bulk, filter, changePassword, sort, and etag are all supported: false for now, since none of that is implemented yet. authenticationSchemes describes the bearer-token scheme a later PR will enforce.
  • ResourceTypes and Schemas return an empty Resources: [] list, since no resource types (Users, Groups) exist yet.

Nothing here is reachable unless GOTRUE_EXPERIMENTAL_SCIM_ENABLED is set, and there's no behavior change outside /scim/v2/*.

Additional context

Stacked on #2639, so the diff only shows what's new here. It'll get retargeted once #2639 merges. Part of a series of small PRs building out SCIM support incrementally.

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