Independent analysis by NHI Mgmt GroupSource article: C1.ai, “SAML vs OAuth: Key Differences and When to Use Each” (August 18, 2026)

TL;DR: C1.ai explains that SAML and OAuth solve different problems: SAML proves user identity for federated login, OAuth grants scoped delegated access, and OIDC adds authentication to OAuth for modern sign-in. The protocol choice is less about security rankings than about matching the protocol to the actor and reviewing the access it creates.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on C1.ai's blog post: SAML, OAuth, and OIDC are separated into their proper jobs, and protocol choice should follow the access model, not habit.

Why it matters: IAM teams need to match protocol to use case because choosing the wrong one creates brittle integrations, weak auditability, and access that outlives the session that created it.

👉 Read C1.ai's guide to choosing between SAML, OAuth, and OIDC


Context

SAML vs OAuth is not a competition between equivalent tools. SAML answers who a user is in a federated login flow, while OAuth answers what an application is allowed to do on someone else's behalf.

The governance gap appears when teams treat login, delegated API access, and machine-to-machine access as the same problem. In practice, SSO design, API authorisation, and agent access need different protocol choices and different review controls.

For identity programmes, the issue is not protocol preference but access model fit. Once the wrong protocol becomes part of the architecture, the resulting workaround often becomes the control failure.


Key questions

Q: Should organisations use SAML and OAuth together?

A: Yes, when they need enterprise login through SAML and resource-level delegation through OAuth. The key is to separate the policy decisions. SAML should control who authenticated, while OAuth should control what access was delegated, for how long, and under what scope.

Q: Why does bare OAuth create governance risk in access design?

A: Bare OAuth creates risk because it authorises an application without proving a user is present. That can leave teams with tokens that outlive the original interaction, scopes that are broader than intended, and audit evidence that does not clearly separate authentication from delegation. The result is often a control model that looks valid on paper but is hard to govern in practice.

Q: How do security teams know whether OIDC is the right login option?

A: OIDC is the right login option when the application needs modern authentication for web or mobile users and you want identity claims delivered through OAuth-based flows. It is usually the cleaner choice than SAML for new applications, while SAML still fits many enterprise SSO environments. The decision should follow the application pattern, not a preference for newer technology.

Q: How should teams handle agents that use OAuth, API keys, and managed identities together?

A: They should treat the workflow as a cross-layer identity problem, not a single-protocol problem. Each credential type may be valid on its own while the combined sequence of actions becomes risky, so teams need a control view that spans the full execution path.


Technical breakdown

How SAML authentication works in federated login

SAML 2.0 is an XML-based federation standard that lets an identity provider assert that a user has authenticated. The browser mediates the exchange, and the service provider validates a signed assertion before creating a session. That makes SAML well suited to enterprise SSO, where the primary need is to trust a federated identity statement across domain boundaries. The protocol was designed around browser-based user login, not API delegation or machine access. Its security depends heavily on signature validation, assertion handling, and correct session establishment.

Practical implication: Use SAML where the control objective is federated user login and validate assertions rigorously before trusting the session.

How OAuth delegated access works for apps and APIs

OAuth 2.0 is an authorisation framework, not an identity protocol. It issues access tokens that let an application call APIs with bounded scope, often long after the original browser interaction has ended. That is why OAuth fits APIs, backend services, and AI agent tool access. The practical risk is that the token becomes standing permission unless scope, expiry, and revocation are tightly governed. OAuth is therefore about delegated authority, not proving a person is present. Using it as a login mechanism confuses permission with authentication and breaks the security model.

Practical implication: Use OAuth for delegated API access and control token scope, lifetime, and revocation as part of governance.

Why OIDC is the real login comparison to SAML

OpenID Connect adds an identity layer to OAuth by issuing an ID token alongside the access token. That makes OIDC the modern alternative to SAML for authentication, especially in web and mobile applications. In a mature architecture, SAML and OIDC are often both present, with SAML serving legacy enterprise SSO and OIDC handling newer login flows. The key design point is that OIDC authenticates the user while OAuth authorises the application. Treating bare OAuth as a login protocol is the mistake the article warns against.

Practical implication: Use OIDC when you need modern authentication and reserve bare OAuth for delegated access only.


Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Protocol selection is an identity governance decision, not a technical preference: The article is right to frame SAML, OAuth, and OIDC as different answers to different access problems. In identity programmes, protocol choice determines what is being asserted, what is being delegated, and what can later be reviewed. The practitioner conclusion is simple: align the protocol to the actor type and the control objective before integration decisions harden.

Authentication and authorisation are not interchangeable control layers: SAML establishes who a user is, OAuth grants what an application may do, and OIDC bridges the two for modern login. Confusing these layers produces architectures that look federated but actually leak authority into places that were never meant to hold it. The practitioner conclusion is to keep the authentication boundary separate from delegated access governance.

