# How should an AI agent authenticate and act on a user's behalf?
<!--
ref: @knowledge/syntheses/agent-identity-auth-and-delegation-2026
type: framework
tags: [agent identity, OAuth, MCP authorization, delegation, scoped tokens]
version: 1
updated_at: 2026-11-16T05:06:48.545Z
-->

As of the latest episode here (2026-08-28), the corpus supports one concrete pattern, mostly from one vendor talk. Model the agent as its own OAuth client, separate from the user. Keep upstream API tokens in a vault so the agent never holds or forwards the user's token. Do authorization in ordinary code before a tool runs, not in the prompt. For risky actions, ask the user for out-of-band approval, with the approved details bound into the token. Other sources (Stripe, LangChain, DoorDash, Every) add the same direction at other layers: delegated payment credentials with guardrails, and a central gateway for agent identity, tool access and audit. The corpus is thin on the current MCP authorization spec and on how any of this works in practice.

## What the evidence says
- **Four requirements define agent identity.** The agent must know who the user is, call APIs on the user's behalf, request confirmation for risky actions, and have fine-grained access. Patrick Riley and Carlos Galan, Auth0, 2026-01-14 (`@content/youtube/aie/2026-01-14-identity-for-ai-agents-patrick-riley-carlos-galan`). Galan: "If the agent doesn't know who I am, it can never apply any security or any restriction or any authorization."
- **The agent is modeled as an OAuth client and APIs as resource servers.** Riley, Auth0, 2026-01-14 (same ref). MCP servers are also OAuth clients; the chain is agent client, MCP server, upstream API. The MCP server publishes a `/.well-known/oauth-protected-resource` metadata endpoint listing supported scopes.
- **Upstream tokens live in a vault, not in the agent.** Auth0's Token Vault stores upstream refresh tokens, and the agent calls one SDK method with a connection name to get a fresh access token (Riley and Galan, 2026-01-14, same ref). Their guidance is never to forward the user's access token to the agent, because tokens expire and the agent would need repeated re-login.
- **Scopes are enforced outside the model.** Galan, 2026-01-14 (same ref): "Scopes that are not part of the connection can never end up in the access token," and "The authorization happened before the tool execution. It's not LLM code — it's old-fashioned code." This is the defense against prompt injection widening permissions.
- **The token separates agent from user.** The access token's authorized-party (`azp`) claim names the agent client and the subject names the delegating user, so policy can treat agent-initiated requests differently from direct ones. Riley and Galan, 2026-01-14 (same ref).
- **Risky actions use out-of-band approval.** The Auth0 demo uses CIBA (an OIDC back-channel flow) with Rich Authorization Requests. The agent sends the trade details (symbol, quantity, price), the user approves via push notification, and the issued token carries exactly the approved details. Riley and Galan, 2026-01-14 (same ref). Galan: "We don't want an hallucinating agent buying a stock in the middle of the night without my permission."
- **Dynamic Client Registration was brand new.** DCR for MCP servers reached early access the week of the talk. The speakers say open DCR has scaling concerns and that client ID metadata is the next spec they expect to implement for registering agents. They also say Claude supported MCP auth but had an open issue on specifying scopes. Riley and Galan, 2026-01-14 (same ref).
- **Delegated payment authority is built from a token plus consumer-set limits.** Emily, Stripe head of data and AI, 2026-04-29 (`@content/youtube/every-inc/2026-04-29-getting-agent-ready-with-stripes-head-of-data-and-ai`). The shared payment token passes buyer credentials from agent to merchant without exposing real payment credentials to the agent, and carries Radar fraud scores. Link is "evolving toward delegated authority with guardrails": the consumer sets which agents may request credentials, under what conditions, with what limits, and whether purchases need approval first. Link has "roughly a quarter of a billion consumers."
- **Agent-to-agent calls raise an unresolved identity question.** The LangChain product manager for governance and the LLM Gateway, 2026-08-12 (`@content/youtube/langchain/2026-08-12-building-governed-agents-a-framework-for-cost-control-and-co`), asks whether a sub-agent inherits the caller's identity or has its own permissions. Errors and unauthorized access "can compound" down long chains. The controls named are tracing, policy enforcement and agent identity.
- **MCP and tool calls are governed at a gateway.** Same LangChain talk (2026-08-12): tool calls need permissioning plus an audit trail of which tools were available and who used them; MCP calls need access control over who can reach which servers, and logging. Simple permissions work at around 3 people; it gets hard at about 100-200 people.
- **DoorDash centralizes agent identity in a gateway.** Nachiket Paranjape and Swaroop Chitlur Haridas, DoorDash, 2026-08-28 (`@content/youtube/aie/2026-08-28-ai-evals-for-cross-functional-teams-nachiket-paranjape-swaro`). The platform has an agent gateway that centralizes tool and agent connections plus authentication and agent identity, "so the security team can bless it in one place." This is a one-line mention in an evals talk.
- **Managed agents carry credentials, and human-in-the-loop implies authentication.** The Claude platform team, in an Every Inc interview, 2026-05-08 (`@content/youtube/every-inc/2026-05-08-secrets-of-claudes-agent-platform-from-the-team`), describes managed agents as a Claude on a computer "with memory, a sandbox, and credentials." They say a plain skill cannot give you a human in the loop "with the authentication that implies." The summary does not say how credentials are scoped.

