Skip to main content

post_auth_middleware

Function post_auth_middleware 

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

Post-auth middleware: enforces rules keyed by a validated JWT claim. Layered inside auth so the verified claims are available on the request.