By NHI Mgmt Group Editorial TeamPublished 2025-07-08Domain: Best PracticesSource: WorkOS

TL;DR: Single sign-on centralizes authentication through a trusted identity provider, and the article explains how SAML and OIDC differ for enterprise app integration, how JIT and SCIM affect provisioning, and why replay protection, logging, and authorization still matter according to WorkOS. The real lesson is that SSO simplifies login but does not remove identity governance responsibility.


At a glance

What this is: This is a practical guide to how SSO works, with a clear comparison of SAML and OIDC and the security controls that still matter after authentication.

Why it matters: It matters because IAM teams still need to govern provisioning, authorization, and auditability across human, NHI, and delegated access paths even when login is centralized.

👉 Read WorkOS's guide to adding enterprise SSO with SAML and OIDC


Context

Single sign-on centralizes authentication, but it does not centralize identity governance. The hard part is not the login redirect, it is making sure provisioning, session control, and authorization stay aligned after the identity provider issues trust. For enterprise apps, that makes SSO a governance problem as much as an authentication pattern.

For IAM teams, the question is how much control really moves to the identity provider and how much remains in the application. SAML and OIDC change the mechanics of trust delegation, but they do not eliminate the need for lifecycle management, audit trails, or permission scoping. That is why SSO sits at the intersection of human identity, delegated access, and broader access governance.


Key questions

Q: How should security teams separate SSO authentication from application authorization?

A: Treat the identity provider as the source of authentication and the application as the source of authorization. The IdP should assert who the user is, while the app should decide what that user can do based on its own roles, groups, and policy logic. That separation prevents federated login from becoming implicit access to everything the user can reach.

Q: When is SCIM better than JIT provisioning for enterprise access?

A: SCIM is better when access must change as the source of truth changes. It is the stronger choice for joiner, mover, and leaver governance because it can update or remove accounts after first login. JIT is useful for simplicity, but it can leave access state lagging behind identity changes if the application does not have additional governance controls.

Q: What breaks when SSO token validation is too loose?

A: Loose validation can let expired, replayed, misissued, or incorrectly scoped assertions create valid sessions. That turns the trust boundary into a weak point because the application accepts identity claims without enough proof. Teams should enforce signature verification, issuer and audience checks, and strict expiration handling before creating a session.

Q: Why do enterprise apps still need logs when SSO is centralized?

A: Centralized authentication does not eliminate the need for auditability. Application logs show which IdP event led to which session, what role or group was mapped, and whether fallback or emergency access was used. Without those records, incident response and access review become much harder even if the login itself is federated.


Technical breakdown

Trust delegation in SSO

SSO works by delegating authentication from the application to an identity provider. The app becomes the service provider, and the IdP returns a signed assertion or token that the app validates before creating a session. The security boundary shifts from password verification inside each app to cryptographic trust in the IdP response. That makes signature validation, audience checks, issuer checks, and expiration handling the core technical controls. If any of those checks are weak, the app is trusting identity claims without enough proof.

Practical implication: validate assertions and tokens strictly, including signature, issuer, audience, and expiry.

SAML vs OIDC for enterprise authentication

SAML and OIDC solve the same problem through different mechanisms. SAML uses XML assertions and browser-based POST flows, which makes it common in older enterprise integrations. OIDC uses JWTs over REST-based flows and is generally easier to implement in modern apps and APIs. The choice affects developer complexity, IdP compatibility, and how much metadata the application has to manage. The underlying governance issue is the same: the application must trust a federated identity signal without overextending that trust into authorization decisions.

Practical implication: support the protocol your enterprise customers actually use, but keep authorization separate from federation.

JIT provisioning, SCIM, and session control

JIT provisioning creates an account at first login, while SCIM pushes user and group changes from the IdP into the app lifecycle. JIT is lightweight but can leave access decisions too dependent on the first authentication event. SCIM is stronger for lifecycle governance because it can update or remove access when the source system changes. Neither pattern replaces application-level authorization, and neither solves stale entitlements on its own. The technical distinction matters because authentication success is not the same thing as correct access state.

Practical implication: use SCIM where lifecycle governance matters, and do not let JIT become a substitute for access review.


Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

SSO reduces login friction, but it shifts the governance burden to lifecycle and authorization controls. Centralized authentication does not mean centralized access safety. Once the IdP becomes the trust anchor, gaps in provisioning, group mapping, or emergency access handling can affect every connected app at once. Practitioners should treat SSO as an identity control plane, not a convenience feature.

