# Functions
ErrAuth is returned when there was error during authentication.
ErrInvalidRequest is returned for invalid requests.
ErrRender is returned when there was rendering error.
GetLogEntry from a request.
LogEntrySetField adds new key and corresponding value to existing log entry.
LogEntrySetFields adds a map of new key and corresponding value to existing log entry.
NewContextSetter returns instance of UserInfoSetter middleware UserInfoSetter is a middleware, which sets user name, roles and admin flags based on JWT claims.
NewJwksKeyLoader returns new JwkCertLoader.
NewJWTAuthenticator returns a new authenticator for the given audience and issuer values expected in JWT tokens.
NewStructuredLogger is a simple, but powerful implementation of a custom structured logger backed on logrus.
# Constants
CtxJWTKey allows to get JWT token.
# Variables
ErrNotFound - guess when it's returned.
# Structs
ErrResponse renderer type for handling all sorts of errors.
JwksKeyLoader lazily loads and caches JWK certificate, but allows for forced reload.
JwtAuthenticator is a middleware for validating JWT auth tokens.
StructuredLogger implements custom structured middleware logger.
StructuredLoggerEntry implements single structured log entry.
# Type aliases
LogrusFieldFuncs is a map that sets additional fields in logs (based on keys) using a function acting on the http.Request.