[PR #5842] feat(sso): add optional support for domain verification #14516

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

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

State: closed
Merged: No


Summary by cubic

Adds optional domain verification to the SSO plugin and client. Verifies provider domains via DNS TXT tokens and automatically trusts verified domains.

  • New Features

    • POST /sso/request-domain-verification to submit a provider for verification.
    • Issues verification tokens and checks DNS TXT records.
    • Supports configurable DNS TXT record prefix.
    • OIDC/SAML routes enforce verification status and provider ownership.
    • Endpoints register only when the feature is enabled.
  • Migration

    • If enabled, run: npx @better-auth/cli migrate and npx @better-auth/cli generate to apply schema changes.

Written for commit b1dda426f9. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5842 **State:** closed **Merged:** No --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds optional domain verification to the SSO plugin and client. Verifies provider domains via DNS TXT tokens and automatically trusts verified domains. - **New Features** - POST /sso/request-domain-verification to submit a provider for verification. - Issues verification tokens and checks DNS TXT records. - Supports configurable DNS TXT record prefix. - OIDC/SAML routes enforce verification status and provider ownership. - Endpoints register only when the feature is enabled. - **Migration** - If enabled, run: npx @better-auth/cli migrate and npx @better-auth/cli generate to apply schema changes. <sup>Written for commit b1dda426f94ad55016a96d2f91a67d739dfe6117. 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:30: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#14516