Federation — SAML, OIDC, SCIM in Production

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 26, 2026
4 min read
Read as

Last updated: April 29, 2026

SAML 2.0 vs OIDC, SP-/IdP-initiated flows, SCIM provisioning, group-claim mapping, step-up auth, conditional access. Real-world rollout sequence and operational gotchas.

A Gurugram BPO had 187 SaaS applications, each with its own login. Helpdesk got 280 password-reset tickets a month. Worse, when an employee left, the offboarding checklist had 187 boxes — most of them ticked without verification. The CIO mandated SSO via Okta. Twelve months later: 1 set of credentials, 12 password-reset tickets a month, deprovisioning automated for 142 of the 187 apps. Federation is the keystone of modern IAM. This module covers SAML, OIDC, and the practical operational realities.

What federation actually does

Federation lets one identity provider (IdP) authenticate users to many service providers (SPs). The user signs in once at the IdP; the IdP issues a signed assertion that the SP trusts; the SP grants access. Two main protocols:

  • SAML 2.0 — XML-based, browser POST/Redirect bindings, dominant in enterprise SaaS
  • OIDC (OpenID Connect) — JSON / JWT on top of OAuth 2.0, dominant in modern web/mobile apps

SAML 2.0

The flow (SP-initiated):

  1. User visits SP. SP detects no session, generates a SAMLRequest, redirects user to IdP
  2. User authenticates at IdP (password + MFA, or already SSO’d)
  3. IdP generates signed SAMLResponse containing user attributes (NameID, email, group memberships)
  4. IdP redirects user back to SP with the signed response
  5. SP validates signature against IdP’s public key, creates a session, user lands on app

Key SAML terminology:

  • Metadata XML — published by IdP and SP, contains certs, endpoints, entity IDs
  • Entity ID — unique URI for each side
  • NameID format — email, persistent, transient — affects how the SP identifies the user
  • Attribute mappings — what claims (givenName, role, department) flow from IdP to SP
  • Signing / encryption — assertions signed by IdP; optionally encrypted to SP

OIDC

The most common flow (Authorisation Code with PKCE):

  1. User visits app (RP / relying party). RP redirects browser to IdP /authorize
  2. User authenticates; IdP redirects back with authorization code
  3. RP exchanges code for ID token + access token at IdP /token
  4. RP validates ID token (JWT signature, issuer, audience, expiry)
  5. User is logged in; access token used for API calls
// Decoded ID token (JWT) payload example:
{
  "iss": "https://idp.example.in/",
  "sub": "auth0|62a...",
  "aud": "client-id-of-this-app",
  "exp": 1709574000,
  "iat": 1709570400,
  "email": "[email protected]",
  "email_verified": true,
  "name": "Ananya Iyer",
  "groups": ["engineering", "platform-team"]
}

The Gurugram BPO rollout

Sequence the team followed:

  1. App inventory — 187 SaaS apps, 64 with SAML, 53 with OIDC, 41 with neither, 29 SCIM-capable
  2. Tier-1 (high-risk + heavy use) — Salesforce, Workday, GitHub, AWS, Microsoft 365, Slack, Zoom, Jira — federated first
  3. Tier-2 (departmental) — design tools, marketing platforms, HR-adjacent — federated next
  4. Long tail — small SaaS where SAML costs extra (the “SSO tax”) — evaluated app by app
  5. Non-federation-capable apps — vaulted via Okta Browser Plugin (form fill); marked for replacement
  6. SCIM provisioning for the 29 apps that supported it — dramatic reduction in manual provisioning + deprovisioning

Outcome KPIs:

  • Password reset tickets: 280/mo → 12/mo
  • Mean time to deprovision a leaver across all apps: 14 days → 4 hours (for SCIM-enabled apps; other apps still manual)
  • MFA enforcement coverage: jumped from 23% to 96% in 6 months
  • App access logs centralised in Okta — first-time visibility into who’s using what

Operational considerations

Group sync vs attribute claims

Some SPs accept group claims directly (e.g., “Engineering” group → engineering role). Others require pre-provisioned roles. Keep group-management at the IdP; let the SP map.

SCIM for provisioning

SAML/OIDC = authentication. SCIM = provisioning (create / update / disable users). Modern federation requires both — federated login alone doesn’t deprovision.

Step-up auth

For sensitive apps, require additional MFA at the IdP at session start, or refresh authentication. OIDC acr_values and max_age claims; SAML AuthnContextClassRef.

Conditional access policies

The IdP applies policies on every login: device compliance, location, risk score, MFA. Consolidate at the IdP rather than per-app.

Common pitfalls

  • Implicit flow / OAuth password grant — deprecated for security reasons; use Auth Code + PKCE
  • Trusting any signed assertion — must validate audience, issuer, expiry, nonce
  • Long-lived refresh tokens with no rotation — credential theft impact unbounded
  • Federation without deprovisioning — accounts remain at SP after IdP user disabled
  • Custom SAML attribute mappings per app — maintenance debt; standardise where possible
  • NameID format mismatch — switching from persistent to email creates orphan identities
  • SP-initiated only federation that breaks bookmarks — IdP-initiated entry points needed
  • “Just-in-time” user creation without role mapping — gives default role to users who should have none

Indian compliance mapping

  • RBI Cyber Framework — centralised authentication and SSO recommended; reduces password-reset attack surface
  • SEBI CSCRF — federated authentication for cross-system access
  • UIDAI Authentication Framework — Aadhaar e-KYC operates as federated identity (OAuth-style profile)
  • DigiLocker integration — for citizen-facing apps; SAML/OIDC bridges from gov.in IdP
  • ISO 27001:2022 A.5.16, A.5.17 — identity management and authentication

Try this in your environment

  1. Inventory your top 20 SaaS apps. How many are federated to your IdP? How many have SCIM provisioning?
  2. Pick a leaver from last quarter. Are they still in any non-federated SaaS? Test by trying their old email + “forgot password” flow.
  3. Decode an ID token from your dev IdP using jwt.io. Inspect the claims; understand what travels.
  4. For one app, configure both SP-initiated and IdP-initiated entry. Test bookmark-from-app vs portal-launch.
  5. Audit SAML/OIDC logs for failed logins — pattern unusual? brute-force? consent-phishing?

Federation done right gives you single-sign-on, single-sign-off, central MFA, central conditional access, and central deprovisioning. Done wrong, it gives you central credentials with peripheral chaos. The discipline is end-to-end: federate → provision → conditional-access → log → review.

🧠
Check your understanding

Module Quiz · 6 questions

Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.

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