By NHI Mgmt Group Editorial TeamBased on Stytch: “AI agent authentication methods” (November 10, 2025)

TL;DR: AI agents moving into production are converging on OAuth because static API keys, passwords, and session cookies do not provide the consent, scoping, revocation, and auditability required for delegated access, according to Stytch. The governance issue is less about choosing an auth protocol than about preserving accountability when machine identities act on behalf of users.


At a glance

What this is: This is a Stytch analysis arguing that OAuth has become the default authentication method for AI agents because it better supports delegated access, scoped permissions, and revocation than ad hoc alternatives.

Why it matters: IAM teams need to treat AI agents as delegated identities, because the governance problem is consent and accountability, not just token issuance.


Context

OAuth is increasingly being used as the practical access model for AI agents because these systems now need to reach real data and take actions on behalf of users or services. The key identity question is no longer whether an agent can authenticate, but whether its access can be scoped, revoked, and audited in a way that matches delegated authority.

The governance gap is that many older authentication patterns were built for browser sessions, simple service accounts, or static integrations. AI agents introduce a more dynamic access pattern, especially when they operate across SaaS apps, MCP-connected tools, and production workflows where accountability must follow the delegated identity, not the underlying automation layer.


Key questions

Q: How should security teams govern AI agents that browse and transact on behalf of users?

A: Security teams should govern AI agents as delegated actors with narrow, task-scoped permissions, not as enhanced browsers. The right model is to bind access to the specific action being performed, preserve auditability at the transaction layer, and separate machine identity from the human principal wherever possible.

Q: Why do static API keys create risk for AI agent access?

A: Static API keys create risk because they are long-lived, reusable, and difficult to tie to a specific action. In an agentic environment, that means the same secret can be replayed across tools, sessions, or workloads long after the original task is complete. Short-lived delegated credentials give teams a much better chance of limiting scope and preserving accountability.

Q: What are the signs that an AI agent has more access than it needs?

A: Common signs include access to systems outside the declared task, frequent permission exceptions, policies that are broader than the observed workflow, and usage logs showing actions the agent did not need to complete its job. Those are strong indicators that privilege has drifted beyond intent.

Q: When should organisations use OAuth instead of simpler authentication methods for agents?

A: Use OAuth whenever the agent touches production systems, third-party SaaS, multi-tenant workflows, or any user-specific data. Simpler methods may work for prototypes, but they do not preserve delegated authority, auditability, or revocation. If the access matters operationally, the authentication model has to be governable, not just convenient.


Technical breakdown

Why OAuth maps to delegated AI agent access

OAuth fits AI agent access because the protocol was designed around a client acting on behalf of a resource owner. In agentic use cases, the user grants consent, the agent receives scoped tokens, and the authorization server mediates that delegation. That matters because the control is not just authentication. It is the binding of authority to a specific user, purpose, and permission set, which is what makes the access auditable and revocable. This is why OAuth survives where raw API keys and passwords fail: it preserves delegation semantics instead of collapsing everything into shared secret use.

Practical implication: model AI agents as delegated clients, not as generic automation, and require consented token issuance rather than shared secrets.

Authorization Code flow, PKCE, and client credentials in agent design

Two OAuth patterns dominate agent access. Authorization Code with PKCE supports user-delegated access, where the agent acts on behalf of a person after consent. Client Credentials supports machine-to-machine service accounts, where the agent acts as itself and no user context exists. The distinction matters because the governance model changes with the identity subject: one requires user consent and user-scoped permissions, the other requires service identity control, token hygiene, and clear operational ownership. PKCE strengthens the delegated path by reducing interception risk, which is important when agents operate through browser-adjacent or app-mediated flows.

Practical implication: separate delegated agent flows from service-account flows in design, policy, and review.

Why API keys, passwords, and session cookies do not govern agent access well

API keys, passwords, and session cookies all fail in different ways when used for AI agents. API keys provide no user consent, no granular scope, and no meaningful revocation beyond deletion. Passwords expose human credentials to catastrophic reuse risk and break basic delegation assumptions. Session cookies are browser artifacts, not programmatic authorisation artefacts, so they lack the controls needed for machine use. These are not just weaker alternatives. They erase the accountability model that delegated access depends on. Once that model collapses, security teams lose the ability to tie actions back to a consenting principal and a bounded permission set.

Practical implication: remove human credentials and static secrets from agent workflows and replace them with protocol-native delegated access.


Threat narrative

Attacker objective: The attacker wants durable, hard-to-attribute access to user data or business actions through a compromised or over-broadened agent credential.

  1. Entry occurs when developers attach AI agents to live services using static secrets, ad hoc tokens, or weak browser-derived credentials instead of delegated access controls.
  2. Credential abuse follows when those credentials are reused across tools, notebooks, prompts, or integrations without user-bound scope or revocation semantics.
  3. Impact emerges when the agent can act with more authority than intended, leaving limited attribution and a wider blast radius if the token or credential is exposed.

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

