01 / 21

SSO &
Federation

Understand how Single Sign-On and Federation let users authenticate once and access multiple systems securely across organizational boundaries.

Cyber Security

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.

One Login
User authenticates a single time with one set of credentials.
Many Apps
A trust token is shared so each app knows the user is verified.
Central Control
IT can revoke access from one place: disable the account, all apps lock.

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

User Identity Provider (IdP) Service Provider (SP) Authenticates Requests Access Trust / Token The IdP vouches for the user; the SP trusts the IdP

How SSO Works: The Flow

Step 1 User visits SP Step 2 SP redirects to IdP Step 3 User logs in at IdP Step 4 IdP issues token Step 5 Token sent to SP Step 6 SP grants access Next time: User visits another SP Token already exists → no login needed → instant access

Key Protocols Powering SSO

SAML 2.0
XML-based standard for exchanging authentication data. Common in enterprise environments. Uses assertions sent via the browser.
OAuth 2.0
Authorization framework that issues access tokens. Delegates permissions without sharing passwords. Powers "Login with" buttons.
OpenID Connect
Identity layer on top of OAuth 2.0. Adds an ID token so the app knows who the user is, not just what they can do.

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.

Token Payload sub: alice@school.edu iss: idp.school.edu exp: 2025-07-12T14:30:00Z aud: app.partner.com Digital Signature Verified by SP IdP Signs token

Federation In Action

Organization A IdP (Azure AD) Alice Bob Federated Trust Organization B SP (Salesforce) SP (Slack) SP (Dropbox)

Why SSO Matters

1
Reduced password fatigue. Users remember one strong password instead of dozens of weak ones.
2
Faster incident response. Disabling one account instantly revokes access across all connected services.
3
Better compliance. Centralized logging makes it easier to audit who accessed what and when.
4
Improved user experience. No repeated logins means less friction and higher productivity.

How to Evaluate an SSO Setup

1
Identify the IdP. Who authenticates users? Is it an internal directory or a cloud service like Okta or Azure AD?
2
Map the Service Providers. List every application that relies on the IdP for authentication.
3
Check the protocol. Is SAML, OAuth 2.0, or OpenID Connect in use? Each has different security properties.
4
Verify MFA. SSO concentrates risk: if the one password is stolen, everything is exposed. Multi-Factor Authentication is essential.
5
Review token expiry. Tokens should expire quickly and require re-authentication to limit damage from theft.

Example: School SSO

Student One Login Google Workspace IdP Google Classroom Khan Academy Canva Edu Turnitin

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.

1
Trust established. HealthCorp's IdP and LabNet's SP exchange certificates and metadata.
2
Doctor logs in. Dr. Lee opens the LabNet portal. LabNet redirects to HealthCorp's IdP.
3
IdP authenticates. Dr. Lee enters her HealthCorp credentials (with MFA). The IdP creates a SAML assertion.
4
Access granted. The SAML assertion is posted back to LabNet. LabNet verifies the signature and grants access.

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

✕ No MFA on the IdP
SSO creates a single point of failure. Without Multi-Factor Authentication, one stolen password compromises every connected app.
✕ Long-lived tokens
Tokens that never expire give attackers a permanent pass. Always set short expiry times and require periodic re-authentication.
✕ Confusing AuthN vs AuthZ
Authentication (AuthN) proves who you are. Authorization (AuthZ) controls what you can do. SSO handles AuthN: you still need separate authorization rules.

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?