Skip to main content

Module middleware

Module middleware 

Source
Expand description

Axum middleware for authorization enforcement.

The tower Layer / Service implementations here are gated on the axum feature. All real work goes through crate::enforce::run_check, which both the axum adapter and the actix-web 4 adapter call so decisions stay identical across frameworks.

Structsยง

AuthzLayer
Tower Layer that enforces authorization using Authorizer.
AuthzService
Tower Service that performs the authorization check.