Skip to main content

Crate gatekeep_axum

Crate gatekeep_axum 

Source
Expand description

Axum adapter for gatekeep authorization boundaries.

The crate keeps policy selection and context construction in the application. Handlers call Gatekeeper::authorize with a policy value and use GatekeepRejection as an axum rejection.

Modules§

test_support
Test helpers for asserting gatekeep axum denial responses.

Structs§

Authorized
Successful authorization result returned to handlers.
DenialBody
JSON body emitted for authorization denials.
DenialResponse
HTTP denial response produced by a policy denial.
DenialResponseConfig
Presentation settings for policy denials.
Gatekeeper
Axum-friendly authorization boundary.

Enums§

DenialError
HTTP denial category returned by the axum adapter.
GatekeepAxumError
Framework-independent authorization failure. Error produced while resolving, evaluating, tracing, or auditing a decision.
GatekeepRejection
Axum rejection returned by crate::Gatekeeper::authorize.