Module delegation

Source
Expand description

Scoped delegation tokens for sub-agents.

v2.0: hard-break from v1 compact format. Tokens are now standard JWS (RFC 7515) using EdDSA. Supports structured constraints, RFC 8693 act chain, and algorithm agility via Algorithm.

Re-exports§

pub use crate::auth_keys::parse_alg;

Structs§

ActClaim
RFC 8693 nested act claim.
ConstraintSet
Structured constraints — a tree of expressions evaluated against the request context. Replaces v1’s free-form constraint strings.
DelegationClaims
Standard JWS compact serialization: base64url(header).base64url(payload).base64url(signature).
DelegationConfig
TTL configuration for minting tokens.
DelegationSigner
Signer that mints JWS tokens.
DelegationSpec
Input for minting a child delegation from a verified parent.
DelegationToken
A signed JWS token + its parsed claims.
DelegationVerifier
Verifies JWS tokens using a key registry of public keys.
VerifiedDelegation
A successfully verified delegation token.

Enums§

ConstraintExpr
A single constraint expression over a context path.

Constants§

MAX_DELEGATION_TOKEN_BYTES
Maximum compact JWS size accepted by the delegation parser.

Traits§

DelegationRevocationStore
Durable revocation-state port for delegated grants.

Functions§

glob_match
Glob match with * wildcard support.