[GH-ISSUE #96] SAML authentication #16756

Closed
opened 2026-04-15 14:43:11 -05:00 by GiteaMirror · 71 comments
Owner

Originally created by @osdiab on GitHub (Oct 5, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/96

For enterprise usecases; it is possible to achieve this with OAuth and running SAML Jackson, but would be nice to not need that extra dependency.

https://github.com/boxyhq/jackson

Originally created by @osdiab on GitHub (Oct 5, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/96 For enterprise usecases; it is possible to achieve this with OAuth and running SAML Jackson, but would be nice to not need that extra dependency. https://github.com/boxyhq/jackson
GiteaMirror added the enhancementlocked labels 2026-04-15 14:43:11 -05:00
Author
Owner

@HeyGarrison commented on GitHub (Feb 4, 2025):

+1

<!-- gh-comment-id:2633872715 --> @HeyGarrison commented on GitHub (Feb 4, 2025): +1
Author
Owner

@gsaandy commented on GitHub (Feb 5, 2025):

Hello, awesome community! Any updates on this?

<!-- gh-comment-id:2636407702 --> @gsaandy commented on GitHub (Feb 5, 2025): Hello, awesome community! Any updates on this?
Author
Owner

@stevica-canadi commented on GitHub (Feb 5, 2025):

+1

<!-- gh-comment-id:2637103554 --> @stevica-canadi commented on GitHub (Feb 5, 2025): +1
Author
Owner

@spugachev commented on GitHub (Feb 5, 2025):

+1

<!-- gh-comment-id:2637992918 --> @spugachev commented on GitHub (Feb 5, 2025): +1
Author
Owner

@leobudima commented on GitHub (Feb 6, 2025):

+1

<!-- gh-comment-id:2639698349 --> @leobudima commented on GitHub (Feb 6, 2025): +1
Author
Owner

@amxv commented on GitHub (Feb 6, 2025):

+1. @ssoready also provides a SAML over OAuth flow. They have some code examples for NextAuth.js but I imagine this can't be too hard to implement with Better Auth:

https://ssoready.com/docs/saml-over-oauth-saml-nextauth-integration

<!-- gh-comment-id:2640260873 --> @amxv commented on GitHub (Feb 6, 2025): +1. @ssoready also provides a SAML over OAuth flow. They have some code examples for NextAuth.js but I imagine this can't be too hard to implement with Better Auth: [https://ssoready.com/docs/saml-over-oauth-saml-nextauth-integration](https://ssoready.com/docs/saml-over-oauth-saml-nextauth-integration)
Author
Owner

@WonderPanda commented on GitHub (Feb 6, 2025):

This would be an unbelievably massive contribution to the auth ecosystem for NodeJS. We currently use SAML Jackson as an additional service to facilitate a SAML over OAuth Flow but if Better Auth could do this instead and we could drop this additional dependency it would be huge

<!-- gh-comment-id:2640996044 --> @WonderPanda commented on GitHub (Feb 6, 2025): This would be an unbelievably massive contribution to the auth ecosystem for NodeJS. We currently use SAML Jackson as an additional service to facilitate a SAML over OAuth Flow but if Better Auth could do this instead and we could drop this additional dependency it would be huge
Author
Owner

@ddwebdevv commented on GitHub (Feb 8, 2025):

YES please! we need SAML too! want to use better-auth for everything!

<!-- gh-comment-id:2644853538 --> @ddwebdevv commented on GitHub (Feb 8, 2025): YES please! we need SAML too! want to use better-auth for everything!
Author
Owner

@SohelIslamImran commented on GitHub (Feb 8, 2025):

+1

<!-- gh-comment-id:2644855180 --> @SohelIslamImran commented on GitHub (Feb 8, 2025): +1
Author
Owner

@MattLParker commented on GitHub (Feb 9, 2025):

+1

<!-- gh-comment-id:2646473876 --> @MattLParker commented on GitHub (Feb 9, 2025): +1
Author
Owner

@aheidelberg commented on GitHub (Feb 12, 2025):

+1

<!-- gh-comment-id:2653012020 --> @aheidelberg commented on GitHub (Feb 12, 2025): +1
Author
Owner

@mshornikov commented on GitHub (Feb 12, 2025):

+1

<!-- gh-comment-id:2654797336 --> @mshornikov commented on GitHub (Feb 12, 2025): +1
Author
Owner

@t3duk commented on GitHub (Feb 13, 2025):

Would be great if a SAML IdP plugin came from this too.

<!-- gh-comment-id:2657646503 --> @t3duk commented on GitHub (Feb 13, 2025): Would be great if a SAML IdP plugin came from this too.
Author
Owner

@infoflowtech commented on GitHub (Feb 15, 2025):

+1

<!-- gh-comment-id:2661023119 --> @infoflowtech commented on GitHub (Feb 15, 2025): +1
Author
Owner

@yassinrais commented on GitHub (Feb 19, 2025):

+1

<!-- gh-comment-id:2669445705 --> @yassinrais commented on GitHub (Feb 19, 2025): +1
Author
Owner

@jaime-rr commented on GitHub (Feb 21, 2025):

+1

<!-- gh-comment-id:2675042929 --> @jaime-rr commented on GitHub (Feb 21, 2025): +1
Author
Owner

@Korabi123 commented on GitHub (Feb 22, 2025):

+1

<!-- gh-comment-id:2676411577 --> @Korabi123 commented on GitHub (Feb 22, 2025): +1
Author
Owner

@yamz8 commented on GitHub (Feb 26, 2025):

+1

<!-- gh-comment-id:2684954684 --> @yamz8 commented on GitHub (Feb 26, 2025): +1
Author
Owner

@jakst commented on GitHub (Feb 27, 2025):

Please stop commenting +1. It sends useless notifications to everyone who subscribes to this issue. Add a thumbs up to the original post if you want to show your support.

<!-- gh-comment-id:2687671970 --> @jakst commented on GitHub (Feb 27, 2025): Please stop commenting +1. It sends useless notifications to everyone who subscribes to this issue. Add a thumbs up to the original post if you want to show your support.
Author
Owner

@gellaz commented on GitHub (Feb 27, 2025):

+1

<!-- gh-comment-id:2687683233 --> @gellaz commented on GitHub (Feb 27, 2025): +1
Author
Owner

@thinh-trinh-duc commented on GitHub (Mar 5, 2025):

+1
Damn it, I accidentally posted before read this comment.
Sorry guys

<!-- gh-comment-id:2699566657 --> @thinh-trinh-duc commented on GitHub (Mar 5, 2025): ~~+1~~ Damn it, I accidentally posted before read [this](https://github.com/better-auth/better-auth/issues/96#issuecomment-2687671970) comment. Sorry guys
Author
Owner

@Bekacru commented on GitHub (Mar 19, 2025):

thanks for upvoting. soon! top of our list :))

<!-- gh-comment-id:2737066616 --> @Bekacru commented on GitHub (Mar 19, 2025): thanks for upvoting. soon! top of our list :))
Author
Owner

