pub async fn auth_middleware(
__arg0: State<AppState>,
req: Request<Body>,
next: Next,
) -> Result<Response, ApiErrorResponse>Expand description
Axum middleware that validates the Authorization: Bearer <token> header.
A supplied credential must always be a single valid Bearer token. When no credential is supplied, only root public paths and explicitly granted read capabilities pass through as anonymous requests.