Expand description
RFC 8693 OAuth Token Exchange grant handler.
Grant type: urn:ietf:params:oauth:grant-type:token-exchange
Exchanges an existing credential (OIDC ID token, at+jwt, or WIT) for a hyprstream at+jwt. Serves as the HTTP-layer complement to ExchangeWit (ZMQ) and enables the MCP SDK’s CrossAppAccessProvider enterprise flow.
Structs§
- Atproto
Exchange Request - Claims
Subject Context Resolver - S8 (#574): the concrete
SubjectContextResolverthat does the real two-input MAC context derivation. - Deny
Unlabeled Resolver - A no-op resolver that always returns
None— the explicit fail-closed choice for a node that has not configured subject-clearance resolution. Production under MAC SHOULD wireClaimsSubjectContextResolverinstead.
Constants§
Traits§
- Subject
Context Resolver - Resolve a UCAN audience DID → the S1 [
SecurityContext] it presents at grant time (clearance clamped to verified key material).
Functions§
- exchange_
atproto_ ucan - XRPC adapter over the RFC 8693 exchange core.
- exchange_
token_ exchange - POST /oauth/token — token-exchange grant (RFC 8693).
- exchange_
ucan_ grant - POST /oauth/token — UCAN grant (RFC 8693 token-exchange,
subject_token_type = urn:hyprstream:token-type:ucan-grant).