Caller context binding

How the gateway identifies each unique caller and isolates their delegated credentials from all other callers on the same surface.

When multiple callers share an AI agent surface, the gateway must identify which caller is making each request at the moment of every outbound call. Without this, it cannot determine whose delegated credentials to inject, and one caller’s access token could be silently reused for another caller’s request.

The gateway solves this through a three-part composite key that uniquely scopes every delegation context. The key combines the agent’s stable cryptographic identifier, a one-way hash of the caller’s identity, and the external provider identifier. Callers that the gateway identifies differently produce different keys, and the vault entry created during consent can only be resolved by the same combination that created it. Configure per-caller Credential Delegation →

How vault entries are scoped

Each delegation vault entry is scoped to three values:

Agent DID The request-path DID resolved by an Identity element, or the surface's own identifier as a fallback when none is configured. Identifies the workload handling the request.
+
User identity hash Hash of how the caller was identified: the authentication method, the issuer, and the caller's principal, such as the JWT sub claim or the claim the JWT verification strategy names instead. Computed from source authentication, independently of any Identity element. Raw values are not stored. Scopes the key to one specific caller.
+
Provider ID Credential provider identifier. GitHub and Slack are separate vault entries. Scopes the key to one external provider per caller.
=
Unique vault key

A vault entry created during one caller’s consent can only be resolved by the same caller, on the same surface, for the same provider.

The agent DID component identifies the workload, which is normally the managed agent itself, but it is resolved independently of the user identity hash and can vary by configuration: an Identity element set to extract a caller’s JWT claim produces a per-caller DID here too, while a Static DID or payload-based extraction keeps this component constant across every caller on the surface. Either way, the user identity hash is what scopes the entry to one caller, because it comes from the caller’s own source-authentication result rather than from whatever the Identity element is configured to extract.

How caller identity is stored privately

The user identity hash is a digest of how source authentication identified the caller. It combines three inputs:

InputWhat it is
MethodThe Caller Context authentication method, such as JWT Bearer or API Key.
IssuerWho vouched for the caller: the token issuer (iss) for JWT Bearer, the key provider for API Key (provider), or the trusted certificate authority for mTLS. A plain API Key and DID Auth have no separate issuer.
PrincipalThe caller’s name as the credential states it: for JWT Bearer, the value of the JWT verification strategy’s Caller identity claim, which is sub by default; the key ID for API Key (provider), the secret ID for API Key (secret store), the DID for DID Auth, or the certificate principal for mTLS.

The hash reads directly from the Caller Context element’s authentication result, not from an Identity element’s derived DID, and from no JWT claims other than iss and the strategy’s caller identity claim. Only the derived hash is held in the vault, not the raw credential values.

Because the method and issuer are part of the hash, the same principal reached through a different method or issuer counts as a different caller. A sub value from one identity provider and the same sub value from another produce different hashes. With API Key (secret store), the principal is the secret, so every key value in one secret is the same caller.

For JWT Bearer, the claim the principal comes from matters too. A strategy that names callers by a claim other than sub treats them as different callers from a strategy that uses sub, even when both claims hold the same value. Microsoft Entra gives a user a different sub in each application, so a strategy for Entra uses oid. The claim is fixed when the strategy is created, so the callers a strategy names, and their grants, stay the same. See JWT Verification Strategies: Caller identity claim.

A caller gets no hash when the credential names nobody: a JWT without an iss claim or without its strategy’s caller identity claim, or an empty principal. A request that needs a delegated credential from such a caller is refused with 403, on an Access Point and on a Transit Point.

PropertyWhat it means
Consistent lookupThe same caller, identified the same way, produces the same hash on every request. The vault entry created during consent is resolved again on every subsequent call.
No raw identity in the vaultThe vault holds the hash, not the caller’s raw identity claims.
No claim collisionCallers who differ in method, issuer, or principal produce different hashes. Their vault entries stay separate.

Relationship to Credential Delegation

Caller context binding and Credential Delegation are separate concerns that are easy to conflate because they always operate together: Credential Delegation cannot store or inject a token without a caller identity to scope it to.

Caller context binding is limited to producing the composite key described above, from an already-authenticated caller. It has no concept of consent, token injection, refresh, or revocation. Those behaviours belong entirely to Credentials, which documents the consent and elicitation modes, how a token is injected once resolved, how expired tokens are refreshed, and how an administrator revokes a stored token. This page only explains how the caller side of that lookup key is identified and kept private.

Relationship to Workload Binding

Caller context binding and Workload Binding are two distinct features that both involve the caller’s identity.

Caller context bindingWorkload Binding
PurposeVault lookup key for per-caller delegated credentialsSigned VP attestation forwarded to downstream agents
Requires Transit PointNoNo. Can also be placed on the target leg (MA → External).
Requires G2G topologyNoOn a Transit Point only. The target leg works on any endpoint.
What it producesAn isolated delegation vault entryA signed Verifiable Presentation
Configured onAny surface with Credential DelegationTransit Point or target leg (MA → External)

Workload Binding embeds the caller’s context into a signed VP on an outbound edge. It can be placed on a Transit Point (where a Gateway Connection target carries the VP to a receiving gateway for verification) or on the target leg (where the VP is attached to any outbound request). The receiving gateway verifies the VP and exposes the caller context to OPA as input.identity_binding. See Workload Binding for a full explanation, and Carry caller claims through your managed agent to choose which caller claims travel with the transit token.

The two mechanisms draw from different data sources and do not depend on each other. The vault stores an encrypted OAuth token and uses the identity hash only as a lookup key. Raw credential values are never persisted. Workload Binding never reads the vault. Instead, it reads live claims from the authenticated request: from the transit token, which carries claims captured at the Access Point, or from the Bearer JWT the managed agent presents at the Transit Point. The same caller’s request feeds both independently.

Use cases

Multi-user agent deployments. A single agent surface serves many callers, each mapped to their own composite key. One caller’s vault entry can never be resolved by another caller’s request, so a surface can safely serve callers who each hold access to the same downstream provider under different accounts. How a vault entry is first created and kept current is a Credential Delegation concern; see Credentials.

Per-caller attribution. The identity hash ties every vault entry, and every audit event derived from it, to one specific caller without exposing their raw identity claims. Combined with the audit log, every outbound API call can be traced back to the caller who authorised it.

Isolated revocation. Because each caller’s vault entries are keyed independently, an administrator can revoke one caller’s access to a provider, or every provider they hold tokens for, without affecting any other caller on the same surface. See Managing delegated tokens for how to revoke a token.