gatekeep-axum 1.0.1

Axum integration adapter for gatekeep
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 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.

#![forbid(unsafe_code)]

mod authorizer;
mod error;
mod response;
pub mod test_support;

pub use authorizer::{AuditSubjects, Authorized, Gatekeeper};
pub use error::{GatekeepAxumError, GatekeepRejection};
pub use response::{DenialBody, DenialError, DenialResponse, DenialResponseConfig};