[PR #7140] [MERGED] feat(sso): add update and delete provider endpoints #7096

Closed
opened 2026-03-13 13:23:57 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7140
Author: @Paola3stefania
Created: 1/5/2026
Status: Merged
Merged: 1/22/2026
Merged by: @Paola3stefania

Base: feat/sso-provider-read-endpointsHead: feat/sso-provider-update-delete


📝 Commits (10+)

📊 Changes

4 files changed (+1254 additions, -71 deletions)

View changed files

📝 packages/sso/src/index.ts (+14 -3)
📝 packages/sso/src/providers.test.ts (+753 -2)
📝 packages/sso/src/routes/providers.ts (+392 -66)
packages/sso/src/routes/schemas.ts (+95 -0)

📄 Description

Summary by cubic

Added SSO provider list/detail/update/delete endpoints with strict access and sanitized responses. Access requires ownership or org admin rights.

  • New Features

    • SSO: GET /sso/providers, GET /sso/providers/:providerId, PATCH /sso/providers/:providerId, DELETE /sso/providers/:providerId.
    • Sanitized responses: hide clientSecret, mask clientId, safe config parsing; domainVerified defaults to false.
  • Refactors

    • Zod v4 schemas and validation (URLs, algorithms, metadata size); partial updates; reset domainVerified on domain change; block cross-type updates.
    • Org-aware access checks using hasPlugin with batched admin lookups; delete leaves linked accounts intact.

Written for commit 202b899674. 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/7140 **Author:** [@Paola3stefania](https://github.com/Paola3stefania) **Created:** 1/5/2026 **Status:** ✅ Merged **Merged:** 1/22/2026 **Merged by:** [@Paola3stefania](https://github.com/Paola3stefania) **Base:** `feat/sso-provider-read-endpoints` ← **Head:** `feat/sso-provider-update-delete` --- ### 📝 Commits (10+) - [`b6f5743`](https://github.com/better-auth/better-auth/commit/b6f574331d33c519764f0b09f02b4ef6bb44b74e) feat: parse certificate - [`d5e7953`](https://github.com/better-auth/better-auth/commit/d5e795305e579781ae131a61dfd21c876a993cb3) feat: provider endpoint - [`5f6b774`](https://github.com/better-auth/better-auth/commit/5f6b77486d072eee6753c1e28f1ec8aed6e78a81) feat: tests - [`724159e`](https://github.com/better-auth/better-auth/commit/724159ec99598d584c355c2283bb4082d6de32d9) make lint happy - [`7b6cb61`](https://github.com/better-auth/better-auth/commit/7b6cb6171f9da7f7bedcb2a64b21dac58b28a1c3) Merge branch 'canary' into feat/sso-provider-read-endpoints - [`050c11c`](https://github.com/better-auth/better-auth/commit/050c11c61cf8a7ae3e5af2af6cf08271e8fc43b0) feat: hasPlugin - [`95ebf3b`](https://github.com/better-auth/better-auth/commit/95ebf3b3dfedcd3f57bc307beb9e85d5a80a3a7f) fix: tests - [`a832a00`](https://github.com/better-auth/better-auth/commit/a832a00f06b2a14bad5e0c36031f2d7a6350ccdc) Merge branch 'canary' into feat/sso-provider-read-endpoints - [`fa10691`](https://github.com/better-auth/better-auth/commit/fa10691047ab0bbdb590b73b62e75a4cf56358de) feat: schemas and update - [`8c20306`](https://github.com/better-auth/better-auth/commit/8c20306a6f3f131ce78aeb93c7d5537cf5cad38c) feat: delete ### 📊 Changes **4 files changed** (+1254 additions, -71 deletions) <details> <summary>View changed files</summary> 📝 `packages/sso/src/index.ts` (+14 -3) 📝 `packages/sso/src/providers.test.ts` (+753 -2) 📝 `packages/sso/src/routes/providers.ts` (+392 -66) ➕ `packages/sso/src/routes/schemas.ts` (+95 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Added SSO provider list/detail/update/delete endpoints with strict access and sanitized responses. Access requires ownership or org admin rights. - New Features - SSO: GET /sso/providers, GET /sso/providers/:providerId, PATCH /sso/providers/:providerId, DELETE /sso/providers/:providerId. - Sanitized responses: hide clientSecret, mask clientId, safe config parsing; domainVerified defaults to false. - Refactors - Zod v4 schemas and validation (URLs, algorithms, metadata size); partial updates; reset domainVerified on domain change; block cross-type updates. - Org-aware access checks using hasPlugin with batched admin lookups; delete leaves linked accounts intact. <sup>Written for commit 202b899674edcc723978b425ba87829972199107. 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-03-13 13:23:57 -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#7096