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

Closed
opened 2026-04-13 09:32:20 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5966

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5966 **State:** closed **Merged:** Yes --- 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. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:20 -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#14598