Skip to main content

Module result

Module result 

Source
Expand description

Result types returned by authorization calls.

Structs§

AuthorizeResult
Result of an authorization request.
BatchAuthorizeMultiIssuerResponse
Result of Cedarling.authorize_multi_issuer_batch. Same shape as BatchAuthorizeUnsignedResponse with multi-issuer results.
BatchAuthorizeUnsignedResponse
Result of Cedarling.authorize_unsigned_batch. Carries a shared batch_id (UUIDv7) alongside per-item outcomes. results[i] corresponds to the items[i] supplied in the request.
BatchItemError
Per-item build failure surfaced inside a batch response when Cedar couldn’t be reached for that item. category is the stable variant slug (action_parse, resource_build, …), item_index is the position of the failing item in the original items list.
Diagnostics
Policies that determined the decision and errors raised during evaluation.
DropReasonInfo
Why a token was dropped. kind(), detail() and message() return the same values as the core JSON reason object; variant is the typed reason.
DroppedToken
A token dropped during multi-issuer authorization, identified by its input mapping and zero-based index, with the claim-free reason.
MultiIssuerAuthorizeResult
Result of multi-issuer authorization
Response
Cedar decision together with its diagnostics.

Enums§

BatchItemMultiIssuerOutcome
Multi-issuer analog of BatchItemUnsignedOutcome.
BatchItemUnsignedOutcome
One slot in BatchAuthorizeUnsignedResponse.results. Pattern-match on Success(_) to read the Cedar decision, or Failed(_) to read the per-item build failure.
Decision
Cedar authorization decision.