Federation is not authorization, and that distinction is where many enterprise integrations go wrong. A valid SAML assertion or OIDC token only proves that the IdP authenticated a subject. It does not prove the app has correctly mapped roles, groups, or entitlements inside its own control plane. The implication is that IAM teams must separate trust in identity from trust in permission.

SCIM closes more governance gaps than JIT because lifecycle state changes are pushed, not inferred. JIT creates an account at first use, which can be useful for speed but weak for pre-authorised access models. SCIM gives the application a better chance of tracking joiner, mover, and leaver events in near real time. For enterprise SaaS, that is often the difference between federated login and governable access.

SSO is now a procurement baseline, not a differentiator, so the real evaluation point is control depth. Buyers increasingly care less about whether SSO exists and more about whether the integration supports revocation, auditability, and policy enforcement. That shifts market attention toward governance depth across human access, service accounts, and delegated application access. Practitioners should judge SSO by what it enables after authentication, not by the login flow alone.

From our research:

  • Organisations maintain an average of 6 distinct secrets manager instances, creating fragmentation that undermines centralised control, according to The State of Secrets in AppSec.
  • Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.
  • For a broader identity baseline, read Ultimate Guide to NHIs for the governance controls that sit alongside authentication.

What this signals

SSO programmes will be judged less on login convenience and more on how well they propagate identity state across the app estate. If your environment still treats SSO as a front-door feature, you will miss the operational questions that matter most: revocation, role drift, emergency access, and audit reconstruction. That is where policy, not protocol, determines whether the control actually holds.

Identity federation is becoming a control-plane problem across human, workload, and delegated access paths. A clean SSO design can still fail if provisioning is fragmented or if applications make local authorization assumptions that diverge from the IdP. Teams that already manage workload identity and service-account governance should see the same pattern here: central trust only works when downstream systems enforce it consistently.


For practitioners

  • Separate authentication from authorization Map every SSO integration so that the IdP proves identity and the application enforces roles, group membership, and permission boundaries locally.
  • Prefer SCIM for lifecycle-sensitive access Use SCIM when leaver, mover, and group-change events must update access automatically, especially for enterprise customers with recurring entitlement reviews.
  • Harden token and assertion validation Require signature verification, issuer and audience checks, nonce handling where applicable, and strict expiration enforcement before session creation.
  • Log the full authentication decision path Record the IdP event, the application session created, the mapped role or group, and the originating context so incident teams can reconstruct access history quickly.

Key takeaways

  • SSO simplifies authentication, but it does not eliminate the governance work needed to keep access accurate after login.
  • The real operational difference between JIT and SCIM is lifecycle control, not convenience, because access changes matter more than first login speed.
  • Enterprise teams should judge SSO integrations by validation depth, authorization separation, and revocation handling, not by protocol support alone.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0, NIST SP 800-63 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-1SSO federation depends on verified identities before access is granted.
NIST SP 800-63Federated authentication and assurance concepts align directly with SSO design.
NIST Zero Trust (SP 800-207)AC-1Zero Trust requires continuous verification beyond the initial SSO event.

Use SSO as one verification step and keep authorization decisions continuously enforced.


Key terms

  • Single Sign-On: A login pattern where one successful authentication session is trusted by multiple applications. The IdP proves the user’s identity once, and connected services accept that trust signal without asking for separate credentials at every step. The governance challenge is making sure trust does not outrun authorization.
  • Identity Provider: The system that authenticates a user and issues a signed identity assertion or token to other applications. It is the trust anchor for federation, but it does not automatically decide what the user can do inside each app. That division of responsibility is central to secure SSO design.
  • Just-in-Time Provisioning: An access pattern where an application creates a user account at first login based on the identity assertion it receives. It reduces setup friction, but it can leave lifecycle governance thin because the account exists before the organisation has full entitlement discipline. For enterprise access, it is a convenience pattern, not a complete governance model.
  • SCIM Provisioning: A lifecycle automation standard that lets an identity provider push account and group changes into connected applications. It is more governable than first-login creation because joiner, mover, and leaver events can update downstream access automatically. The control value comes from synchronising state, not from the protocol itself.

Deepen your knowledge

SSO, federation trust, and lifecycle governance are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building enterprise authentication controls for a similar environment, it is worth exploring.

This post draws on content published by WorkOS: How Single Sign-On (SSO) works and how to add it to your app. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2025-07-08.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org