Identity element

Field reference for the Identity canvas element: agent DID extraction at inbound, protected, external, or outbound pipeline edges, for the signed identity VP and policy.

The Identity element extracts an agent decentralised identifier (DID) from the pipeline at the edge where identity evidence is available. Drop it on the edge that corresponds to the identity slot you want to populate. One surface can hold multiple Identity elements at different edges.

Placement slots

EdgeIdentity slotWhat it resolves
Access Point → Managed Agent (request)Inbound caller identityDID of the incoming caller.
Access Point → Managed Agent (response)Protected agent identityDID of the managed agent responding to the caller.
External Target → Managed Agent (response)External agent identityDID of the external upstream the managed agent calls out to. Offered only when the surface has a Transit Point or the Managed Agent targets another gateway (via Gateway Connection).
Managed Agent → Transit Point (request)Outbound managed-agent identityDID of the managed agent for a specific Transit Point. Used by Workload Binding flows.

Identity Extraction Type

Select the type using the Identity Extraction Type dropdown. Type-specific fields appear below once a type is selected.

TypeDescription
From Payload (identity metadata)Reads identity claims from a named field in the payload body.
From API KeyOn the inbound caller slot, derives the caller’s DID from the API key the caller presents. On the external agent slot, derives the agent DID from an API key of this surface. Not offered on the protected agent slot.
From JWT ClaimsExtracts the agent DID from a named claim in the JWT Bearer token.
Static DIDShown in the list but can’t be selected. Use From Payload (identity metadata), From API Key or From JWT Claims instead.
From mTLS certificateShown in the list but can’t be selected. Use From API Key or From JWT Claims instead.

Type: From Payload (identity metadata)

The sidebar panel shows a Configure Fields… button that opens the fullscreen editor. Configure dot-notation field paths and the JSON schema there. The sidebar also shows the current field count.

On an A2A surface’s inbound caller slot, and on an A2A Transit Point’s identity, the panel also shows an A2A Identity Source section. Its Metadata extension URI field names the protocol metadata extension the identity fields are read from. Leave it blank to read the standard Affinidi agent identity extension. Read from Header Metadata Mapping fills in the namespace that Metadata Extraction writes, so identity can come from mapped HTTP headers.

FieldRequiredDefaultDescription
Strip raw identity metadata after injectionNoOffWhen on, removes the raw _meta.[field] from the request once the verifiable presentation (VP) is injected. Not shown on A2A surfaces.

Type: From API Key

The fields depend on the slot.

Inbound caller identity slot. The panel has no key picker. It shows “Each caller is identified by the API key it presents.” Every method in the surface’s Caller Context must be API Key (secret store) or API Key (provider). Otherwise the dashboard shows “Identity ‘From API Key’ needs every Caller Context method to be API Key or API Key Provider” and the surface can’t be saved. What counts as one caller depends on the Caller Context method:

Caller Context methodOne DID per
API Key (provider)Key presented. Each caller with their own key gets their own DID.
API Key (secret store)Secret. Every key value in the secret shares one DID.

On a direct request, the DID from the presented key replaces any identity the request body asserts. Unless the body asserts the key’s own DID, its trust registry claims are dropped, so a Trust Check preset that reads input.agent.provider_did denies the caller. In policy input, input.agent.did_verification is source_auth for an API Key (provider) caller and unverified for an API Key (secret store) caller.

Protected agent identity slot. From API Key is disabled, and the type list’s help reads “Not offered on the Managed Agent’s response identity.” A surface’s API keys are issued to its callers, so none of them identifies the managed agent.

External agent identity slot. Select the API key of this surface that the agent DID is derived from.

FieldRequiredDefaultDescription
API KeyYes—Active API key of this surface to derive the agent DID from. The list shows only this surface’s active keys. Its help reads: “A surface names only its own API keys: the list shows this surface’s active keys, and the gateway refuses a key of another surface.”

A new surface has no API keys yet, so the panel shows “A new surface has no API keys yet. Remove this Identity or choose another type, save the surface, add an API key, then come back and select it.” Save the surface first, add a key for it on the API Keys tab, then select that key here. See API keys.

Save stays blocked while the Identity names no key, or a key that was revoked or deleted. When the key it names is revoked or deleted:

  • The panel shows “The API key this Identity uses was revoked. Select an active API key of this surface.” or “The API key this Identity uses was deleted. Select an active API key of this surface.”
  • The canvas shows “API key revoked” or “API key deleted” under the Identity element.
  • The surface page shows “This surface is refusing requests”, and the surface answers every request with 503.

Select another active key of the surface and save. The new key gives the surface a new DID, so update any policy rule or trust registry record that names the old one.

A surface saved before version 1.0.9 whose Identity names another surface’s key keeps serving. The panel then shows “The API key this Identity uses belongs to another surface. Select an active API key of this surface.” Select one of the surface’s own keys and save.

An Identity names an API key of its own surface. When that key is revoked or deleted, the surface answers 503 until you select another of its active keys, which gives the surface a new DID. Deleting a surface revokes its API keys.

Type: From JWT Claims

Requires JWT Bearer caller authentication on this surface: every method in the surface’s Caller Context must be JWT Bearer. Otherwise the dashboard shows “From JWT Claims requires a Caller Context whose methods are all JWT Bearer. Remove the other methods, or change this extraction type.” and the surface can’t be saved.

From version 1.0.9, on the inbound caller slot, a caller with no bearer token or an invalid one is refused with 401 “Caller credential missing or invalid”, and the managed agent isn’t called.

FieldRequiredDefaultDescription
JWT ClaimNooidJWT claim from which the DID is derived.
Namespace ClaimsNo—Additional claims, separated by commas, that namespace the derived DID so it stays unique, for example iss, tid.