Skip to main content

Module auth

Module auth 

Source

Structs§

BearerAuth
Validates bearer credentials and stores the resulting identity in request extensions.
BearerAuthMiddleware
JwtAuth
Validates HS256 bearer tokens and exposes their typed claims to handlers.
JwtAuthMiddleware
RequestSignatureAuth
Validates time-window-bounded HMAC signatures over the HTTP method and path/query target.
RequestSignatureAuthMiddleware

Enums§

JwtError
Errors produced while decoding or validating an HS256 JSON Web Token.

Functions§

encode_hs256
Encodes serializable claims as an HS256 JSON Web Token.