gatekeep_axum/lib.rs
1//! Axum adapter for gatekeep authorization boundaries.
2//!
3//! The crate keeps policy selection and context construction in the application.
4//! Handlers call [`Gatekeeper::authorize`] with a policy value and use
5//! [`GatekeepRejection`] as an axum rejection.
6
7#![forbid(unsafe_code)]
8
9mod authorizer;
10mod error;
11mod response;
12pub mod test_support;
13
14pub use authorizer::{AuditSubjects, Authorized, Gatekeeper};
15pub use error::{GatekeepAxumError, GatekeepRejection};
16pub use response::{DenialBody, DenialError, DenialResponse, DenialResponseConfig};