package
0.0.0-20200129003244-9aa193b98a7a
Repository: https://github.com/xanderflood/fruit-pi-server.git
Documentation: pkg.go.dev

# Functions

GetAuthorizationFromContext is the default Getter.
NewAuthorizationManager creates a new JWTAuthorizationManager.

# Constants

AuthorizationContextKey is the key used to store the Authorizationin the context.

# Structs

Authorization describes the authorities stored in a user JWT.
JWTAuthorizationManager provides a JWT-based implementation of AuthorizationManager.

# Interfaces

AuthorizationManager exposes middleware functionality for authorization.
Authorizer represents the needed interactions with jwt.Parsergo:generate counterfeiter .

# Type aliases

Getter is a helper for grabbing the Authorizationthat the middleware stores in the context.go:generate counterfeiter .