Last updated: April 29, 2026
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):
- User visits SP. SP detects no session, generates a SAMLRequest, redirects user to IdP
- User authenticates at IdP (password + MFA, or already SSO’d)
- IdP generates signed SAMLResponse containing user attributes (NameID, email, group memberships)
- IdP redirects user back to SP with the signed response
- 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):
- User visits app (RP / relying party). RP redirects browser to IdP /authorize
- User authenticates; IdP redirects back with authorization code
- RP exchanges code for ID token + access token at IdP /token
- RP validates ID token (JWT signature, issuer, audience, expiry)
- 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:
- App inventory — 187 SaaS apps, 64 with SAML, 53 with OIDC, 41 with neither, 29 SCIM-capable
- Tier-1 (high-risk + heavy use) — Salesforce, Workday, GitHub, AWS, Microsoft 365, Slack, Zoom, Jira — federated first
- Tier-2 (departmental) — design tools, marketing platforms, HR-adjacent — federated next
- Long tail — small SaaS where SAML costs extra (the “SSO tax”) — evaluated app by app
- Non-federation-capable apps — vaulted via Okta Browser Plugin (form fill); marked for replacement
- 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
- Inventory your top 20 SaaS apps. How many are federated to your IdP? How many have SCIM provisioning?
- Pick a leaver from last quarter. Are they still in any non-federated SaaS? Test by trying their old email + “forgot password” flow.
- Decode an ID token from your dev IdP using
jwt.io. Inspect the claims; understand what travels. - For one app, configure both SP-initiated and IdP-initiated entry. Test bookmark-from-app vs portal-launch.
- 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.
Module Quiz · 6 questions
Pass with 80%+ to mark this module complete. Unlimited retries. Each question shows an explanation.
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.