Enterprise org auth?

Is there a way to let organizations have custom auth methods? E.g. different OAuth providers for different orgs
11 Replies
Ping
Ping4mo ago
Are you talking about having every OAuth provider setup, then allowing org owners to pick which OAuth provider for their members to join through, or are you talking about making the org owners setup OAuth entirely themselves, and have some way to connect that to better-auth?
Jakob Norlin
Jakob NorlinOP4mo ago
The former. We probably don't need to set up every auth provider optimistically, but can add them as needed. I'm thinking about larger contracts, so doesn't need to be self serve
Ping
Ping4mo ago
Yeah you should be able to achieve this. Set up all the providers you want, then in the UI for org owners, make them pick which providers they want to enable, and save that in the DB. Next time a member joins that org, check the DB for that org and find which providers are enabled, and then allow that member to choose whichever provider
Jakob Norlin
Jakob NorlinOP4mo ago
Sorry, I didn't mean pick from the regular auth providers. But rather be able to set up an org to authenticate through their own google workspace for example SSO is the concept I'm looking for I guess
bekacru
bekacru4mo ago
we're going to have one soon (for free 😁) but it's going to be only OIDC no SAML
Jakob Norlin
Jakob NorlinOP4mo ago
To start, or never SAML? But that's great to hear regardless! Is there some place I can follow along updates on the OIDC plugin?
bekacru
bekacru4mo ago
to start with. I'm not familiar with SAML so would take sometime to implement.
Jakob Norlin
Jakob NorlinOP4mo ago
Makes sense. It seems a lot more complicated
bekacru
bekacru4mo ago
there isn't open PR right now but there should be soon
Jakob Norlin
Jakob NorlinOP4mo ago
We'd probably be interested in SAML in a while But OIDC would be a great start 😄
bekacru
bekacru4mo ago
yeah that's probably more common We'll see. I'll try to take a look at the spec.

Did you find this page helpful?