SSO &
Federation
Understand how Single Sign-On and Federation let users authenticate once and access multiple systems securely across organizational boundaries.
The Authentication Problem
Every time you log into a website, you prove your identity with credentials: a username and password. But modern organizations use dozens of applications. Without a smarter approach, users face a painful choice: reuse the same password everywhere (insecure) or remember dozens of unique passwords (impractical).
What Is Single Sign-On?
Single Sign-On (SSO) is an authentication scheme that lets a user log in once and gain access to multiple related applications without being prompted to log in again for each one.
What Is Federation?
Federation extends the SSO concept across organizational boundaries. It lets users from Organization A access resources in Organization B without creating a separate account, because both organizations trust a common identity standard.
The Trust Triangle
How SSO Works: The Flow
Key Protocols Powering SSO
SSO vs Federation
| SSO | Federation | |
|---|---|---|
| Scope | Within one organization | Across multiple organizations |
| Trust Boundary | Single security domain | Cross-domain trust agreements |
| Example | Employee logs in once, accesses email + HR portal | "Sign in with Google" on a third-party site |
| Identity Mgmt | One directory (Active Directory) | Federated identity across directories |
| Protocols | Kerberos, LDAP-based | SAML, OAuth 2.0, OpenID Connect |
How Tokens Carry Trust
When the IdP authenticates a user, it creates a token: a digitally signed data packet. The SP trusts this token because it can verify the IdP's digital signature using a pre-shared public key.
Federation In Action
Why SSO Matters
How to Evaluate an SSO Setup
Example: School SSO
Example: Enterprise Federation
A hospital network (HealthCorp) needs its doctors to access a partner lab's results portal (LabNet). Instead of creating LabNet accounts for every doctor, they establish a SAML federation.
SAML vs OpenID Connect
| SAML 2.0 | OpenID Connect | |
|---|---|---|
| Format | XML assertions | JSON Web Tokens (JWT) |
| Transport | Browser POST / Redirect | RESTful API calls |
| Use Case | Enterprise / legacy apps | Modern web + mobile apps |
| Complexity | Heavier, more verbose | Lightweight, developer-friendly |
| Built On | Standalone standard | OAuth 2.0 foundation |
Common Mistakes
Summary at a Glance
| Concept | Definition | Key Detail |
|---|---|---|
| SSO | One login, many apps | Within one organization |
| Federation | SSO across org boundaries | Cross-domain trust |
| IdP | Verifies user identity | Issues signed tokens |
| SP | App the user accesses | Validates IdP tokens |
| SAML | XML-based SSO protocol | Enterprise standard |
| OIDC | JSON-based identity layer | Built on OAuth 2.0 |
| MFA | Additional auth factors | Essential with SSO |
Question 1 of 5
What is the primary benefit of Single Sign-On (SSO) for end users?
Question 2 of 5
What distinguishes federation from basic SSO?
Question 3 of 5
In a SAML-based SSO flow, which component issues the authentication assertion?
Question 4 of 5
Why is Multi-Factor Authentication (MFA) especially important when SSO is in use?
Question 5 of 5
Which protocol is best described as an identity layer built on top of OAuth 2.0?