package
0.0.0-20210203165434-a0b01fe4196b
Repository: https://github.com/gys/goa.git
Documentation: pkg.go.dev
# Functions
ContextJWT retrieves the JWT token from a `context` that went through our security middleware.
New returns a middleware to be used with the JWTSecurity DSL definitions of goa.
NewResolver returns a GroupResolver that uses the value of the request header with the given name to select the key group used for authorization.
NewSimpleResolver returns a simple resolver.
WithJWT creates a child context containing the given JWT.
# Variables
ErrEmptyHeaderName is returned when the header value given to the standard key resolver constructor is empty.
ErrInvalidKey is returned when a key is not of type string, []string, *rsa.PublicKey or []*rsa.PublicKey.
ErrJWTError is the error returned by this middleware when any sort of validation or assertion fails during processing.
ErrKeyDoesNotExist is returned when a key cannot be found by the provided key name.
# Structs
No description provided by the author