On this page 7 sections
SAML SSO lets an enterprise customer’s employees sign in to your product through their company’s identity provider, such as Okta or Microsoft Entra ID, so their IT team controls who gets in. Most SaaS teams add it through a provider like WorkOS, Clerk or Auth0, at list prices of $75-$125 per customer connection a month.
If you’re reading this, a security questionnaire probably has a line that says “Does the application support SAML 2.0 single sign-on?” and a deal is waiting on the answer. The good news: on a managed provider, that line is an integration project, not a rewrite of your auth. The bad news: the questionnaire rarely stops at SAML. Below is what the buyer means, what their IT team will test, what it costs, and the one route we’d steer you away from.
What SAML SSO means for your product
SAML (Security Assertion Markup Language) 2.0 is a standard for one system to tell another “this person is who they say they are”. Three parties are involved:
- The identity provider (IdP): the customer’s Okta, Microsoft Entra ID or Google Workspace. It holds the employee list, passwords and MFA.
- The service provider (SP): your app. It trusts the IdP instead of checking a password itself.
- The assertion: a signed XML document the IdP sends back after login, naming the user and usually their email, name and groups.
The flow your users see is short. They type their work email on your login page, you redirect them to their company’s IdP, they sign in there (often already signed in), and the IdP posts the signed assertion back to your app. Your app checks the signature against the customer’s certificate, checks the assertion is for your app and still fresh, and starts a session. That’s SP-initiated login. IdP-initiated login starts from a tile in the customer’s Okta or Entra dashboard instead. Support both if your provider allows it.
What changes for you: each enterprise customer becomes a connection, one IdP configuration attached to one organization in your app. Ten enterprise customers means ten connections, each with its own certificate, metadata and attribute mapping. That’s also how every provider prices it.
Enterprise buyers check more than SAML SSO
The questionnaire line says SAML. The IT team that tests your integration checks a longer list. Plan for all of it before the review, because a “not yet” on any item restarts the conversation.
- Provisioning on first login (JIT). Just-in-time provisioning creates the user account the first time someone signs in through SSO, using the name, email and groups in the assertion. Without it, the customer’s admin has to invite every employee by hand.
- Deprovisioning (SCIM). SAML only runs at sign-in. If an employee leaves and IT disables them in Okta, your app never hears about it, and any session they already hold stays valid. SCIM, defined in IETF RFC 7644, is an HTTP API the IdP calls to create, update and deactivate users in your app. Expect larger buyers to ask for it.
- Enforced SSO. Once SSO is on for a customer’s domain, their employees shouldn’t be able to fall back to a password login on your app. Clerk’s enterprise connections docs say that when SAML is enabled, existing users whose email matches the connection’s domain must authenticate through the IdP, and their accounts get linked.
- Role mapping. IT wants to put people in an “Admins” group in Okta and have them land as admins in your app. That means mapping IdP groups to your roles per organization.
- Certificate rotation without downtime. Microsoft Entra ID generates a SAML signing certificate that is valid for three years by default and emails admins 60, 30 and 7 days before it expires, according to Microsoft’s certificate management guide. The same guide asks SaaS vendors to accept a primary and a secondary signing certificate and to re-read the customer’s federation metadata at least every 24 hours, so a rotation doesn’t lock everyone out.
- Self-serve setup. The customer’s IT admin wants to paste metadata and test the connection themselves. WorkOS’s Admin Portal is one example: a hosted setup flow with IdP-specific walkthroughs, through a dashboard link that lasts 30 days or until setup is complete.
Tenant isolation sits under all of this. A login through Acme’s IdP must only ever land a user in Acme’s organization. If your app already scopes every query to an organization, as in our Supabase multi tenant RLS patterns, SSO plugs into that model. If tenancy is loose, fix that first.
Don’t hand-roll SAML XML signature checks
The free route is an open source SAML library and your own glue code. We advise against it for most teams, and the reason has a CVE number.
In March 2025, GitHub’s security researchers published two authentication bypasses in ruby-saml, a widely used Ruby library. The library read the same signed XML with two different parsers, and an attacker could craft a document where each parser saw a different signature element. With one valid signature from the target organization, an attacker could forge assertions for any user. The researchers found an exploitable instance in GitLab. The GitHub advisory for CVE-2025-25291 rates it critical, 9.3 on CVSS v4, with fixes in versions 1.12.4 and 1.18.0.
That was a maintained, popular library with careful users. The lesson the researchers drew was that SAML’s XML signatures are easy to get wrong. If your team writes the glue between a library and your user table, you own the next variant of that bug, and the certificate rotation, IdP quirks and assertion edge cases on top.
The opposing view is fair: providers charge per connection, and some SaaS vendors already resent the “SSO tax” they pass on to customers. Two answers. First, a connection fee is small next to the engineering time a custom SAML stack takes to build, patch and support. Second, you can price it in. Put SSO on the plan your enterprise customers buy, and the connection fee comes out of their contract. If your billing runs on Stripe, our guide to Stripe subscriptions with Supabase covers how plan tiers map to features.
Build it yourself only if you already have an identity team, or a hard requirement to keep every part of authentication in-house.
What SAML SSO costs on each provider
List prices from each vendor’s own pricing page, checked on 26 November 2026. “Connection” means one customer’s IdP setup.
| Provider | SAML SSO | SCIM / Directory Sync | Worth knowing |
|---|---|---|---|
| WorkOS | $125 per connection a month for 1-15, $100 for 16-30, lower above | Same tiers as SSO, billed per connection | First 1 million monthly active users on AuthKit free; staging environments free |
| Clerk | Pro ($25 a month) includes 1 connection per app, then $75 a month each for 2-15 | 1 included per app, then $75 a month each from January 1, 2027 | Not on the free Hobby plan; development instances get up to 25 SSO connections free |
| Auth0 | B2B Essentials from $150 a month with 3 enterprise connections; Professional from $800 a month with 5 | Included on B2B plans | Extra connections $100 a month each, up to 30 |
| Supabase Auth | Pro plan and above, $0.015 per SSO monthly active user over the plan’s quota | Not covered in the SAML docs | No single logout, and IdP-initiated login isn’t compatible with PKCE |
One date matters here. Clerk’s pricing page says billing for Directory Sync connections starts on January 1, 2027, so a Clerk app with SCIM for several customers gets a new line item in five weeks. Budget for it now, or count connections before you renew.
If your app already runs on Supabase, the Supabase SAML guide shows built-in SAML added per customer from the CLI, priced per SSO user. It’s the cheapest option at low volume. The trade-offs are in the same guide: no single logout, IdP-initiated flows need a workaround, and email is no longer a unique identifier for SSO users, so reference them by user ID.
Wire it in with two calls
With a managed provider, the code is small. On WorkOS’s standalone SSO API, the login route asks for an authorization URL for the customer’s organization, and the callback swaps the returned code for a profile:
// Login: send the user to their company's IdP
const url = workos.sso.getAuthorizationUrl({ organization: orgId, redirectUri, clientId });
// Callback: exchange the code (valid for 10 minutes) for the user's profile
const { profile } = await workos.sso.getProfileAndToken({ code, clientId });
if (profile.organizationId !== orgId) throw new Error('Wrong organization');
That last line is the one teams skip. WorkOS’s docs say to check the profile’s organization against the one you started the login for, warn that matching users by email domain is unsafe, and note that the profile’s email isn’t verified, so don’t use it alone to link to an existing account. Most of the work in an SSO project is around those calls: finding the right organization from the email a user types, mapping groups to roles, linking existing password users to their SSO identity, and turning off password login for SSO-enforced domains.
How to decide what to build first
- One enterprise deal, more in the pipeline: add SAML with JIT provisioning on a managed provider now. Use the provider’s hosted setup flow so the customer’s IT team configures their own connection.
- The questionnaire mentions deprovisioning, offboarding or SCIM: add SCIM in the same project. It’s the same provider, one more connection type and a webhook handler that deactivates users.
- Already on Supabase Auth with a handful of SSO customers: start with Supabase’s built-in SAML, and plan a provider move if you need SCIM or IdP-initiated login without workarounds.
- On Clerk with several Directory Sync connections: count them before January 1, 2027 and price SSO into your enterprise plan.
- A security or identity team in-house and a reason to own every line: build on a maintained library, pin and patch it, and get the signature validation reviewed by someone outside the team that wrote it.
- Loose tenant scoping in your data model: fix that before SSO. SSO makes the organization boundary the security boundary.
Performalise: an AI suite running in 5+ enterprises
Performalise turns the work signals engineering teams already generate - commits, pull requests, deploys, sprint velocity - into coaching and delivery analytics. It began as a fixed-scope MVP with Zeroic and grew into the LOTTE AI Coach, Value Intelligence and Kaizen suite that runs across 5+ enterprises today.
Selling to enterprises meant passing enterprise scrutiny of the data. Engineering signals from version control and CI/CD are some of the most guarded data a company has, so our engineers built the SOC 2 aligned data handling layer and the enterprise-grade access controls alongside the product from the start. Zeroic has been on the retainer since 2023.
SSO is the same kind of work: unglamorous, checked line by line by the buyer’s IT team, and what decides whether the deal closes. Our enterprise SSO integration adds SAML, OIDC and SCIM to your product on a provider such as WorkOS, Auth0 or Clerk, tested against the identity providers your customers use. We quote one fixed price before work starts. Single integrations start at $1,000. If SSO is one of several connections your product needs, our API integration services cover the rest, and a senior developer retainer keeps an engineer on your auth as more enterprise customers sign.
Frequently asked questions
- What is SAML SSO in simple terms?
- SAML SSO lets employees sign in to your product with their company login. Your app redirects them to the company's identity provider, such as Okta or Microsoft Entra ID, which checks who they are and sends back a signed XML message naming the user. Your app verifies the signature and logs them in. The company's IT team decides who gets access.
- How much does it cost to add SAML SSO to a SaaS app?
- On list prices checked in November 2026, WorkOS charges $125 per SSO connection a month for the first 15 connections. Clerk's Pro plan includes one connection per app and charges $75 a month for each extra one. Auth0's B2B Essentials plan starts at $150 a month with 3 enterprise connections. Each enterprise customer usually needs one connection.
- Do enterprise customers need SCIM as well as SAML SSO?
- Larger ones usually do. SAML only handles sign-in, so a person removed from the company's directory keeps any session or account already created in your app. SCIM lets the customer's identity provider create, update and deactivate users in your app automatically. Many teams start with just-in-time provisioning on first login and add SCIM when a customer's security review asks for deprovisioning.
- Is it safe to build SAML SSO yourself with an open source library?
- It is possible but risky. SAML depends on XML signature checks, and small parsing mistakes let attackers forge logins. In March 2025 GitHub's security researchers disclosed a critical bypass in ruby-saml, rated 9.3, that allowed signing in as any user and was exploitable in GitLab. A managed provider takes that maintenance off your team.
- Should I support SAML or OIDC for enterprise SSO?
- Support SAML first if you sell to large companies, because enterprise identity teams and security questionnaires usually ask for it by name. OIDC is simpler and works well for Google Workspace and Microsoft Entra ID customers. Managed providers such as WorkOS, Clerk and Auth0 support both, so choosing one of them means you can offer either without extra code.
References
- WorkOS - Pricing (SSO and Directory Sync per connection)
- WorkOS Docs - Single Sign-On
- WorkOS Docs - Admin Portal
- Clerk - Pricing (Enterprise SSO and Directory Sync)
- Clerk Docs - Enterprise connections overview
- Auth0 - Pricing (B2B plans and enterprise connections)
- Auth0 Docs - SAML
- Supabase Docs - Single Sign-On with SAML 2.0
- GitHub Blog - Sign in as anyone: bypassing SAML SSO authentication with parser differentials
- GitHub Advisory - CVE-2025-25291, ruby-saml authentication bypass
- Microsoft Learn - Manage federation certificates in Microsoft Entra ID
- IETF RFC 7644 - System for Cross-domain Identity Management: Protocol