Subscribe to the Non-Human & AI Identity Journal

Should organisations move from SAML to OIDC for modern application authentication?

Usually yes, when the estate includes mobile apps, APIs, or cloud-native services that need lighter integration and easier key management. OIDC reduces XML complexity and often simplifies implementation, but teams still need to validate client configuration, token handling, and rollback. The protocol should fit the application model, not the other way around.

Why This Matters for Security Teams

SAML has been dependable for browser-based enterprise SSO, but “dependable” is not the same as “best fit” for modern application estates. OIDC usually maps better to mobile clients, APIs, single-page apps, and cloud-native services because it uses JSON tokens, standard discovery, and simpler signing and validation workflows. That matters when identity controls must support fast deployment, frequent key rotation, and heterogeneous runtimes without dragging XML-heavy integration into every service.

The real decision is less about protocol preference and more about risk management across application types. If authentication is stretched across humans, service-to-service calls, and workloads that must prove identity at runtime, teams need a model that is easier to operationalise and monitor. NIST Cybersecurity Framework 2.0 emphasises governance, identity management, and continuous protection, which is why protocol choice should be aligned to the target environment rather than inherited from legacy SSO design. In practice, many security teams encounter protocol friction only after a mobile release, API integration, or key rollover failure has already caused an outage.

That said, SAML is still valid in environments where a browser-centric federation model already works and the operational cost of change outweighs the gain. The question is whether the application estate has moved beyond that model. The Hugging Face Spaces breach is a reminder that modern identity failures often emerge where automation, tokens, and access scope are not tightly controlled.

How It Works in Practice

Moving from SAML to OIDC is usually a phased engineering decision, not a flag day migration. The practical steps are to classify applications by interaction pattern, define which ones need browser federation versus token-based API access, and then move low-risk or high-friction integrations first. OIDC works well when the application can validate JWTs, consume OpenID discovery metadata, and enforce audience, issuer, and expiry checks consistently. Browser sessions still matter, but the identity layer becomes easier to automate and to rotate.

For teams modernising application authentication, the strongest pattern is to pair OIDC with tighter secrets discipline and explicit token handling. That means:

  • using short-lived tokens instead of long-lived static credentials where possible;
  • validating signature, issuer, audience, nonce, and expiry on every trust boundary;
  • treating refresh tokens, client secrets, and signing keys as protected secrets, not configuration values;
  • planning rollback so legacy SAML and OIDC can coexist during cutover.

In environments with APIs and cloud-native services, OIDC can also support workload identity patterns more naturally than SAML. When that is combined with least privilege and rotation discipline, the operational burden usually falls. The evidence base around identity risk supports this shift: NHI Mgmt Group reports that 80% of identity breaches involved compromised non-human identities such as service accounts and API keys in its Hugging Face Spaces breach analysis and related research. Security teams should read that alongside the NIST Cybersecurity Framework 2.0 and plan for token lifecycle controls, not just login flow changes.

These controls tend to break down when legacy middleware cannot validate modern tokens, because the application stack still expects browser-only assertions and central session state.

Common Variations and Edge Cases

Tighter authentication usually increases migration cost, so organisations have to balance stronger application fit against legacy compatibility and operational effort. There is no universal standard for this yet: some estates should keep SAML for a subset of browser apps, while others can move almost entirely to OIDC with no practical downside.

The biggest edge case is mixed estates. If a portal depends on legacy federation, but the same platform exposes APIs or supports mobile access, a split model is often the most realistic answer. Another common exception is a third-party product with hardcoded SAML support or a vendor-managed identity broker. In those cases, protocol choice may be constrained by procurement and integration reality rather than security preference.

For practitioners, the deeper issue is not the protocol itself but the identity control plane around it. The Hugging Face Spaces breach underscores how quickly token exposure and weak rotation can undermine otherwise sound architecture. Guidance from NIST Cybersecurity Framework 2.0 and current identity best practice both point to the same conclusion: migrate when OIDC improves control, visibility, and lifecycle management, not simply because it is newer. In some regulated or heavily federated environments, SAML remains the safer operational choice until dependent systems are rebuilt.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 PR.AC-1 Identity proofing and access control underpin the SAML to OIDC decision.
OWASP Non-Human Identity Top 10 NHI-03 Token and secret rotation are central when moving from SAML assertions to OIDC tokens.
NIST AI RMF GOVERN Governance is needed to decide which applications should adopt OIDC and how rollout is managed.

Assign ownership for protocol migration, define rollback criteria, and track authentication risk as a governed control.