Skip to main content

Module authorization

Module authorization 

Source
Expand description

Post-claim local authorization and the ordered post-status stages (SPEC-v2 §5.2, §6.3 to §6.7). Mirrors Go authorization_v2.go and evaluateConstraintV2 / loadV2TimeZone from constraints_v2.go.

Structs§

V2DeferredConstraint
A constraint requiring the ordered status, membership, or rate-reservation stage.
V2LocalAuthorizationAssessment
An intermediate result, not a terminal authorization decision. Callers must still evaluate issuer status and any deferred checks before an action can be allowed.
V2LocalAuthorizationOptions
Verifier-owned inputs for the deterministic authorization checks that follow a successful challenge claim. There is no caller-supplied evaluation time: every time-sensitive check uses the claim store’s authoritative claim time sealed in claim_token. future_skew_seconds must equal the value sealed at claim.
V2LocalPolicyFailure
A pure local verdict that must not become terminal until every authenticated chain CertificateRef has completed status evaluation.

Constants§

TZDB_VERSION_V2
The IANA tzdata release embedded in this crate and used for every time_window evaluation (SPEC-v2 §5.2; Go TZDBVersionV2). A verifier configures the release it requires; any other configured value, or none, makes every time_window constraint_unverifiable.

Functions§

evaluate_proof_bundle_v2_local_authorization
Go EvaluateProofBundleV2LocalAuthorization: trust-root binding, delegation times, effective scope, and deterministic constraints. The caller must invoke it only after preflight and atomic challenge claim. It performs no status lookup, rate reservation, or other external call (extension evaluators sealed at preflight are pure).
resolve_claim_proof_bundle_v2_after_audience
Go ResolveClaimProofBundleV2AfterAudience: consume caller-authenticated, complete membership results only after every certificate status is current. Membership freshness is evaluated at the authoritative claim time sealed in the token. Errors are configuration_invalid (Go returns them unclassified; they mean the token is not in this stage or the sealed state is inconsistent).
resolve_claim_proof_bundle_v2_after_rate
Go ResolveClaimProofBundleV2AfterRate: the final external Protocol constraint stage. The caller must finalize the returned terminal result through the same claim store; an ambiguous store error never authorizes. A rate store that panics is treated as unavailable. Errors are evaluation_cancelled for a done context and configuration_invalid otherwise (Go returns them unclassified).