OAuth has become the control plane for delegated agent authority, not just an authentication choice. The article shows that the real requirement is scoped, revocable delegation that preserves accountability when an agent acts for a user. That shifts the identity question from login mechanics to how authority is issued, bounded, and withdrawn across agent interactions.

Static secrets fail because they erase the governance context that delegated access needs. API keys, passwords, and session cookies all flatten identity into a reusable credential with weak attribution and weak revocation semantics. For practitioners, the lesson is that machine access only remains governable when the access token carries user, scope, and lifecycle meaning.

Delegated access and service-account access are different governance problems, even when both involve AI agents. User-facing agent flows need consent and scoped delegation, while service-account flows need machine identity controls and ownership clarity. Conflating those two patterns produces policy drift, overbroad access, and audit records that do not answer who authorised what.

Identity accountability now depends on the ability to reconstruct action lineage, not just authenticate an agent. OAuth’s value is that it preserves who consented, what scope was granted, and when access can be revoked. In identity governance terms, that makes delegated access observable enough to govern, which is the threshold most ad hoc methods fail to reach.

Agent access governance is converging on a distinct concept: delegated identity without credential inheritance. The central problem is no longer whether an agent can reach an API, but whether it can do so without borrowing human credentials or collapsing into shared-secret sprawl. Practitioners should treat that as a programme boundary, not a point solution choice.

From our research library:

What this signals

Delegated identity is becoming the baseline for AI agent governance: the practical shift is away from static credentials and toward access that can be scoped, consented to, and revoked in a way that survives audit. Organisations that keep treating agents as integrations instead of identities will struggle to explain why a given action was allowed at all.

Access reviews will not solve agent access if the underlying authority is inherited from passwords or copied tokens. The control has to move earlier in the lifecycle, at issuance and delegation time, because once an agent is acting with borrowed credentials, the attribution model is already compromised.


For practitioners

  • Separate delegated and machine-to-machine flows Define whether each AI agent acts on behalf of a user or as a service identity, then enforce distinct approval, scope, and revocation paths for each pattern.
  • Eliminate human credentials from agent workflows Block passwords, session cookies, and copied tokens from agent integrations, prompts, notebooks, and configuration because they destroy consent and attribution.
  • Bind agent permissions to least-necessary scopes Issue tokens that map to the smallest workable permission set and avoid broad access that cannot be justified by the specific task or delegated action.
  • Require revocation and audit visibility by design Make disconnection, token invalidation, and action logging non-optional so administrators can cut off access and reconstruct what the agent did on whose behalf.
  • Treat MCP-connected agents as governed integrations Where agents connect through MCP or similar frameworks, align the access pattern to the underlying delegated identity model instead of assuming tool connectivity is enough.

Key takeaways

  • OAuth matters here because it preserves delegated authority, consent, and revocation for AI agents, while static secrets do not.
  • The central governance issue is not authentication alone, but whether the agent’s access remains attributable to a user or service owner.
  • Practitioners should separate delegated agent access from service-account access and remove human credentials from both patterns.

Standards & Framework Alignment

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

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

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI03 — Identity & Privilege AbuseThe article centers on how agent authority is scoped, delegated, and abused through authentication choices.
Recommendation — Bind agent permissions to explicit delegated authority and prevent privilege inheritance from human credentials.
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe article compares OAuth with weaker authentication methods for non-human identities.
NHI-10 — Human Use of NHIThe article warns against using human passwords, cookies, and sessions for agent access.
Recommendation — Replace ad hoc agent authentication with protocol-native delegated access and revocation. Prohibit human credentials from agent workflows and issue machine-appropriate tokens instead.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementToken lifecycle, revocation, and secret handling are central to the article's governance model.
Recommendation — Enforce authenticator lifecycle controls so agent tokens can be revoked, rotated, and audited.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsScoped access and delegated permissions are the article's core governance concern.
Recommendation — Align agent entitlements to least-necessary permissions and review them through authorization governance.

Key terms

  • 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.
  • Authorization Code With PKCE: An OAuth flow that protects the authorization code with a code verifier and challenge pair. For CLIs, it usually relies on a loopback redirect to bind the sign-in result to the same machine that started the login, which reduces code interception risk.
  • Client Credentials Flow: An OAuth 2.0 grant type used for machine-to-machine authentication where an application authenticates directly using its own client ID and secret to obtain an access token. The standard pattern for service-to-service NHI authentication.
  • Delegated Consent: The authorisation a user or administrator gives to an application to act on their behalf. Once granted, that consent can outlive a password reset or even off-boarding unless it is explicitly reviewed and revoked, creating long-lived access that security teams must govern.

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 July 11, 2026.
Updated on October 11, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org