OAuth 2.1 Token Binding and Tool-Scoped Authorization for Enterprise Agent Platforms
Token binding and narrow tool scopes keep a stolen agent credential from doing damage.

Enterprise agent platforms need an MCP gateway that combines OAuth 2.1 authorization, DPoP or mTLS token binding, and tool-level permissions limited to the task. Binding prevents a stolen token from being enough to make a call, while narrow grants limit what an authorized agent can do. A distinct agent identity and a recorded user-delegation context make those calls attributable.
Why bearer tokens are the wrong default for agent authorization
A bearer token authorizes whoever possesses it. There is no binding between the credential and the client that received it, so a copied token grants the same access as the original. Long-lived API keys and static bearer tokens remain the dominant credential pattern in production agent deployments. That makes possession the effective access policy. A credential leak exposes everything within the token’s scope.
Agents widen this gap because they process untrusted tool output, RAG chunks, and external instructions. Prompt injection can coerce an agent into exposing credentials or using its legitimate permissions maliciously. Meanwhile, an agent may continue working after the initiating user’s session ends, separating the original authorization event from the current execution context. The session ends. The authority may not.
Scope collapse compounds the problem. When an integration needs one operation, the convenient credential often grants access to the whole service. A prompt-injected agent therefore has room to turn a narrow request into a much broader action.
What OAuth 2.1 actually changed and why the changes matter for agents
OAuth 2.1 removes the implicit grant and password grant, and forbids bearer tokens in URL query strings. These are substantive restrictions on how credentials enter and move through a system. It also requires PKCE for all authorization code clients, binding an authorization code to a verifier the original client must produce. Public clients’ refresh tokens must be sender-constrained or rotated. These requirements reduce opportunities for intercepted credentials to become reusable access.
Authorization Code + PKCE is the recommended flow when a user is present and authorizes access to their data, with Device Authorization Grant an alternative for browser-constrained devices. Client Credentials is for autonomous agent-to-server calls, in which the agent uses its own registered credentials to authenticate. No user delegation is implied by that flow. It has no standard refresh token, so the agent re-authenticates.
The IETF OAuth Working Group lists OAuth 2.1 as an Internet-Draft, version 17 as of October 2026. Multi-hop agent delegation also remains incompletely addressed by current standards. Enterprises therefore have both a stronger baseline and unresolved integration work. That baseline alone does not make a stolen bearer access token unusable.
How DPoP binds a token to the client that holds it
Demonstrating Proof of Possession, or DPoP, binds an access token to a client key pair. RFC 9449 defines this OAuth-native mechanism. The client generates an asymmetric key pair and makes the public key available to the authorization server, which issues a token bound to that key. Using the credential now requires proof of the corresponding private key.
For each request, the client attaches a signed JWT called a DPoP proof. Its htm and htu claims identify the HTTP method and request URI. A nonce claim is required when the authorization server or resource server supplies a DPoP nonce. An attacker who intercepts the token cannot generate that signature without the private key. The token string is no longer the whole credential.
DPoP fits dynamic agents because it operates at the application layer, without requiring changes to TLS configuration or certificate infrastructure. Keys can be generated per instance or task. But both the authorization server and resource server must support it, and agent runtimes must have nonce handling built in to make tool calls in quick succession. Server-issued nonces stop captured-proof replay while the proof is still valid, which is a separate risk from theft of the token alone.
Where mTLS fits and when it is the stronger binding choice
Mutual TLS binds a token to a client certificate verified at the transport layer. The client presents its certificate during the TLS handshake, and the authorization server binds the token to that certificate’s thumbprint. The resource server then compares the token’s thumbprint with the certificate presented on the current connection. The connection supplies the proof of possession.
This is the stronger fit when agents already operate as attested workloads using SPIFFE SVIDs or platform-managed certificates. The certificates already in use supply workload identity without adding a second set of keys to manage. With an enterprise PKI, mTLS can likewise build on the service-to-service controls already in place. Without that infrastructure, certificate issuance, rotation, and verification impose costs that DPoP avoids.
Some deployments use mTLS for workload-level binding and DPoP for application-layer request proofs. Binding answers who can use the token. Scope determines what they can do with it.
Why broad service scopes are the wrong unit of authorization for tool calls
A correctly bound, short-lived token can still authorize far too much. If an agent holds access to an entire data service, injected instructions can redirect it toward any operation that access permits. Binding cannot stop the legitimate key holder from making an over-authorized call. The agent’s intent is not an enforcement boundary.
The right unit is the tool operation. A grant for calendar:event:create, limited to a calendar ID, time window, and task ID, expresses the work being authorized. A grant for calendar.readwrite lets the agent do much more. Broad grants leave unrelated operations available when the agent is misdirected.
Per-invocation grants require scope registries, dynamic token issuance, and authorization evaluation for each call. Build those capabilities once in the gateway layer rather than ask every integration developer to recreate them. Once permission is decomposed this way, the next question becomes concrete. What must the delegation token contain, and how can issuance and validation preserve those limits?
The anatomy of a correctly scoped delegation token
The sub claim identifies the human on whose behalf the action occurs, while act identifies the agent making the call. The aud claim names the intended resource server, and scope names the permitted operation. Expiry is expressed through exp.
Audience restriction prevents a token intended for one MCP server from being accepted at another. RFC 8707 defines Resource Indicators, but OAuth 2.1 leaves them as an optional extension that clients can choose to use. The MCP authorization specification requires the client to send the resource indicator. That distinction is important when evaluating an implementation advertised simply as OAuth 2.1-compatible.
Effective authority must be the intersection of the agent’s baseline permissions and the requesting user’s permissions. It must never be their union. A user who cannot delete a database record cannot get that permission by asking a more powerful agent.
RFC 8693 Token Exchange supplies the scope-reduction primitive. An agent exchanges its starting token for a tool-specific token, with the act hierarchy recording delegation steps. Issuance must also bind subject and actor tokens to the same authorization request. Without that binding, a compromised intermediary can splice valid tokens from unrelated contexts into a delegation chain that is invalid.
How do you add OAuth 2.1 and tool-level RBAC to a multi-agent MCP deployment?
An MCP gateway provides the common enforcement point between agents and tools. On inbound requests, it validates DPoP proofs or mTLS certificate bindings. It then blocks tools outside the caller’s scope, including delete or admin operations where those permissions are absent. A hidden tool must not remain callable without authorization.
For outbound calls, the gateway gets a separate audience-bound token for each downstream server. It does not forward the user’s inbound token. The MCP specification prohibits servers from accepting or passing along tokens not intended for them, because forwarding bypasses downstream controls and enables reuse wherever the forwarded credential remains valid. Support for authentication alone therefore does not show that a system supports role-based access controls for each tool.
Policy evaluation should be kept out of the gateway’s data path so a policy change does not require the proxy to be redeployed or force a choice between stale decisions and too much latency. The gateway also records sessions, tool calls, arguments, result sizes, and identities. The July 2026 MCP revision documents W3C Trace Context conventions for traceparent, tracestate, and baggage in _meta. With propagation implemented, OpenTelemetry can connect those calls into one span tree.
What the agent's identity layer must look like for binding and scope to hold
A cryptographic proof establishes control of a key. If several agents share a service account, binding does not distinguish their accountability. Conversely, treating an agent only as a user impersonation erases the workload as a distinct actor. Both shortcuts lose part of the record. Agents need standing identities separate from their changing authority to act for users.
Microsoft Entra Agent ID became generally available in April 2026. Microsoft Agent 365, generally available from May 1, 2026, gives agents their own identities for lifecycle and access management, with Conditional Access, Identity Protection, and Microsoft Purview integration. Third-party onboarding includes workload identity federation for AWS Bedrock and the Microsoft Entra ID Auth SDK sidecar pattern for n8n. These capabilities address the identity foundation alongside gateway enforcement.
The governance minimum is an identity governance and administration inventory recording each agent’s owner, scope, and lifecycle. Standing credentials authenticate the agent itself. Per-invocation delegation tokens authorize its current task. Access should be provisioned by role through the existing identity provider, such as Okta or Entra. Credential lifecycle automation must also follow deployment lifecycle automation. Otherwise, retiring the workload need not retire its authority.
What breaks when these patterns are absent and how enterprises find out
Integrations often keep working when controls are missing, without showing clear errors. The gap becomes visible when an incident investigation or audit asks who authorized an action. Without a human subject in user-delegated tokens, logs can describe the agent’s behavior but not its authority.
Departing employees expose the lifecycle version of this problem. Their agents may keep using broad tokens to make tool calls that look legitimate after the original authorization context has ended. Prompt injection exposes the permission version through the confused deputy pattern, where an agent uses its access for an operation the initiating user never authorized. A token limited to calendar:event:create restricts access to calendar creation, whose appropriateness still depends on the action authorized by the initiating user.
Token forwarding exposes another boundary failure, allowing a downstream server to reuse a credential against other servers for which it is valid. Shadow MCP exposes a visibility failure instead. Agents using stdio transports or locally configured servers can bypass network-layer controls and generate no gateway audit events. A gateway cannot govern traffic it never receives.
How binding, scope, and identity compose into a durable authorization architecture
The design starts with a registered workload identity that persists and is tied to the identity provider or workload identity infrastructure. That standing credential proves the agent is a known workload. For user-delegated work, Authorization Code + PKCE or Token Exchange supplies the execution context through sub, act, aud, scope, and exp. DPoP or mTLS then binds use of that token to the authorized holder. Each layer answers a different question.
The gateway joins those answers at execution time. It validates possession, enforces tool permissions, brokers downstream audience-bound credentials, and emits audit records that can be correlated with distributed traces. For delegated actions, the result identifies the authorizing person, acting workload, permitted operation, and intended server. Autonomous Client Credentials calls remain attributable to the agent rather than inventing a human delegation that never occurred.
Unfinished standards do not remove the need for these boundaries. OAuth 2.1 is still a draft, multi-hop agent delegation has no ratified standard, and few systems have implemented delegation-chain splicing protections. The practical foundation is therefore the stable primitives of DPoP, mTLS, Token Exchange, and Resource Indicators, while following IETF work on agent delegation.


