Expand description
JWT claims for authentication.
Two claim types:
Claims— access token claims used throughout the RPC layer. OAuth grants carry their granted scope set in the signed JWT so consumers can attenuate authority without falling back to subject-wide policy.IdTokenClaims— OIDC ID Token claims (Section 2 of OpenID Connect Core 1.0). Only used by the OAuth token endpoint whenscope=openid.
Structs§
- ActClaim
- RFC 8693 §4.1 actor claim — the two-principal carrier for delegated calls (#680/#681).
- Claims
- JWT claims for authentication.
- Cnf
- RFC 8705 / RFC 8747 Proof-of-Possession
cnfclaim. - CnfJwk
- JWK (JSON Web Key) for an Ed25519 public key — RFC 7517 OKP key type.
- Federate
Host - Server-configured Federate API identity. Accept only an exact canonical HTTPS origin; never construct this authority from a request or JWT claim.
- IdToken
Claims - OIDC ID Token claims (OpenID Connect Core 1.0, Section 2).
Enums§
- OneOr
Many - A value that serializes as either a single string or an array of strings.
- Session
Claim Error - Session-claim parsing failure (v16 §3.3 exact-one rule). Any error is a malformed-credential rejection at a verification boundary.
Constants§
- FEDERATE_
STAGING_ CLIENT - FEDERATE_
STAGING_ HOST - Fixed staging Federate issuer/client reservation. Keep these in the JWT verifier, not only Registry/Model, so a generation-stripped token cannot authenticate on another RPC, 9P, or HTTP entry point as a static token.
Functions§
- compute_
jkt - Compute the RFC 7638 JWK Thumbprint for an Ed25519 key.
- federate_
tui_ class_ client - The configured TUI class client id, or
Nonewhen the class is unconfigured (or startup never installed the reservation). - install_
federate_ tui_ class_ client - Install the TUI class reservation. Idempotent when the value matches a previous install (startup paths may run more than once); a conflicting re-install is an error (the class is an authority pin, never reseated).
- is_
local_ iss - Returns true if
issbelongs to a local node.