iamops.dev Search
Argo on X RSS feed
ENEnglish

Knowledge Explainer · 5 min Beginners

You have seen both names in a vendor screen, and you want to know what the difference means for your app.

SAML vs OIDC: how an app learns who signed in

SAML and OIDC both tell an app who signed in. One sends signed XML, the other a signed token. What each does, the flow, and which to pick for new apps.

Three actors: the user's browser, the app and the identity provider. The browser sends the user to sign in, the identity provider posts back a signed XML assertion, and the app refuses it if the signature or time is wrong.
TL;DRThe older standard, Security Assertion Markup Language, sends a signed…

Two standards answer one question for an app: who just signed in? Security Assertion Markup Language, or SAML, version 2.0 became a standard of the OASIS consortium in 2005. OpenID Connect, or OIDC, was finished in 2014 and builds on OAuth. Both are still in use, and both let the app trust a login server instead of holding passwords itself.

Before you start: read the OpenID Connect explainer for the newer flow. This article compares it with the older one.

Two protocols, one job#

Think of a boarding letter and a boarding pass. The letter is a sealed paper document from the airline. The gate agent checks the seal against a signature the airline has on file. The boarding pass is a small card that a phone reads and checks against a key the airline publishes. Both get you on the plane. They differ in format, and in what the gate has to check.

SAML is the letter. OIDC is the pass.

The SAML flow#

In SAML the app is called the service provider, and the login server is the identity provider. The app sends the browser to the identity provider with a request. The user signs in there, with a password and a second factor if the company requires one. The identity provider then sends a signed XML document back to the app through the browser. That document is the assertion. It names the user and says when it is valid.

The app checks the signature with the certificate it registered for the identity provider. Then it checks the time window and the audience. Only then does it sign the user in.

The flow below shows that exchange. The red step is the one that decides whether the app trusts anything at all.

Three actors: the user's browser, the app and the identity provider. The browser sends the user to sign in, the identity provider posts back a signed XML assertion, and the app refuses it if the signature or time is wrong.
The browser carries the message. The app trusts the signed document and nothing else, so the check has to be right.

XML is flexible, and that made signature checks harder to get right. SAML libraries have a long record of bugs in that part. The safe habit is to use a maintained library, keep it updated, and test that a forged or expired assertion is refused.

How OIDC differs on the wire#

OIDC runs on OAuth. The app sends the browser to sign in and gets back a short code. The app then exchanges that code on a direct call to the identity provider and receives an ID token. The ID token says who the user is. The app checks its signature, and then it knows the user.

Because the token comes back on that direct call, it does not have to travel in the browser’s address bar. A web app makes the call from its server. Mobile and single-page apps make it themselves and protect the code with an extension called PKCE, which is one reason OIDC suits them. For calls to an API, the app also gets an access token, which is a separate token with a separate job.

Side by side#

Property SAML 2.0 OIDC
What the app receives Signed XML assertion Signed ID token
Built on Its own protocol OAuth 2.0
Usual fit Older enterprise apps, partner links Web apps, mobile apps, APIs
Access for an API Not part of the design Access tokens are part of the design

Which to pick#

For a new app or a new API, pick OIDC. For an older enterprise application that only speaks SAML, keep SAML until the vendor offers OIDC, and plan the move. Avatier’s 2026 assessment says the same thing: SAML still carries legacy enterprise single sign-on and business partner links, while OIDC is the better choice for new builds.

When you talk to a vendor, ask three things. Which checks run on the assertion or token. Whether it accepts only the certificate or key you registered. And how it handles an expired or replayed message.

Where to go next#

Sources#

Discuss this on X or LinkedIn

Follow on X

New posts by email

One email a week with new posts and labs. Unsubscribe anytime.

Your address is stored with Kit, which sends the emails. Details

Related research and labs

Type to search every page. Use the arrow keys to move through the results.

    Open the full search page