@Qodestackr commented on GitHub (Mar 19, 2025):

+2

<!-- gh-comment-id:2737305441 --> @Qodestackr commented on GitHub (Mar 19, 2025): +2
Author
Owner

@Qodestackr commented on GitHub (Mar 19, 2025):

thanks for upvoting. soon! top of our list :))

Any guide on working with OIDC? I am having alot of pain figuring out, esp lack of jwks endpoint and how to find a way to atleast work. Also, kindly mention on docs Vercel has quirks when reaching .well-known/openid-configuration

<!-- gh-comment-id:2737307200 --> @Qodestackr commented on GitHub (Mar 19, 2025): > thanks for upvoting. soon! top of our list :)) Any guide on working with OIDC? I am having alot of pain figuring out, esp lack of jwks endpoint and how to find a way to atleast work. Also, kindly mention on docs Vercel has quirks when reaching `.well-known/openid-configuration`
Author
Owner

@Hyperscale1 commented on GitHub (Mar 21, 2025):

+1

<!-- gh-comment-id:2743206278 --> @Hyperscale1 commented on GitHub (Mar 21, 2025): +1
Author
Owner

@stevica-attensi commented on GitHub (Apr 3, 2025):

+1

<!-- gh-comment-id:2774613597 --> @stevica-attensi commented on GitHub (Apr 3, 2025): +1
Author
Owner

