[PR #7898] [MERGED] feat(scim): add SCIM connection management endpoints #24519

Closed
opened 2026-04-15 22:24:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7898
Author: @jonathansamines
Created: 2/10/2026
Status: Merged
Merged: 2/11/2026
Merged by: @himself65

Base: canaryHead: feat/add-scim-management-endpoints


📝 Commits (10+)

  • f195beb feat(scim): add provider management endpoints
  • 38ef18f chore(scim): move scim management tests to their own suite
  • be0342e chore(scim): update access control policy to be consistent across management endpoints
  • 0f9fd69 docs(scim): add docs for new management endpoints
  • 517b2ed chore(scim): rename management endpoints
  • 3375e69 chore(scim): fix linting
  • 8a0b9fa chore(scim): fix grammar and incorrect docs
  • 934c887 chore(scim): relax global providers filter
  • adc1751 chore(scim): fix scim access control test
  • 0d5b1d6 docs(scim): fix site docs

📊 Changes

5 files changed (+930 additions, -284 deletions)

View changed files

📝 docs/content/docs/plugins/scim.mdx (+46 -1)
📝 packages/scim/src/index.ts (+6 -0)
📝 packages/scim/src/routes.ts (+255 -1)
packages/scim/src/scim.management.test.ts (+615 -0)
📝 packages/scim/src/scim.test.ts (+8 -282)

📄 Description

Summary by cubic

Add SCIM provider connection management endpoints with session auth and org‑scoped access control. Users can list, view, and delete SCIM connections; deleting a connection immediately invalidates its token.

  • New Features

    • GET /scim/list-provider-connections: List connections for orgs the user belongs to and global providers.
    • GET /scim/get-provider-connection: Return connection details if the user has access.
    • POST /scim/delete-provider-connection: Delete an existing connection.
  • Refactors

    • Renamed management endpoints to RPC-style paths.
    • Unified access control across endpoints; global providers visible to any signed-in user.
    • Updated docs; moved management tests into a dedicated suite; fixed access control test.

Written for commit ba55a8ba15. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7898 **Author:** [@jonathansamines](https://github.com/jonathansamines) **Created:** 2/10/2026 **Status:** ✅ Merged **Merged:** 2/11/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `feat/add-scim-management-endpoints` --- ### 📝 Commits (10+) - [`f195beb`](https://github.com/better-auth/better-auth/commit/f195bebb8b03c10ed932c33d8d4d75294e4f50a2) feat(scim): add provider management endpoints - [`38ef18f`](https://github.com/better-auth/better-auth/commit/38ef18f89204959993251f0b21606bae9ea8cd46) chore(scim): move scim management tests to their own suite - [`be0342e`](https://github.com/better-auth/better-auth/commit/be0342e78c5557fc3a36b04e6db6882f05e9fab6) chore(scim): update access control policy to be consistent across management endpoints - [`0f9fd69`](https://github.com/better-auth/better-auth/commit/0f9fd692affcec11b720a59fa3df6d14069d509d) docs(scim): add docs for new management endpoints - [`517b2ed`](https://github.com/better-auth/better-auth/commit/517b2ede880ec66e700b453f4785a3a50b8a17df) chore(scim): rename management endpoints - [`3375e69`](https://github.com/better-auth/better-auth/commit/3375e691499e22467949c37b50241389effac100) chore(scim): fix linting - [`8a0b9fa`](https://github.com/better-auth/better-auth/commit/8a0b9fa3d5fbabdcf55b2bffe9432d68d75e2d13) chore(scim): fix grammar and incorrect docs - [`934c887`](https://github.com/better-auth/better-auth/commit/934c887d9d4a8f08ce6ce70023c4ac1ae2061c2d) chore(scim): relax global providers filter - [`adc1751`](https://github.com/better-auth/better-auth/commit/adc175166c90aafc351d7e403a14d0867c4a1c13) chore(scim): fix scim access control test - [`0d5b1d6`](https://github.com/better-auth/better-auth/commit/0d5b1d66aaf31730e86c63cca91429a01694ceb1) docs(scim): fix site docs ### 📊 Changes **5 files changed** (+930 additions, -284 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/scim.mdx` (+46 -1) 📝 `packages/scim/src/index.ts` (+6 -0) 📝 `packages/scim/src/routes.ts` (+255 -1) ➕ `packages/scim/src/scim.management.test.ts` (+615 -0) 📝 `packages/scim/src/scim.test.ts` (+8 -282) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Add SCIM provider connection management endpoints with session auth and org‑scoped access control. Users can list, view, and delete SCIM connections; deleting a connection immediately invalidates its token. - **New Features** - GET /scim/list-provider-connections: List connections for orgs the user belongs to and global providers. - GET /scim/get-provider-connection: Return connection details if the user has access. - POST /scim/delete-provider-connection: Delete an existing connection. - **Refactors** - Renamed management endpoints to RPC-style paths. - Unified access control across endpoints; global providers visible to any signed-in user. - Updated docs; moved management tests into a dedicated suite; fixed access control test. <sup>Written for commit ba55a8ba15f2e386bfe55a2626012a1b71020998. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:24:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#24519