nestrs 0.3.5

NestJS-like API framework for Rust on top of Axum and Tower.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Security building blocks: auth helpers, optional CSRF (feature **`csrf`**), and docs for threat model.

pub mod auth;

#[cfg(feature = "csrf")]
pub mod csrf;

pub use auth::{
    parse_authorization_bearer, route_roles_csv, AuthStrategyGuard, BearerToken,
    OptionalBearerToken, XRoleMetadataGuard,
};

#[cfg(feature = "csrf")]
pub use csrf::{csrf_double_submit_middleware, CsrfProtectionConfig};