@younisshah commented on GitHub (Apr 3, 2025):

+1

<!-- gh-comment-id:2775236235 --> @younisshah commented on GitHub (Apr 3, 2025): +1
Author
Owner

@ulic75 commented on GitHub (Apr 12, 2025):

+1

<!-- gh-comment-id:2798930319 --> @ulic75 commented on GitHub (Apr 12, 2025): +1
Author
Owner

@kvnm93 commented on GitHub (Apr 14, 2025):

+1

<!-- gh-comment-id:2801956217 --> @kvnm93 commented on GitHub (Apr 14, 2025): +1
Author
Owner

@Hyperscale1 commented on GitHub (Apr 20, 2025):

+1

<!-- gh-comment-id:2817208821 --> @Hyperscale1 commented on GitHub (Apr 20, 2025): +1
Author
Owner

@rinarakaki commented on GitHub (Apr 21, 2025):

I’d appreciate it if you could share with us the estimated timeline for SAML support to be released (and the working branch/PR)! Because this really is the blocker for us to decide to migrate from next-auth.

<!-- gh-comment-id:2818441701 --> @rinarakaki commented on GitHub (Apr 21, 2025): I’d appreciate it if you could share with us the estimated timeline for SAML support to be released (and the working branch/PR)! Because this really is the blocker for us to decide to migrate from next-auth.
Author
Owner

@SohelIslamImran commented on GitHub (Apr 21, 2025):

I’d appreciate it if you could share with us the estimated timeline for SAML support to be released (and the working branch/PR)! Because this really is the blocker for us to decide to migrate from next-auth.

Same... @Bekacru

<!-- gh-comment-id:2818511665 --> @SohelIslamImran commented on GitHub (Apr 21, 2025): > I’d appreciate it if you could share with us the estimated timeline for SAML support to be released (and the working branch/PR)! Because this really is the blocker for us to decide to migrate from next-auth. Same... @Bekacru
Author
Owner

@chitalian commented on GitHub (Apr 22, 2025):

+1

<!-- gh-comment-id:2822150789 --> @chitalian commented on GitHub (Apr 22, 2025): +1
Author
Owner

@uyrabi commented on GitHub (Apr 24, 2025):

+1

<!-- gh-comment-id:2826289737 --> @uyrabi commented on GitHub (Apr 24, 2025): +1
Author
Owner

@Whats-A-MattR commented on GitHub (Apr 24, 2025):

Any guide on working with OIDC? I am having alot of pain figuring out, esp lack of jwks endpoint and how to find a way to atleast work. Also, kindly mention on docs Vercel has quirks when reaching .well-known/openid-configuration

This has nothing to do with the Issue you're commenting on.

<!-- gh-comment-id:2826346142 --> @Whats-A-MattR commented on GitHub (Apr 24, 2025): > Any guide on working with OIDC? I am having alot of pain figuring out, esp lack of jwks endpoint and how to find a way to atleast work. Also, kindly mention on docs Vercel has quirks when reaching `.well-known/openid-configuration` This has nothing to do with the Issue you're commenting on.
Author
Owner

@mags-sully commented on GitHub (Apr 30, 2025):

I can't get buy-in on the project without SAML 😭

<!-- gh-comment-id:2842669190 --> @mags-sully commented on GitHub (Apr 30, 2025): I can't get buy-in on the project without SAML 😭
Author
Owner

@niraj-khatiwada commented on GitHub (May 2, 2025):

+1

<!-- gh-comment-id:2847626467 --> @niraj-khatiwada commented on GitHub (May 2, 2025): +1
Author
Owner

@mc-eugenea commented on GitHub (May 2, 2025):

+1

<!-- gh-comment-id:2847865228 --> @mc-eugenea commented on GitHub (May 2, 2025): +1
Author
Owner

@SinanOezkan commented on GitHub (May 9, 2025):

+1

