IDSync — identity software buyer platform
Browse toolsRun Stack Finder

SAML vs OIDC: which to use for SSO, and when

Use OpenID Connect (OIDC) for new web apps, single-page apps, mobile apps and anything that also calls APIs, because it runs on OAuth 2.0 and JSON tokens. Use SAML 2.0 when an enterprise customer's identity provider or an older application only supports SAML. A B2B SaaS product that sells to enterprises usually ends up supporting both.

Last updated 29 November 2026. Protocol support checked against each vendor's own documentation on 29 November 2026. Vendor-neutral; no vendor paid to appear.

Which protocol for which app

Start from the application, not the identity provider. The major IdPs support both protocols, so the app and its users decide.

App typeUseWhy
New web app or single-page app for your own staffOIDCSimpler to build with current frameworks, JSON tokens, and the same flow can return an access token for your APIs.
Native mobile or desktop appOIDCAuthorization code flow with PKCE is the standard pattern for native apps. SAML needs a browser form post.
App that signs users in and calls APIs for themOIDCOIDC is built on OAuth 2.0, so one sign-in gives you an ID token for the user and an access token for the API.
B2B SaaS selling to enterprisesBothSome customer IdPs and federation setups are configured for SAML only. Offer SAML, add OIDC, and let each customer pick.
Off-the-shelf SaaS or older app that only lists SAMLSAMLThe app decides. Configure it as a SAML service provider in your IdP.
Consumer app with social sign-inOIDCGoogle and Microsoft personal-account sign-in use OpenID Connect. SAML is rare outside workforce identity.
Service-to-service or machine access, no userNeitherThere is no person to sign in. Use OAuth 2.0 client credentials or workload identity instead.

How SAML and OIDC differ

Both let a user sign in once at an identity provider and reach an application without a separate password. They differ in how the proof of sign-in is packaged and carried. Full definitions: SAML 2.0, OpenID Connect, OAuth 2.0.

SAML 2.0OpenID Connect
Built onIts own OASIS standard (SAML 2.0)An identity layer on top of OAuth 2.0
Token formatSigned XML assertionSigned JSON Web Token (ID token)
How it travelsBrowser redirect and HTML form post to the appBrowser redirect with a code, then a back-channel call to the token endpoint
Setup between IdP and appExchange XML metadata and signing certificatesRegister a client; the app reads the IdP's discovery document and keys
Native and mobile appsPossible through a browser, but awkwardDesigned for it (authorization code with PKCE)
API accessNot part of the protocolComes with OAuth 2.0 access tokens
Where you mostly see itWorkforce SSO into SaaS and enterprise appsNew apps, consumer sign-in, mobile, developer platforms

Which identity providers support SAML and OIDC

This table covers the vendors in the IDSync SSO category. Most directory records list app integrations rather than protocols, so for the large IdPs we checked the vendor's own documentation on 29 November 2026 and link it in the Source column. Where neither source states support, the cell says "Not recorded". That means we have not confirmed it, not that the product lacks it.

VendorSAML 2.0OIDCSCIMSource
Auth0YesYesNot recordedAuth0 lists OAuth 2.0, OpenID Connect, SAML and WS-Federation, and documents SSO integrations that use Auth0 as the SAML IdP. Auth0 Docs: Protocols Auth0 Docs: SAML SSO integrations
AutheliaOn roadmapYesNot recordedThe OpenID Connect 1.0 Provider is under Active on Authelia's roadmap; a SAML 2.0 Provider is under Planning. Authelia roadmap
ForgeRockYesYesYesIDSync directory record
IBM Security VerifyYesYesYesIDSync directory record
JumpCloudYesYesYesPrebuilt and custom SAML 2.0 connectors, plus a separate OIDC SSO option for web apps. JumpCloud: Get started with SAML SSO JumpCloud: SSO with OIDC
KeycloakYesYesNot recordedKeycloak supports OpenID Connect, OAuth 2.0 and SAML 2.0. keycloak.org
Microsoft EntraYesYesYesFederation-based SSO uses SAML 2.0 or OpenID Connect; password-based and linked SSO cover apps without either. Microsoft Learn: What is single sign-on in Microsoft Entra ID?
miniOrangeYesYesYesIDSync directory record
OktaYesYesYesThe App Integration Wizard connects SAML, OIDC and SWA apps; SCIM provisioning is added to an integration separately. Okta Help: App Integration Wizard
OneLoginYesYesYesOneLogin's developer docs list OAuth 2.0, SAML and OIDC for login flows. OneLogin Developers
Ping IdentityYesYesNot recordedPing's SSO capability page lists OIDC and SAML brokering. Ping Identity: Single sign-on
SkycloakYesYesYesIDSync directory record
ZitadelYesYesYesIDSync directory record

