Skip to main content

Module claims

Module claims 

Source
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 when scope=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 cnf claim.
CnfJwk
JWK (JSON Web Key) for an Ed25519 public key — RFC 7517 OKP key type.
FederateHost
Server-configured Federate API identity. Accept only an exact canonical HTTPS origin; never construct this authority from a request or JWT claim.
IdTokenClaims
OIDC ID Token claims (OpenID Connect Core 1.0, Section 2).

Enums§

OneOrMany
A value that serializes as either a single string or an array of strings.
SessionClaimError
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 None when 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 iss belongs to a local node.