November 27, 2026 · 9 min read · Thomas Osayi
SSO and SAML for B2B SaaS: when buyers ask, SAML vs OIDC, SCIM and what to build or buy
SSO SAML for B2B SaaS explained: when enterprise buyers ask, SAML vs OIDC, how the login works, SCIM, and WorkOS or Clerk pricing at the time of writing.
At some point in a B2B SaaS, a promising sales call ends with a short message from the buyer's IT team: "Do you support SAML SSO?" Followed, often, by "and SCIM?" If the answer is no, the deal can stall, not because the buyer dislikes your product but because their policy says every app their staff use must log in through their identity provider.
I build SaaS apps with multiple roles and organizations, and this is the post I wish founders read before that call. It covers when SSO becomes a real requirement, what SAML and OIDC actually are, how a SAML login works inside your app, whether to build or buy, the main providers and their pricing at the time of writing (checked November 27, 2026), what SCIM adds, and the problems that show up in the first rollouts. None of this is security or legal advice for your specific contract. It is how the pieces fit.
When do B2B SaaS buyers start asking for SSO?
Buyers start asking for SSO when the person signing the contract works at a company whose IT team manages logins centrally, which usually means larger customers and regulated industries.
Small teams sign up with Google or email and never think about it. A company with an identity provider such as Okta, Microsoft Entra ID or Google Workspace wants every app to go through it, so that one place controls who has access, enforces multi-factor authentication and removes access the day someone leaves. Your app is one more line on their list.
The practical trigger is simple: build SSO when a real deal needs it, not as a speculative feature. Before that, it is configuration you cannot test with a real customer, and you will guess wrong about details like which identity provider they use. When the request comes, ask a few questions right away: which identity provider, whether they need SAML or OIDC, whether they need SCIM provisioning, and whether SSO must be enforced for everyone on their domain or just offered. Those answers shape the work more than anything in this post.
What is the difference between SAML and OIDC?
SAML and OIDC both let a customer's identity provider vouch for a user, but SAML does it with signed XML documents and OIDC does it with JSON tokens on top of OAuth 2.0.
SAML
SAML 2.0 is the long-standing enterprise standard. The identity provider sends the user's browser to your app with a signed XML assertion that says who the user is. Your app checks the signature against the customer's certificate and signs the user in. Nearly every enterprise identity provider supports it, which is why buyers ask for it by name.
OIDC
OpenID Connect is an identity layer on top of OAuth 2.0. Your app redirects to the provider, gets back a code, exchanges it for an ID token (a signed JSON Web Token) and reads the user's identity from it. It is the same family of technology as "Sign in with Google", easier to work with and the default for newer systems.
For a SaaS, you rarely get to choose. You support what the customer's identity provider and IT policy prefer, which is still often SAML. That is one of the strongest arguments for buying: a good provider supports both behind one integration in your code.
How does a SAML login actually work in a SaaS app?
A SAML login sends the user to their company's identity provider, which posts a signed assertion back to your app's assertion consumer service URL, where you verify it and create a session.
The setup for each customer, called a connection, exchanges a few values. Your side gives them an entity ID (a unique name for your app) and an ACS URL, the endpoint that receives assertions. Their side gives you their identity provider's entity ID, sign-in URL and signing certificate, usually as one metadata file.
The login itself, in the common service-provider-initiated flow:
- The user types their work email on your sign-in page.
- Your app sees the domain, say acme.com, finds the organization with that verified domain and its SSO connection, and redirects to Acme's identity provider.
- The user signs in there, with whatever multi-factor policy Acme enforces.
- The identity provider posts a signed assertion back to your ACS URL.
- Your app verifies the signature, the audience, the timestamps and that the assertion has not been used before, then finds or creates the user and starts a session.
Some customers also start logins from their identity provider's app dashboard, called IdP-initiated. It works, but it skips the request your app started, so it needs extra care. Every one of those verification steps is somewhere a homegrown implementation can go wrong, which leads to the next question.
Should I build SAML myself or buy it?
Buy it, unless identity is your product.
SAML looks like a weekend project and is not. You need correct XML signature validation, protection against replayed and altered assertions, clock skew handling, certificate rotation, metadata parsing, support for each identity provider's quirks and a way for customers to set up connections without emailing you certificates. Each of those is a place where a mistake means someone can sign in as someone else.
The cost comparison is also lopsided. A provider charges per connection per month, and the customer asking for SSO is usually on a contract large enough to cover that many times over. Building yourself saves that fee and costs weeks of development, ongoing maintenance and a permanent security responsibility.
Buying does not mean no work. You still connect SSO to your organizations, verified domains, roles and sessions, which is the part only you can build. In my experience that integration is where the real effort goes, and it is the same whichever provider you choose.
What are the options for adding enterprise SSO?
The realistic options are a dedicated enterprise auth provider, your existing auth provider's SSO add-on, or an open-source library you run yourself.
WorkOS
Best for B2B SaaS that wants SSO, SCIM and an admin portal from one vendor, whatever handles regular sign-in. Cost range at the time of writing: AuthKit user management is free up to 1 million monthly active users, SSO is $125 per connection for 1 to 15 connections, dropping to $100, $80 and $65 at higher volumes, and Directory Sync (SCIM) uses the same per-connection tiers. The Admin Portal, where a customer's IT team configures their own connection, is included. Pros: built for exactly this, strong admin portal. Cons: per-connection cost is high if you sell SSO to many small customers.
Clerk
Best for apps already on Clerk. At the time of writing, Pro is $20 a month billed annually or $25 billed monthly, includes one enterprise SSO connection per app with SAML or OIDC, and charges $75 a month each for connections 2 to 15. Directory sync includes one connection on Pro and Business, with billing for extra connections starting January 1, 2027. Pros: one vendor for all auth. Cons: you are tied to Clerk's model for organizations. "Clerk vs Supabase Auth vs Firebase Auth for a SaaS MVP" compares Clerk's wider trade-offs.
Auth0 and other identity platforms
Best for teams that need very broad identity features or already use Okta's tools. Check current enterprise connection pricing on their site, since it depends on plan. Pros: mature and complete. Cons: can be more platform than an early SaaS needs.
An open-source SAML library
Best for teams with security experience and a reason to avoid vendors. Cost: no license fee, real engineering time. Pros: full control. Cons: all the risk from the previous section is yours.
What is SCIM and do I need it too?
SCIM is a standard API that lets the customer's identity provider create, update and deactivate users in your app automatically, and buyers who require SSO often require it soon after.
SSO only handles the moment of sign-in. If Acme removes an employee from Okta, that person cannot sign in through SSO anymore, but their account in your app still exists, any existing session may still be valid and they may still hold a seat Acme is paying for. SCIM, defined in RFC 7643 and RFC 7644, closes that gap. The identity provider calls endpoints like /Users and /Groups on your app to create users, change their attributes and deactivate them.
For your app, SCIM means three things. Deactivation must end sessions and revoke API tokens, not just set a flag. Groups often map to your roles, so a customer can put people in an "Admins" group and have them become admins in your app. And seat counts change without anyone in your app clicking anything, so your billing logic needs to handle that. WorkOS and Clerk both offer directory sync so you receive clean events instead of implementing the SCIM server yourself.
How does SSO fit with organizations and roles in my data model?
SSO belongs to an organization, so you need organizations, verified domains and roles in place before SSO can work properly.
The pieces I add to a typical multi-tenant schema:
- An organizations table with the SSO connection ID from your provider and an sso_enforced setting.
- A verified_domains table, so you only route acme.com logins to Acme's connection after Acme proves it owns acme.com, usually through a DNS record or the provider's verification.
- A default role for users created through SSO, and optionally a mapping from identity provider groups to your roles.
- A rule for existing accounts: if someone already signed up with jane@acme.com using a password before Acme turned on SSO, decide whether to link the account or require SSO from now on.
If your roles are still a single is_admin column, fix that first. "Roles and permissions in a SaaS app: a practical guide for founders" and "Team accounts and invites in a SaaS app" cover the model that SSO plugs into. Record SSO configuration changes and sign-ins in your audit log too, since the same buyers usually ask about it.
What breaks in the first SSO rollouts?
The first rollouts usually break on account linking, locked-out admins, certificate changes and users whose email changes.
- Account linking. A user exists with a password and now arrives through SSO. Without a clear rule you get duplicate accounts or, worse, a takeover path if you link on an unverified email.
- No break-glass access. If SSO is enforced and the customer's identity provider has an outage or a misconfiguration, nobody can sign in. Keep a documented way for your support team to help, and log its use.
- Certificate rotation. Identity provider signing certificates expire. A provider that monitors and handles rotation saves you a surprise outage.
- Email changes. People change names and emails. Key users on the identity provider's stable user ID, not on the email address.
- Clock skew. Assertions have short validity windows, and a server clock that drifts can reject valid logins.
- Testing only one provider. Okta and Entra ID send attributes differently. Test with the one your customer uses.
As an illustration, picture a made-up inspection software company closing its first enterprise deal. The buyer uses Entra ID and wants SAML enforced for their domain. The founder adds verified domains and a role mapping, connects WorkOS, tests with an Entra developer tenant, and keeps one support-only recovery path, logged. The SSO part takes days, and most of that time goes on the data model, not the protocol.
The bottom line
SSO SAML for B2B SaaS is a sales requirement first and a technical feature second. Build it when a real buyer asks, and ask them which identity provider and whether they need SCIM. Buy the protocol from a provider such as WorkOS, Clerk or Auth0, at per-connection prices that at the time of writing start around $75 to $125 a month, and spend your own effort on organizations, verified domains, roles, account linking and session revocation. Add SCIM when customers need automatic deprovisioning, and test with the customer's actual identity provider before you call it done.
Questions, answered in one line
What is the difference between SAML and OIDC?
SAML exchanges signed XML assertions through the browser and is the long-standing enterprise standard, while OIDC is an identity layer on OAuth 2.0 that uses JSON tokens and is simpler to implement.
How much does enterprise SSO cost for a SaaS?
At the time of writing WorkOS charges $125 per SSO connection for the first 15 connections, and Clerk includes one SSO connection on Pro with extra connections from $75 a month each.
Do I need SCIM if I already have SSO?
Not always, but SSO only handles sign-in, so without SCIM a person removed from the customer's identity provider may keep an active account and session in your app until someone removes them by hand.
Should I build SAML support myself?
For almost every early SaaS the answer is no, because SAML has many security-sensitive details and a per-connection fee is cheaper than the time to build and maintain it.
Can Thomas Osayi add SSO to an existing SaaS?
Yes, connecting an auth provider's SSO to organizations, domains and roles fits the Full SaaS Platform package from $3,000, which covers multi-role apps, admin tools and integrations over about 45 days.
Sources
- WorkOS pricing WorkOS
- Clerk pricing Clerk
- OpenID Connect Core 1.0 OpenID Foundation
- RFC 7644: System for Cross-domain Identity Management: Protocol RFC Editor
Related articles
- How to scope an MVP: one workflow, three lists and the cuts that matter
- Multi-tenant SaaS with Firestore: data layout, security rules and custom claims
- Web app vs mobile app for your MVP: which to build first
- PWA vs native app in 2026: what a web app can do on iPhone now
SaaS MVP and full-stack web app development
I build SaaS MVPs and full-stack web apps in Next.js, TypeScript and Firebase or Postgres: auth, dashboards, payments, roles and admin tools. Founder of SQWAD.
See the service