[PR #5966] [MERGED] fix(sso): respect disableImplicitSignUp in SAML callback #6351

Closed
opened 2026-03-13 12:55:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5966
Author: @kanarian
Created: 11/13/2025
Status: Merged
Merged: 11/14/2025
Merged by: @himself65

Base: canaryHead: fix/sso-saml-disable-implicit-sign-up


📝 Commits (1)

  • 9ed95e8 fix(sso): respect disableImplicitSignUp in SAML callback

📊 Changes

2 files changed (+72 additions, -0 deletions)

View changed files

📝 packages/sso/src/routes/sso.ts (+8 -0)
📝 packages/sso/src/saml.test.ts (+64 -0)

📄 Description

Addresses and closes the following issue: https://github.com/better-auth/better-auth/issues/5958


Summary by cubic

Respect disableImplicitSignUp in SAML SSO callbacks to prevent auto-creating users when they don’t exist. Returns UNAUTHORIZED with a clear message and adds test coverage.

  • Bug Fixes
    • Block user/account creation in SAML callback when disableImplicitSignUp is true and no existing user is found.
    • Added test asserting UNAUTHORIZED with “User not found and implicit sign up is disabled for this provider”.

Written for commit 9ed95e8981. Summary will update automatically 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/5966 **Author:** [@kanarian](https://github.com/kanarian) **Created:** 11/13/2025 **Status:** ✅ Merged **Merged:** 11/14/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/sso-saml-disable-implicit-sign-up` --- ### 📝 Commits (1) - [`9ed95e8`](https://github.com/better-auth/better-auth/commit/9ed95e8981d685b0cf649085760c957b3f49c0b5) fix(sso): respect disableImplicitSignUp in SAML callback ### 📊 Changes **2 files changed** (+72 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/sso/src/routes/sso.ts` (+8 -0) 📝 `packages/sso/src/saml.test.ts` (+64 -0) </details> ### 📄 Description Addresses and closes the following issue: https://github.com/better-auth/better-auth/issues/5958 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Respect disableImplicitSignUp in SAML SSO callbacks to prevent auto-creating users when they don’t exist. Returns UNAUTHORIZED with a clear message and adds test coverage. - **Bug Fixes** - Block user/account creation in SAML callback when disableImplicitSignUp is true and no existing user is found. - Added test asserting UNAUTHORIZED with “User not found and implicit sign up is disabled for this provider”. <sup>Written for commit 9ed95e8981d685b0cf649085760c957b3f49c0b5. Summary will update automatically 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 12:55:41 -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#6351