pub async fn admin_auth_middleware(
state: State<AppState>,
request: Request<Body>,
next: Next,
) -> ResponseExpand description
Axum middleware that enforces admin authentication via Basic Auth.
Authentication is bypasses if:
auth.enabled = false(dev mode)auth.admin_password_hashis not configured
Otherwise, expects “Authorization: Basic <base64>” header.