Principal-scoped host authorization context.
Hosts construct a context from already authenticated tenant/principal identity. No MCP response, manifest, process dictionary, or application environment may supply these values. Construction atomically claims the principal lifecycle epoch from the configured store under the caller's absolute deadline.
Summary
Types
@type interaction() :: module() | nil
@type t() :: %PtcRunner.Kernel.MCPOAuth.Context{ credential_resolver: credential_resolver(), interaction: interaction(), principal_epoch: term(), principal_id: binary(), store: PtcRunner.Kernel.MCPOAuth.Store.t(), tenant_id: binary() }
Functions
@spec grant_key(t(), PtcRunner.Kernel.MCPOAuth.Authority.t(), term()) :: PtcRunner.Kernel.MCPOAuth.GrantKey.t()