pub async fn signed_request(
__arg0: State<AppState>,
req: Request<Body>,
next: Next,
) -> ResponseExpand description
Middleware factory that:
- Reads the body bytes (so the canonical request hash can be computed).
- Reads the four
X-RE-*signature headers +Authorization: Bearer. - Runs
auth::verify_signed_request. - On success, re-attaches the body and inserts
SignedSessionintorequest.extensions()so handlers can pull it out. - On failure, audits the reason and returns 401.