[GH-ISSUE #6254] Feature Request: Enable Better Auth to Act as a SAML IdP #10460

Open
opened 2026-04-13 06:37:24 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @miyaji255 on GitHub (Nov 24, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6254

Originally assigned to: @Paola3stefania on GitHub.

Is this suited for github?

  • Yes, this is suited for github

Some applications and services still only support SAML for authentication, which makes it difficult to rely on Better Auth as a unified authentication provider. Since Better Auth currently cannot function as a SAML Identity Provider, an additional external IdP is required, adding unnecessary complexity to certain setups.

Describe the solution you'd like

I would like to request support for Better Auth to function as a SAML Identity Provider.
Having native SAML IdP capabilities — including providing IdP metadata, supporting Service Provider registration, offering basic attribute mapping, and handling SP-initiated login — would make Better Auth significantly more versatile as an authentication provider.

Describe alternatives you've considered

The main alternative is using an external SAML IdP (such as Authentik, Keycloak, or another SAML-capable identity platform) in front of Better Auth. However, this introduces additional components and configuration layers, making the overall setup more complex than necessary.

Additional context

No response

Originally created by @miyaji255 on GitHub (Nov 24, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6254 Originally assigned to: @Paola3stefania on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Some applications and services still only support SAML for authentication, which makes it difficult to rely on Better Auth as a unified authentication provider. Since Better Auth currently cannot function as a SAML Identity Provider, an additional external IdP is required, adding unnecessary complexity to certain setups. ### Describe the solution you'd like I would like to request support for Better Auth to function as a SAML Identity Provider. Having native SAML IdP capabilities — including providing IdP metadata, supporting Service Provider registration, offering basic attribute mapping, and handling SP-initiated login — would make Better Auth significantly more versatile as an authentication provider. ### Describe alternatives you've considered The main alternative is using an external SAML IdP (such as Authentik, Keycloak, or another SAML-capable identity platform) in front of Better Auth. However, this introduces additional components and configuration layers, making the overall setup more complex than necessary. ### Additional context _No response_
GiteaMirror added the enterpriseidentity labels 2026-04-13 06:37:25 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Nov 24, 2025):

Thanks for submitting your feature request regarding native SAML IdP support for Better Auth. At this time, Better Auth does not support acting as a SAML Identity Provider, which means that native SAML capabilities (such as providing IdP metadata, managing Service Provider registration, attribute mapping, or SP-initiated logins) aren’t available yet. We understand that many setups rely on SAML and that using an external IdP adds extra layers of complexity.

As a next step, please consider sharing any additional details on your use case and the specific SAML features that would benefit your configuration. This information helps our team evaluate how to prioritize such enhancements in our roadmap.

tag @better-auth-agent if you would like an answer from the Agent

What specific SAML attributes and workflows would be most critical for your implementation?

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3569086891 --> @better-auth-agent[bot] commented on GitHub (Nov 24, 2025): Thanks for submitting your feature request regarding native SAML IdP support for Better Auth. At this time, Better Auth does not support acting as a SAML Identity Provider, which means that native SAML capabilities (such as providing IdP metadata, managing Service Provider registration, attribute mapping, or SP-initiated logins) aren’t available yet. We understand that many setups rely on SAML and that using an external IdP adds extra layers of complexity. As a next step, please consider sharing any additional details on your use case and the specific SAML features that would benefit your configuration. This information helps our team evaluate how to prioritize such enhancements in our roadmap. tag @better-auth-agent if you would like an answer from the Agent What specific SAML attributes and workflows would be most critical for your implementation? <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@Bekacru commented on GitHub (Nov 24, 2025):

Why not jsut use OIDC IDP :)

<!-- gh-comment-id:3572269868 --> @Bekacru commented on GitHub (Nov 24, 2025): Why not jsut use OIDC IDP :)
Author
Owner

@miyaji255 commented on GitHub (Nov 24, 2025):

Unfortunately, some of the services I need to integrate with only support SAML —
Zoom is one example. So OIDC isn’t an option for those cases ( ; _ ; )
That’s why having SAML IdP support in Better Auth would be very helpful for my use case.

<!-- gh-comment-id:3573162577 --> @miyaji255 commented on GitHub (Nov 24, 2025): Unfortunately, some of the services I need to integrate with only support SAML — Zoom is one example. So OIDC isn’t an option for those cases ( ; _ ; ) That’s why having SAML IdP support in Better Auth would be very helpful for my use case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#10460