# Functions

ClientCertificateFromCtx retrieves the X.509 client certificate of a request which have been injected before via the auth middleware.
DefaultErrorHandler responds with the error and HTTP status 401.
NewMiddleware instantiates a new Middleware with defaults for not provided Options.
NewToken creates a Token from an encoded jwt.
TokenFromCtx retrieves the claims of a request which have been injected before via the auth middleware.

# Constants

TokenCtxKey is the key that holds the authorization value (*OIDCClaims) in the request context ClientCertificateCtxKey is the key that holds the x509 client certificate in the request context.
TokenCtxKey is the key that holds the authorization value (*OIDCClaims) in the request context ClientCertificateCtxKey is the key that holds the x509 client certificate in the request context.

# Variables

ErrClaimNotExists shows that the requested custom claim does not exist in the token.
No description provided by the author

# Structs

Certificate is the public API to access claims of the X509 client certificate.
Middleware is the main entrypoint to the authn client library, instantiate with NewMiddleware.
Options can be used as a argument to instantiate a AuthMiddle with NewMiddleware.
No description provided by the author

# Type aliases

The ContextKey type is used as a key for library related values in the go context.
ErrorHandler is the type for the Error Handler which is called on unsuccessful token validation and if the AuthenticationHandler middleware func is used.