Module 5 · Federation at Scale — SAML, OIDC, SCIM Patterns

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
May 14, 2026
3 min read
Read as
100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module exists. Federation — SAML, OIDC, SCIM — is the plumbing of modern identity. Done well, it produces single-sign-on across hundreds of SaaS with automatic user provisioning. Done badly, it produces broken integrations, security gaps, and an audit nightmare. This module covers the protocols and the operational patterns.

The three protocols

Protocol Purpose
SAML 2.0 Browser-based SSO; enterprise standard since 2005
OIDC (OpenID Connect) SSO on top of OAuth 2.0; modern API-first
SCIM Automated user provisioning and de-provisioning

SAML in practice

  • Service Provider (SaaS) redirects user to Identity Provider for authentication.
  • IdP authenticates and returns signed SAML assertion to SP.
  • SP validates signature, extracts user attributes, creates session.

The recurring SAML failure: signature validation done with wrong keys, or assertion not properly validated. SAML libraries have a history of bypass vulnerabilities; use mainstream libraries (Microsoft, Okta, Auth0 SDKs) and keep them current.

OIDC — the modern choice

OIDC on OAuth 2.0. JSON tokens, simpler integration, mobile-friendly. SAML is required for older enterprise SaaS; OIDC for new integrations.

Key principles:

  • Pin algorithm on token validation.
  • Use Authorisation Code + PKCE flow (covered in secure-coding track).
  • Validate audience claim — token issued for app X being accepted by app Y is a confused-deputy vulnerability.
  • Short-lived access tokens + refresh tokens with rotation.

SCIM — automated provisioning

Without SCIM: HR creates new employee → IT creates user in Okta → user requests access to each SaaS → admins provision in each SaaS. Latency: hours to days.

With SCIM: HR creates employee → Okta auto-creates user → Okta SCIM-provisions to all assigned SaaS apps automatically. Same for deactivation.

Coverage: SCIM is supported by most enterprise SaaS. Smaller / legacy apps require custom provisioning or manual sync. Identify the SCIM gap in your estate; close systematically.

The provisioning architecture

  1. Source of truth: HR / HRIS (Workday, SAP SuccessFactors, BambooHR).
  2. Identity provider: Okta, Azure Entra ID, Google Workspace, Ping. Authoritative for active users.
  3. Downstream SaaS: receives SCIM provisioning from IdP.
  4. De-provisioning: HR offboarding triggers IdP deactivation, cascades to all SaaS via SCIM.

Group-based access

Don’t provision individual users to applications. Provision groups; assign users to groups.

  • Group = role + scope (e.g., “Finance-AP-Mumbai”).
  • Group membership drives SaaS access via SCIM.
  • Access review = group membership review.
  • Joiner-mover-leaver flow updates group membership.

The federation gaps

  • Apps without SAML / OIDC: legacy on-prem applications. Use modern auth gateway (Microsoft App Proxy, Okta Access Gateway, Cloudflare Access).
  • Apps without SCIM: manual provisioning + offboarding scripts; or third-party identity connectors.
  • Shared accounts: federation cannot fix; eliminate them or wrap in PAM (Module 6).

Common failure modes

  • SCIM coverage incomplete; offboarding leaves dormant accounts in some apps.
  • SAML signing key not rotated; long-lived breach exposure.
  • Audience validation missing; cross-app token replay.
  • OIDC implicit flow used in apps; deprecated, replaced by Auth Code + PKCE.

Indian-specific considerations

  • Government-of-India services often use eSign / Aadhaar authentication; SAML federation occasionally.
  • Indian banks’ workforce often on legacy on-prem AD; federation to cloud SaaS via Azure AD Connect or similar.
  • SaaS-heavy Indian startups: pure-cloud federation via Okta or Entra is the norm.

Key takeaways

  • SAML for legacy enterprise SaaS; OIDC for modern; SCIM for provisioning.
  • Source of truth = HRIS → IdP → downstream SaaS via SCIM.
  • Group-based access; access review = group membership review.
  • Federation gaps: apps without SAML/OIDC/SCIM; close systematically.
  • Common failures: SCIM coverage gaps, missing audience validation, deprecated implicit flow.
DPDP Act in your stack?

Get a DPDP gap assessment

Free 30-minute call. We map your data flows against DPDP §8 obligations and tell you exactly which gaps to fix first. Auditor-defensible output.

Book DPDP scoping call Replies in 4 working hrs · India-only · Senior consultants