Delegated access creates governance debt when tokens outlive the interaction that created them: OAuth access tokens are useful precisely because they continue working after the browser closes. That persistence is also why review, revocation, and scope discipline matter more than protocol branding. The practitioner conclusion is to treat token lifetime and revocation as first-class governance controls.

One early protocol decision can become years of control friction: The article correctly notes that wrong protocol choices lead to brittle integrations, workarounds, and audit findings. Once SAML, OIDC, and OAuth are mixed without a clear model, teams inherit compensating controls instead of clean governance. The practitioner conclusion is to standardise protocol use by access model, then enforce it across SSO, APIs, and agents.

From our research library:

What this signals

The practical lesson for identity programmes is that protocol choice must be governed at architecture time, not left to individual teams to improvise. When SAML, OIDC, and OAuth are mixed without a policy, organisations accumulate brittle integrations and access paths that are hard to audit or revoke.

Access governance has to follow the actor type. Human SSO, application delegation, service-to-service access, and AI agent access do not belong in the same protocol pattern, even if they share the same identity provider.

Protocol fit debt: The longer an organisation allows the wrong protocol to stand in for the right one, the more compensating controls it needs later. The cleaner path is to standardise on the protocol that matches the access model and enforce review at the point of issuance.


For practitioners

  • Map each use case to the correct protocol layer Use SAML for federated browser login, OIDC for modern authentication, and OAuth for delegated API access. Document the actor type, the session boundary, and the permission boundary before approving integration work.
  • Ban bare OAuth from login flows Require an identity layer such as OIDC when an application needs authentication. Access tokens prove delegated permission, not that a specific user is present.
  • Review token scope and lifetime as governance controls Track which APIs, workloads, and agents can retain OAuth tokens beyond the initiating session. Short scopes and explicit revocation reduce the blast radius of delegated access.
  • Reassess agent and service access patterns separately from human SSO Do not reuse workforce SSO assumptions for machine-to-machine or AI agent access. These actors need delegated permissions, tighter inventory, and different review cadences.

Key takeaways

  • SAML, OAuth, and OIDC are different layers of identity control, not interchangeable login options.
  • The main operational risk is not the protocol itself but using the wrong one for the actor and access model.
  • Good governance means separating authentication from delegated authorisation and reviewing the access tokens that remain after the session ends.

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 addresses the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST SP 800-63 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe article distinguishes authentication from delegated access and warns against using OAuth as login.
NHI-05 — Overprivileged NHIOAuth scope and token lifetime determine whether non-human access becomes broader than intended.
Recommendation — Use the right authentication layer for each actor and avoid treating delegated tokens as proof of identity. Limit token scope and duration so non-human access stays tied to the minimum required permission.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article centres on matching entitlements and authorisations to the correct protocol and actor type.
Recommendation — Align protocol choice with authorisation boundaries and review granted access continuously.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementOAuth token lifetime, issuance, and revocation are core authenticator governance issues.
Recommendation — Manage token issuance, expiry, and revocation under IA-5 to reduce standing access risk.
NIST SP 800-63SP 800-63C — FederationThe article directly compares federated login patterns and when SAML or OIDC should anchor them.
Recommendation — Apply federation guidance to separate user authentication from delegated application access.

Key terms

  • SAML: Security Assertion Markup Language is an XML-based federation protocol used to pass signed identity assertions between an identity provider and a relying party. It remains common in enterprise SSO, but its certificate-driven trust model can make configuration and rotation more operationally demanding.
  • OAuth: OAuth is a delegated authorisation protocol that lets one application grant another limited access without sharing the owner’s primary credentials. In practice, its security depends on how tightly scopes are defined and whether the resulting tokens are monitored and revoked when access changes.
  • OpenID Connect: OpenID Connect is an identity layer built on OAuth 2.0 that lets applications authenticate users with compact tokens and standardised key discovery. It is widely used for modern web, mobile, and API-driven systems because it reduces integration overhead compared with older federation patterns.
  • Federated Identity: Federated identity lets one organisation trust an external identity provider so a user can access another service without creating a separate account. It simplifies access, but it also expands the trust relationship that must be monitored. Weak federation settings can turn a single compromise into cross-domain access.

What's in the full article

C1.ai's full blog post covers the protocol-by-protocol implementation detail this post intentionally leaves for the source:

  • Wire-level explanation of SAML assertion handling and browser redirection flows
  • Practical examples of when OIDC is a better login choice than SAML in modern apps
  • The article's own decision criteria for choosing OAuth for APIs, machine-to-machine access, and AI agents
  • The specific implementation pitfalls behind token leakage, broad scopes, and login anti-patterns

👉 C1.ai's full blog post expands on login, delegated access, and the governance trade-offs between the protocols.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 19, 2026.
Updated on November 14, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org