Module auth
Expand description
Authorization related middleware.
Modules§
- add_
authorization - Add authorization to requests using the
Authorization
header. - validate_
authorization - Authorize requests using
ValidateRequest
.
Structs§
- AddAuthorization
- Middleware that adds authorization all requests using the
Authorization
header. - AddAuthorization
Layer - Layer that applies
AddAuthorization
which adds authorization to all requests using theAuthorization
header. - Http
Authorizer - Utility type to allow you to use any
Authorizer
that works withCredentials
to authorize theAuthorization
header, and returnStatusCode::UNAUTHORIZED
response withheader::WWW_AUTHENTICATE
for unauthorized request, tracing the original error for your convenience.