Skip to main content

pre_auth_middleware

Function pre_auth_middleware 

Source
pub async fn pre_auth_middleware(
    __arg0: State<Arc<Shield>>,
    request: Request,
    next: Next,
) -> Response
Expand description

Pre-auth middleware: enforces rules that need no validated claims (IP / header keys). Layered outside auth so anonymous floods are shed before any signature verification.