TokenResolverContext Class

Provides contextual information to the token resolver delegate.

identity provides first-class access to agent identity fields (agent ID, agentic user ID). tenant_id and identity together identify the cache key.

Constructor

TokenResolverContext(identity: AgentIdentity, tenant_id: str)

Parameters

Name Description
identity
Required

The agent identity associated with this request.

tenant_id
Required

The tenant identifier (cache key).

Attributes

identity

The agent identity associated with this token resolution request.

Contains the agent ID and agentic user ID (AAD Object ID) as first-class properties.

tenant_id

The tenant identifier (part of the cache key).