## Where sources disagree
No disagreement found in these sources. They cover different layers (OAuth flows, payments, enterprise gateways) and do not address each other. The one near-conflict is that Auth0 puts authorization in the SDK wrapper next to the agent, while LangChain and DoorDash place it in a central gateway. The sources do not present these as alternatives.

## Gaps
- **Current MCP authorization is not covered.** Only the Auth0 talk (2026-01-14) discusses it, and only at the level of protected resource metadata, DCR and PKCE. The corpus has nothing on later spec revisions, on client ID metadata documents once implemented, or on how Claude or other clients handle MCP auth after January 2026. Treat the Auth0 description as a dated snapshot.
- No independent view on Auth0's pattern: the main source is a vendor workshop, with no criticism, benchmarks or failure data.
- No numbers on incidents, token-theft or injection rates, or the cost of approval prompts.
- Nothing on agent-to-agent delegation mechanics (token exchange, chained scopes), or on standards bodies' work beyond a mention of the OWASP LLM Top 10.
- The Every (2026-05-08) and DoorDash (2026-08-28) references are brief and give no implementation detail. The LangChain presenter is unnamed in the source.
- Enterprise employee-to-agent policy (the planned Okta bridge) is mentioned once and not elaborated.

## Sources
- `@content/youtube/aie/2026-01-14-identity-for-ai-agents-patrick-riley-carlos-galan` — Patrick Riley and Carlos Galan (Auth0), "Identity for AI Agents", 2026-01-14
- `@content/youtube/every-inc/2026-04-29-getting-agent-ready-with-stripes-head-of-data-and-ai` — Emily (Stripe), "Getting Agent Ready With Stripe's Head of Data and AI", 2026-04-29
- `@content/youtube/every-inc/2026-05-08-secrets-of-claudes-agent-platform-from-the-team` — Every Inc interview with the Claude platform team, "The Secrets of Claude's Agent Platform From the Team Who Built It", 2026-05-08
- `@content/youtube/langchain/2026-08-12-building-governed-agents-a-framework-for-cost-control-and-co` — LangChain governance PM (unnamed), "Building Governed Agents: A Framework for Cost, Control and Compliance", 2026-08-12
- `@content/youtube/aie/2026-08-28-ai-evals-for-cross-functional-teams-nachiket-paranjape-swaro` — Nachiket Paranjape and Swaroop Chitlur Haridas (DoorDash), "AI Evals for Cross-Functional Teams", 2026-08-28

---

*Related: `@content/youtube/caleb-ralston/why-can-t-entrepreneurs-build-a-personal-brand` · `@content/youtube/every-inc/i-vibecoded-this-feature-using-codex` · `@content/youtube/dan-martell/100m-investor-explains-how-to-invest-in-2026` · `@content/youtube/aie/it-admin-for-the-ai-workforce-sarthak-aggarwal-decawork` · `@content/youtube/dan-martell/how-to-build-a-10m-business-with-ai-zero-employees`*

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*