Module auth
Expand description
Authorization related middleware.
Modules§
- add_
authorization - Add authorization to requests using the
Authorizationheader. - validate_
authorization - Authorize requests using
ValidateRequest.
Structs§
- AddAuthorization
- Middleware that adds authorization all requests using the
Authorizationheader. - AddAuthorization
Layer - Layer that applies
AddAuthorizationwhich adds authorization to all requests using theAuthorizationheader. - Http
Authorizer - Utility type to allow you to use any
Authorizerthat works withCredentialsto authorize theAuthorizationheader, and returnStatusCode::UNAUTHORIZEDresponse withheader::WWW_AUTHENTICATEfor unauthorized request, tracing the original error for your convenience.