Vendor docs checked 29 November 2026. SCIM column: "Yes" when the vendor's directory record lists SCIM or the vendor is listed in our SCIM or directory provisioning category.

Also in the SSO category, with no SAML or OIDC support recorded yet: Clerk, Descope, Frontegg, FusionAuth, Stytch, WorkOS. Some, such as WorkOS, connect your app to a customer's SAML or OIDC IdP rather than acting as the workforce IdP themselves. Check each vendor's docs before you rely on this list.

If you are adding enterprise SSO to a SaaS product

Your app is the service provider (relying party), and each enterprise customer brings their own IdP. Plan for SAML first, because some customer IdPs are set up for SAML only, and add OIDC for customers on newer setups. Expect one connection per customer, each with its own certificates or client secrets to rotate.

Many teams buy this layer instead of building it. Per-connection platforms such as WorkOS and CIAM platforms such as Auth0 handle both protocols behind one API. Pricing differs a lot by meter; see our WorkOS pricing and Auth0 pricing guides. Sign-in is only half the job: pair it with SCIM so accounts are removed when people leave.

Frequently asked questions

Is OIDC more secure than SAML?
Neither protocol is secure or insecure on its own. Both are safe when the app validates signatures, checks the audience and expiry, and rejects replayed responses. SAML implementations tend to fail in XML signature handling; OIDC implementations tend to fail in token validation and redirect URI checks. Use a maintained library for either one instead of parsing responses yourself.
Can an app support SAML and OIDC at the same time?
Yes. Every identity provider in the support table on this page lists both protocols, and you choose one per application. A SaaS product can accept SAML from one customer and OIDC from another, which is how most B2B products handle enterprise SSO.
Is OAuth 2.0 the same as OIDC?
No. OAuth 2.0 is for authorization: it gives an app an access token to call an API on the user's behalf. OpenID Connect adds an ID token and a userinfo endpoint on top of OAuth 2.0, so the app also learns who signed in. Single sign-on needs the identity part, which is why sign-in uses OIDC rather than plain OAuth.
Does SAML work for mobile apps?
It can, through a browser or web view, but it is awkward because SAML relies on browser redirects and form posts. Native and mobile apps normally use OIDC with the authorization code flow and PKCE, the pattern described in RFC 8252 (OAuth 2.0 for Native Apps).
Does SAML or OIDC create and remove user accounts?
No. Both protocols only sign users in. Creating, updating and deactivating accounts in the app is handled by SCIM provisioning, or by just-in-time account creation at first sign-in. If offboarding matters to you, check SCIM support separately from SSO support.
Which protocol do enterprise customers expect?
Microsoft's own guidance for app developers says OIDC is usually simpler to build with modern frameworks, while SAML offers broader enterprise compatibility. If you sell to enterprises, offer SAML and add OIDC; supporting both means no customer's IdP setup blocks the deal.

Keep reading

SSO providers compared

Every SSO vendor in the directory, with pricing model, deployment and SCIM.

What is SAML 2.0?

The full definition and how a SAML sign-in works.

What is OpenID Connect?

The full definition and how OIDC adds identity to OAuth 2.0.

What is PKCE?

Why mobile and single-page apps use the code flow with PKCE.

Buyer help

Request a vendor shortlist

Tell us what you're evaluating and IDSync will identify the identity, access, and security tools that fit your use case.

Request shortlist →