<!-- gh-comment-id:2865687379 --> @SinanOezkan commented on GitHub (May 9, 2025): +1
Author
Owner

@standrd commented on GitHub (May 12, 2025):

+1, been checking this issue frequently, can't wait to start using better-auth once this is in.

<!-- gh-comment-id:2872614171 --> @standrd commented on GitHub (May 12, 2025): +1, been checking this issue frequently, can't wait to start using better-auth once this is in.
Author
Owner

@maccman commented on GitHub (May 12, 2025):

+1

<!-- gh-comment-id:2874306753 --> @maccman commented on GitHub (May 12, 2025): +1
Author
Owner

@smlarkin commented on GitHub (May 13, 2025):

+1

<!-- gh-comment-id:2875008025 --> @smlarkin commented on GitHub (May 13, 2025): +1
Author
Owner

@agoldstein03 commented on GitHub (May 13, 2025):

+1, would influence our decision to switch :)

<!-- gh-comment-id:2878141728 --> @agoldstein03 commented on GitHub (May 13, 2025): +1, would influence our decision to switch :)
Author
Owner

@TahaBoulehmi commented on GitHub (May 15, 2025):

+1

<!-- gh-comment-id:2883285341 --> @TahaBoulehmi commented on GitHub (May 15, 2025): +1
Author
Owner

@JWijnakker commented on GitHub (May 17, 2025):

+1

<!-- gh-comment-id:2888575577 --> @JWijnakker commented on GitHub (May 17, 2025): +1
Author
Owner

@Dawsson commented on GitHub (May 18, 2025):

+1

<!-- gh-comment-id:2889056068 --> @Dawsson commented on GitHub (May 18, 2025): +1
Author
Owner

@yamz8 commented on GitHub (May 18, 2025):

Coming soon fellas

https://x.com/imbereket/status/1924143626260770975?s=46

<!-- gh-comment-id:2889127651 --> @yamz8 commented on GitHub (May 18, 2025): Coming soon fellas https://x.com/imbereket/status/1924143626260770975?s=46
Author
Owner

@imranhou commented on GitHub (May 19, 2025):

+1

<!-- gh-comment-id:2892062192 --> @imranhou commented on GitHub (May 19, 2025): +1
Author
Owner

@mfilipiec commented on GitHub (May 20, 2025):

+1

<!-- gh-comment-id:2894004922 --> @mfilipiec commented on GitHub (May 20, 2025): +1
Author
Owner

@railaru commented on GitHub (May 24, 2025):

+1

<!-- gh-comment-id:2906694707 --> @railaru commented on GitHub (May 24, 2025): +1
Author
Owner

@aimming commented on GitHub (May 27, 2025):

+1

<!-- gh-comment-id:2911833960 --> @aimming commented on GitHub (May 27, 2025): +1
Author
Owner

@FredrikZeiner commented on GitHub (Jun 2, 2025):

Coming soon fellas

https://x.com/imbereket/status/1924143626260770975?s=46

Awesome

<!-- gh-comment-id:2930442211 --> @FredrikZeiner commented on GitHub (Jun 2, 2025): > Coming soon fellas > > https://x.com/imbereket/status/1924143626260770975?s=46 Awesome
Author
Owner

@CharlesZhao27 commented on GitHub (Jun 5, 2025):

+1

<!-- gh-comment-id:2942188302 --> @CharlesZhao27 commented on GitHub (Jun 5, 2025): +1
Author
Owner

@bhagyamudgal commented on GitHub (Jun 5, 2025):

+1

<!-- gh-comment-id:2943932540 --> @bhagyamudgal commented on GitHub (Jun 5, 2025): +1
Author
Owner

@LuciaBeron3456 commented on GitHub (Jun 6, 2025):

+1

<!-- gh-comment-id:2948950743 --> @LuciaBeron3456 commented on GitHub (Jun 6, 2025): +1
Author
Owner

@thattimc commented on GitHub (Jun 7, 2025):

+1

<!-- gh-comment-id:2952492555 --> @thattimc commented on GitHub (Jun 7, 2025): +1
Author
Owner

