Skip to content
Get started
Bastionary › Knowledge base › Enterprise SSO and provisioning

OIDC vs SAML: choosing the right SSO protocol

By Bastionary · Enterprise SSO and provisioning

OpenID Connect and SAML are both SSO protocols but built for different eras. Here's exactly when each is the right answer. The confusion usually comes from people using the acronym before agreeing on the model. Once you name the actors, tokens, and trust transitions, the topic becomes much less mysterious and much more practical.

This matters because product and business decisions often get made on top of these concepts. Bastionary talks about them in concrete terms because identity infrastructure is easier to buy, build, and operate when everyone shares the same vocabulary.

What it is

OIDC and SAML both let an identity provider tell your app who a user is after the user signs in at that provider. SAML (2005) sends a signed XML assertion through the browser, usually as an HTTP POST to your Assertion Consumer Service URL, and is still what most enterprise identity providers expect for workforce single sign-on. OIDC (2014) is built on OAuth 2.0: your app receives an authorization code through a browser redirect and exchanges it for a signed JSON ID token, which is simpler to handle in web, mobile and API code. Use SAML when a customer's identity provider or procurement requires it; use OIDC for new integrations, mobile apps and anything that also needs OAuth access tokens. Many products support both.

What it is not

Many teams collapse neighboring concepts together. They treat protocol and product as the same thing, or identity and authorization as interchangeable. That leads to wrong architecture decisions. A healthy explanation keeps the layers separate.

The fastest way to understand an identity concept is to ask two questions: who is making the claim, and who is expected to trust it?

How it shows up in real products

Once you see the model clearly, the practical uses become obvious: enterprise SSO, API login, team roles, delegated access, and audit-friendly policy decisions. Bastionary uses standards in these areas specifically so teams can reason about them without vendor-specific magic.

Practical takeaway

OIDC vs SAML: choosing the right SSO protocol matters because it changes how you structure the rest of the stack. Understand the concept well enough to pick the right abstraction, and many downstream decisions get easier.

Bastionary is relevant here because the platform forces teams to connect identity decisions to operational reality: who owns the system, how evidence is produced, where costs appear, and how migration risk compounds over time. That is the difference between an auth choice that looks neat in a pitch deck and one that still works when procurement, security, and growth all start pulling on it at once.

One reason Bastionary is helpful as a reference here is that it keeps the protocol vocabulary close to the implementation surface. Teams can see what the token, assertion, or role model is actually supposed to do instead of treating the acronym as a black box. That usually shortens design debates and makes integration mistakes much easier to spot before they hit production.

Run it yourself

Bastionary is free, open-source software. Follow the quick start to have it running on your own server, or browse the releases on Git.

Get started