By NHI Mgmt Group Editorial TeamDomain: Workload IdentitySource: C1.aiPublished August 18, 2026

TL;DR: SAML handles federated user authentication while OAuth governs delegated app access, and the article shows why the real decision is usually SAML vs OIDC for login and OAuth for APIs, machine-to-machine access, and AI agents, according to C1.ai. The governance issue is not protocol superiority but matching the protocol to the actor type and continuously reviewing the access it creates.


At a glance

What this is: This guide separates SAML, OAuth, and OIDC into their proper jobs and argues that protocol choice should follow the access model, not habit.

Why it matters: IAM teams need this distinction because choosing the wrong protocol creates brittle integrations, weak governance, and access that is hard to review across human, NHI, and agentic workflows.

By the numbers:

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


Context

SAML and OAuth solve different identity problems. SAML is built to authenticate a user across trust boundaries, while OAuth is built to grant scoped access to an application without handing over credentials, which is why confusing them leads to weak access design from the start. For identity programmes, the question is less about protocol preference and more about whether the actor is a human, an NHI, or an application acting on behalf of a user.

That distinction matters because modern access flows are not cleanly separated in practice. Enterprises often pair SAML with OIDC for login, then use OAuth tokens for API calls, backend services, and AI-connected tools, so governance has to follow the grant lifecycle rather than the login moment. This is the same kind of lifecycle problem that the Ultimate Guide to NHIs addresses across machine and workload identities.


Key questions

Q: How should security teams decide between SAML and OAuth?

A: Choose SAML when the main requirement is federated authentication and enterprise SSO across trusted systems. Choose OAuth when the need is delegated access to specific resources without sharing credentials. In many environments, both are needed. The right answer depends on whether the control problem is proving identity or limiting resource access.

Q: Why do OAuth consent grants create governance risk for IAM teams?

A: Consent grants turn a user or administrator decision into durable application access that can persist across sessions and, in some cases, across tenants. IAM teams need to review who granted what, whether the scope still matches the business purpose, and whether the app has become an unnecessary trusted path into enterprise data.

Q: What breaks when organisations use OAuth for login instead of OIDC or SAML?

A: Using bare OAuth for login breaks the assurance model because an access token proves authorisation, not that a specific user has authenticated. That leads to fragile sign-in flows, weak auditability, and confusion between identity proof and permission. The practical fix is to use OIDC for modern login or SAML for enterprise federation.

Q: Who is accountable for OAuth token governance in a modern identity programme?

A: Accountability should sit with the identity or platform team that owns the integration, not with end users who never see the token lifecycle. Where OAuth is used for service accounts, workflows, or AI-connected tools, the owner must be able to answer who can issue the token, who can revoke it, and how often the grant is reviewed.


Technical breakdown

SAML authentication versus OAuth delegated authorization

SAML 2.0 is an XML-based federation standard that lets an identity provider assert to a service provider that a user authenticated and is entitled to a session. OAuth 2.0 is an authorization framework that issues scoped tokens so an application can act on behalf of a user or service without sharing the underlying credential. The protocols are not interchangeable because one produces an identity assertion and the other produces permission artefacts. That difference shows up in how the session is created, how long the token remains useful, and who can exercise the resulting access.

Practical implication: map each integration to the identity event it actually needs, then govern the resulting assertion or token separately.

Where OpenID Connect fits in login architecture

OpenID Connect adds authentication on top of OAuth 2.0 by issuing an ID token with verified claims about the user. That makes OIDC the modern login layer for many web and mobile applications, while OAuth remains the delegated access layer behind the scenes. In practice, this is why SAML versus OIDC is the more accurate enterprise SSO comparison. Bare OAuth should not be used for login because an access token proves authorisation, not user presence or identity.

Practical implication: reserve OAuth for delegation and use OIDC or SAML when the control objective is authenticated user sign-in.

Why OAuth creates an NHI governance problem

OAuth tokens often outlive the interaction that created them, which makes them closer to standing access than to a one-time authentication event. That is why OAuth is so common for APIs, service-to-service access, and AI-connected tools, but also why revocation, scope review, and grant inventory become essential. In NHI terms, the real risk is not OAuth itself, but the persistence of tokens, refresh tokens, and grants that are no longer aligned to current need. Once an application or agent holds that access, the control surface shifts from login to lifecycle governance.

Practical implication: treat OAuth grants as governed non-human access and review them on the same cadence as other NHI credentials.


NHI Mgmt Group analysis

Protocol choice is a governance decision, not a technology preference. The article correctly distinguishes authentication from authorisation, but the deeper lesson is that identity architecture breaks when teams choose a protocol before they define the actor and the access model. SAML and OAuth are both valid, yet they solve different governance problems, and mixing them up creates brittle controls that are hard to audit later. The practitioner conclusion is simple: choose by identity behaviour, then govern the grant lifecycle.

