SSO vs OIDC vs SAML
Read firstAuthn vs authz
You open Gmail in the morning and sign in. Then you open YouTube, Google Drive and Google Calendar, and none of them asks you anything. At work, you sign in to Okta once and then Slack, Jira, Workday and AWS all open straight away. That experience has a name: single sign on, or SSO.
SSO is not a protocol. It is the result. OIDC and SAML are two different protocols that produce that result. Asking "SSO or OIDC?" is like asking "travel or train?". You travel by train. You get SSO by OIDC, or by SAML.
You sign in to app A through Okta. Ten minutes later you open app B, which you have never used, and you are signed in without typing anything. App B has no idea who you are. Where did it find out?
Three parties, every time#
Every SSO setup has the same three roles. The names change between the two protocols, which is half of why people find this confusing.
- You, in a browser.
- The app you want to use. SAML calls it the service provider (SP). OIDC calls it the relying party (RP), because it relies on someone else to say who you are.
- The identity provider (IdP), the one place that actually checks your password and your second factor. Okta, Microsoft Entra ID, Google, Keycloak.
The app never sees your password. It sends you to the identity provider, the identity provider checks you, and sends you back with a signed note that says "this is Asha, I checked". In SAML that note is called an assertion and it is XML. In OIDC it is called an ID token and it is a JWT. That is most of the difference.
- password to steal
- 1
- place to switch off a leaver
- 1
- SAML 2.0
- 2005
- OpenID Connect
- 2014