forge-core 0.10.0

Core types and traits for the Forge framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Authentication and JWT handling.
//!
//! Supports both symmetric (HMAC) and asymmetric (RSA via JWKS) JWT validation.
//! Tokens are validated on every request; claims are available in the function context.

mod claims;
pub mod role_resolver;
pub mod tokens;

pub use claims::{Claims, ClaimsBuilder};
pub use role_resolver::{
    DefaultRoleResolver, RoleResolver, SharedRoleResolver, default_role_resolver,
};
pub use tokens::TokenPair;