Expand description
Authentication and authorization module for tiny-proxy
This module provides functionality for:
- Token validation via external services
- Header manipulation and substitution
- Authentication middleware integration
§Example
use tiny_proxy::auth;
use hyper::Request;
// Validate a token using an external validator
let is_valid = auth::validate_token(&req, "https://auth.example.com/validate").await?;
// Process header substitutions
let value = auth::process_header_substitution("Bearer {header.Authorization}", &req)?;Re-exports§
pub use headers::process_header_substitution;pub use validator::validate_token;