OAuth is an NHI control surface whenever the access is machine-exercised. When a backend service, workload, or AI-connected tool uses OAuth, the resulting token becomes a non-human identity artefact even if a human initiated the flow. That means the security conversation shifts from login assurance to scope, revocation, inventory, and residual privilege. The practitioner conclusion is that every OAuth grant must be visible as an NHI entitlement, not hidden inside an application integration.

SAML vs OIDC is the real enterprise SSO comparison, not SAML vs OAuth. SAML remains useful where enterprise federation and legacy SaaS ecosystems dominate, while OIDC fits modern application patterns better because it is lighter-weight and built on OAuth. The governance mistake is to treat login and delegation as one problem, which causes teams to accept access artefacts they never intended to manage. The practitioner conclusion is to separate browser sign-in from downstream API authorisation in policy and in review.

Standing access is the common failure mode across federated identity and delegated tokens. Whether the access begins as a SAML assertion or an OAuth token, the security debt appears when the grant remains active after the business need has changed. That is especially relevant in environments where service accounts, workloads, and AI-connected tools compound the number of grants. The practitioner conclusion is that protocol decisions must be paired with lifecycle controls, or the architecture will accumulate invisible privilege.

From our research:

  • Only 5.7% of organisations have full visibility into their service accounts, according to Ultimate Guide to NHIs.
  • 80% of identity breaches involved compromised non-human identities such as service accounts and API keys.
  • Treat OAuth grants as governed non-human access and use 52 NHI Breaches Analysis to review how hidden token exposure turns into incident patterns.

What this signals

OAuth-heavy environments should be treated as NHI growth zones, not just application integration layers. Once tokens are used by service accounts, automations, or AI-connected tools, the control problem becomes lifecycle governance, consent visibility, and revocation discipline. The operating model needs to assume that delegated access will proliferate faster than manual reviews can track it.

The practical signal for IAM leaders is that protocol mapping must now sit alongside identity inventory. If teams cannot trace who owns a token, what it can do, and when it should disappear, then the architecture has already drifted past traditional access review cadences. That is where NHI governance becomes a prerequisite, not a specialist add-on.


For practitioners

  • Separate login from delegation in architecture reviews Document which use cases need authenticated sign-in, which need delegated API access, and which need both. Route browser SSO requirements to SAML or OIDC, and reserve OAuth for scoped access that can be inventoried and revoked.
  • Inventory OAuth grants as NHI entitlements Record each token, refresh token, and consented scope as a non-human access grant with an owner, purpose, and expiry path. Include service accounts and AI-connected tools in the same review queue so hidden access does not escape governance.
  • Review SSO choices against lifecycle controls Check whether the identity platform can actually revoke sessions, rotate secrets, and certify access after the grant is issued. If the protocol choice creates a lifecycle blind spot, redesign the integration before it becomes permanent.
  • Use OIDC for modern login and SAML where federation is required Keep the control objective explicit: OIDC for user authentication in web and mobile apps, SAML where enterprise federation requirements or legacy SaaS dependencies justify it. Avoid using bare OAuth as a login mechanism.

Key takeaways

  • SAML and OAuth are not competing authentication options, because they solve different identity problems and should be selected accordingly.
  • OAuth grants become NHI governance objects the moment they are used by services, workloads, or AI-connected tools, which means inventory and revocation matter.
  • The most reliable architecture separates login, delegation, and lifecycle review instead of collapsing them into one protocol decision.

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, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-07OAuth grants for services and agents function as governed non-human access.
NIST CSF 2.0PR.AC-4The article centres on choosing and controlling access according to function and trust need.
NIST SP 800-53 Rev 5IA-5Token and assertion lifecycle control depends on authenticator and token management.
NIST Zero Trust (SP 800-207)The post aligns with zero-trust principles for continuous verification across access paths.

Inventory OAuth grants and refresh tokens as NHI entitlements and set explicit revocation and review points.


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.
  • Delegated Access: Delegated access is permission granted to one identity to act on behalf of another user, service, or system. In NHI environments, this usually appears in OAuth-connected apps and automation tooling. It is powerful, but it must be tightly scoped and reviewed because it can persist long after the original business need ends.

What's in the full article

C1.ai's full blog post covers the operational detail this post intentionally leaves for the source:

  • Protocol-by-protocol implementation guidance for SAML, OAuth, and OIDC in enterprise environments
  • Use case mapping for browser SSO, API access, mobile applications, and AI agent integrations
  • Discussion of when bare OAuth creates login risk and why OIDC is the practical alternative
  • Architecture considerations for mixed estates that support both legacy federation and modern delegated access

👉 The full C1.ai post explains the login and delegation patterns behind each protocol choice.

Deepen your knowledge

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