@Nishchit14 commented on GitHub (Jun 10, 2025):

@Bekacru is there any ETA on this feature?

<!-- gh-comment-id:2957609986 --> @Nishchit14 commented on GitHub (Jun 10, 2025): @Bekacru is there any ETA on this feature?
Author
Owner

@RSginer commented on GitHub (Jun 10, 2025):

+1

<!-- gh-comment-id:2958596876 --> @RSginer commented on GitHub (Jun 10, 2025): +1
Author
Owner

@ghost commented on GitHub (Jun 11, 2025):

+1

<!-- gh-comment-id:2963886591 --> @ghost commented on GitHub (Jun 11, 2025): +1
Author
Owner

@ahmadalzoubi31 commented on GitHub (Jun 15, 2025):

+1

<!-- gh-comment-id:2974307143 --> @ahmadalzoubi31 commented on GitHub (Jun 15, 2025): +1
Author
Owner

@lecramr commented on GitHub (Jun 16, 2025):

+1

<!-- gh-comment-id:2978104298 --> @lecramr commented on GitHub (Jun 16, 2025): +1
Author
Owner

@houssaineamzil commented on GitHub (Jun 19, 2025):

+1

<!-- gh-comment-id:2989101888 --> @houssaineamzil commented on GitHub (Jun 19, 2025): +1
Author
Owner

@florianamette commented on GitHub (Jun 20, 2025):

+1

<!-- gh-comment-id:2991729460 --> @florianamette commented on GitHub (Jun 20, 2025): +1
Author
Owner

@Cedric0852 commented on GitHub (Jun 22, 2025):

+1

<!-- gh-comment-id:2994139696 --> @Cedric0852 commented on GitHub (Jun 22, 2025): +1
Author
Owner

@yamz8 commented on GitHub (Jun 22, 2025):

Coming on the 27th

https://x.com/imbereket/status/1934473343580975381?s=46

<!-- gh-comment-id:2994142221 --> @yamz8 commented on GitHub (Jun 22, 2025): Coming on the 27th https://x.com/imbereket/status/1934473343580975381?s=46
Author
Owner

@blobgetblob commented on GitHub (Jun 27, 2025):

+1, also saml-provider would be great (like oidc-provider), for some legacy services thats only supports saml...

<!-- gh-comment-id:3012477107 --> @blobgetblob commented on GitHub (Jun 27, 2025): +1, also saml-provider would be great (like oidc-provider), for some legacy services thats only supports saml...
Author
Owner

@rajdeep-ghosh commented on GitHub (Jun 30, 2025):

+1

<!-- gh-comment-id:3018691052 --> @rajdeep-ghosh commented on GitHub (Jun 30, 2025): +1
Author
Owner

@Gautham495 commented on GitHub (Jul 2, 2025):

+1

<!-- gh-comment-id:3028324032 --> @Gautham495 commented on GitHub (Jul 2, 2025): +1
Author
Owner

@niraj-khatiwada commented on GitHub (Jul 2, 2025):

Thanks @Bekacru .Can't wait to implement this on my product.

<!-- gh-comment-id:3028412626 --> @niraj-khatiwada commented on GitHub (Jul 2, 2025): Thanks @Bekacru .Can't wait to implement this on my product.
Author
Owner

@Nishchit14 commented on GitHub (Jul 3, 2025):

@Bekacru The doc is not updated yet or SAML is not released yet in production? just curious to know.

Image
<!-- gh-comment-id:3031959020 --> @Nishchit14 commented on GitHub (Jul 3, 2025): @Bekacru The doc is not updated yet or SAML is not released yet in production? just curious to know. <img width="859" alt="Image" src="https://github.com/user-attachments/assets/2da0caf9-c5aa-45d4-b48b-c46f35b34044" />
Author
Owner

@mzupan commented on GitHub (Jul 3, 2025):

https://beta.better-auth.com/docs/plugins/sso

You also need to install the beta version

<!-- gh-comment-id:3031973605 --> @mzupan commented on GitHub (Jul 3, 2025): https://beta.better-auth.com/docs/plugins/sso You also need to install the beta version
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16756