Log in once, and use many apps.
Single Sign-On (SSO) lets you log in once and then use many apps without typing your password again.
Without SSO, every app has its own username and password. People forget them and reuse weak ones. With SSO, the apps say, βI trust the IdP. Ask it who this person is.β
| OIDC | SAML 2.0 | |
|---|---|---|
| Format | JSON / JWT | XML |
| Proof of login | ID token | SAML assertion |
| Best for | Modern apps, mobile, SPAs | Enterprise web apps |
| Built on | OAuth 2.0 | Its own standard |
| Term | Meaning in easy words |
|---|---|
| IdP | Identity provider: the system that logs users in |
| SP / Client / Relying party | The app that trusts the IdP |
| Assertion | SAML's signed statement about the user |
| ID token | OIDC's signed token (a JWT) about the user |
| Federation | Trust between separate organisations' identity systems |
| SCIM | A standard to create and remove user accounts in apps automatically (general idea) |
| MFA | Extra proof besides a password |
| Single logout | Ending the sessions in all apps when you sign out once |
| nonce | A one-time value that stops an ID token from being replayed |
| Break-glass account | An emergency admin account that does not use the IdP |
| Choice | We gain | We lose |
|---|---|---|
| Long IdP session | Fewer logins | A bigger window if a laptop is stolen |
| Strict MFA on every login | Stronger security | More friction |
| Hosted IdP | Less work, high uptime | Cost and vendor dependency |
| Own IdP | Control | You must run and secure it |