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.
- Denial
Body - JSON body emitted for authorization denials.
- Denial
Response - HTTP denial response produced by a policy denial.
- Denial
Response Config - Presentation settings for policy denials.
- Gatekeeper
- Axum-friendly authorization boundary.
Enums§
- Audit
Subjects - Whether audit entries should include request subject identifiers.
- Denial
Error - HTTP denial category returned by the axum adapter.
- Gatekeep
Axum Error - Error produced while resolving, evaluating, tracing, or auditing a decision.
- Gatekeep
Rejection - Axum rejection returned by
crate::Gatekeeper::authorize.