Security & governance

Agent identity and authorization for enterprise integration

Every agent call answers three questions: who is the user, which agent is acting, and what may this call do downstream. Most agent incidents start with one of those answers being wrong or missing.

Integration platforms have spent twenty years learning to carry identity across systems: principal propagation, SAML bearer assertions, OAuth client credentials, technical users with carefully trimmed roles. AI agents break some of those habits. An agent acts for a person, but it also chooses its own calls; it may delegate to another agent; and it may run for hours after the person has closed the browser. The shortcuts that were tolerable for fixed interfaces, such as one powerful technical user per system, become the root cause of agent incidents.

Three identities on every call

IdentityQuestion it answersHow to represent it
UserOn whose behalf is this happening?The subject of the access token, propagated or exchanged end to end
AgentWhich software is acting, and in which version?A registered OAuth client (or workload identity) per agent, not per platform
Downstream serviceWhat credential reaches the system of record?A narrowly scoped token minted for that API, never the user's original token

The rule that follows: an agent's effective permission is the intersection of what the user may do and what the agent is allowed to do, never the union. An HR copilot should not read a salary its user could not read, and a user with broad rights should not inherit them all just because they asked an agent a question.

Two modes: on behalf of a user, or as itself

Most incidents come from mixing the two: an autonomous job running under a user's long-lived refresh token, or an interactive agent quietly falling back to a technical user when token exchange fails. Make the mode explicit in the agent's registration.

What MCP specifies

For HTTP transports, MCP authorization is built on OAuth 2.1. The MCP server (or the gateway in front of it) is an OAuth resource server:

Client ID Metadata Documents are the quiet enterprise win here. Instead of letting any MCP client self-register against your authorization server, you approve known client metadata URLs, which turns "which agents can connect?" into a reviewable list.

The hard problem: multi-hop delegation

User → orchestrator agent → finance agent (over A2A) → MCP tool → API. By the fourth hop, who authorized what? OAuth handles one hop of delegation well. Chains across agents, organizations and asynchronous gaps are where current standards run thin, and both NIST and recent academic surveys call this out as the main open gap.

Until standards settle, pragmatic patterns work:

  1. Exchange at every hop. Each agent exchanges the incoming token for one scoped to its next call, preserving the original subject and appending itself as actor.
  2. Narrow with each hop. Scopes only shrink along the chain. A sub-agent never gets more than its caller had.
  3. Bound the lifetime. Tokens issued for long-running tasks expire with the task; resumption after a pause (A2A AUTH_REQUIRED, MCP input_required) triggers re-authorization.
  4. Carry a correlation ID through every hop, so the audit trail can be stitched even when token chains cannot.

Workload identity for agents

Static API keys and long-lived client secrets are the most common agent credential in 2026, and the most common finding in reviews. SPIFFE/SPIRE workload identity is becoming the default alternative: each agent instance gets a short-lived, automatically rotated, cryptographically verifiable identity that can be exchanged for OAuth tokens. Cloud platforms offer equivalents (managed identities, workload identity federation). The direction is the same everywhere: no secrets in agent configuration, and identities that disappear when the agent does.

Where the standards are

BodyWorkStatus (Oct 2026)
NIST CAISIAI Agent Standards Initiative: interoperability, security, identityLaunched 17 Feb 2026; treats MCP and A2A as interoperability baselines
NIST NCCoEConcept paper on software and AI agent identity and authorization (OAuth 2.0/2.1, OIDC, SPIFFE/SPIRE, SCIM, NGAC, SP 800-207)Comments closed 2 Apr 2026; practice guide to follow
IETFDrafts extending OAuth delegation and WIMSE workload identity to agents; discovery work on named agentsIndividual drafts and early chartering; not yet standards-track RFCs
MCPOAuth 2.1 resource server model, resource indicators, Client ID Metadata DocumentsIn the 2026-07-28 specification
A2ASecurity schemes declared on Agent Cards: OAuth 2.0 with PKCE, OIDC, device code, API keys, mTLS; signed cardsIn the v1.0 specification

The consistent message from NIST is adapt, don't reinvent: existing OAuth, OIDC and workload identity standards can cover most agent needs today if applied rigorously. Waiting for a dedicated "agent identity standard" is not a reason to keep shared technical users.

In SAP landscapes

SAP integration architects already know principal propagation from the Cloud Connector and the OAuth 2.0 SAML bearer flow. SAP is rolling out principal propagation and SAML bearer token exchange for the MCP Gateway from its September 2026 update, carrying end-to-end user identity from the calling agent to the backend. Where it is not yet enabled on your tenant, enforce user scoping in the API artifact's policies from the authenticated identity, and avoid tools that accept a user or employee ID as a free argument.

Checklist

Frequently asked questions

Should an AI agent use the user's token to call backend APIs?

No. The gateway or MCP server should exchange the user's token for a narrowly scoped downstream token (OAuth Token Exchange), keeping the user as subject and recording the agent as actor. Passing the original token through is discouraged by the MCP specification.

What is a Client ID Metadata Document?

It is a document at a URL that describes an OAuth client; the URL itself is the client ID. MCP 2026-07-28 recommends it over Dynamic Client Registration, which lets enterprises allow-list known agent clients instead of accepting self-registration.

Is there a standard for AI agent identity yet?

Not a single dedicated one. NIST's 2026 work recommends adapting OAuth, OpenID Connect, SPIFFE and related standards, and the IETF has early drafts. MCP and A2A already specify how to use OAuth-based schemes.

Sources and further reading

Related guides

Rameshkumar Varanganti

Enterprise Integration Lead and Architect with 20+ years in SAP integration (BTP Integration Suite, CPI, PI/PO, API Management, Event Mesh). Writes about agentic integration, MCP, A2A and AI governance.

← Back to knowledge library