SDK reference / Models / Auth

TokenExchangeRequest

Kind: class

Namespace: Egulu.Sdk.Models.Auth

An RFC 8693 token exchange (form encoded): the MCP host trades the client's token for one the API accepts.

Properties

NameTypeJSON nameDescription
Audiencestring?audienceThe API's own audience, https://api.{domain}; required unless resource is given.
GrantTypeModels.Auth.TokenExchangeRequest_grant_type?grant_typeThe grant_type property
Resourcestring?resourceRFC 8707: an MCP project URI, {mcp}/v1/projects/{project}. A person's token is exchanged for a token of one of the agents they sponsor (ADR-0210 cliProxy), with this URI as audience; the scope names the project and agent.
Scopestring?scopeproject:{project}: the project an agent's call is for; with resource, also agent:{agt_...}.
SubjectTokenstring?subject_tokenThe subject_token property
SubjectTokenTypeModels.Auth.TokenExchangeRequest_subject_token_type?subject_token_typeThe subject_token_type property