package
0.5.1
Repository: https://github.com/calebjh/atlas-app-toolkit.git
Documentation: pkg.go.dev

# Functions

GetAccountID gets the JWT from a context and returns the AccountID field.
GetJWTField gets the JWT from a context and returns the specified field.
NewBuilder returns an instance of the default Builder that includes all of of the user-provided options.
NewHandler returns an instance of the default handler.
No description provided by the author
WithCallback allows developers to pass their own attributer to the authorization service.
WithJWT allows for token-based authorization using JWT.
WithRequest takes metadata from the incoming request and passes it to Themis in the authorization request.
WithTLS gathers metadata from a TLS-authenticated client.

# Constants

MultiTenancyField the field name for a specific tenant.

# Variables

ErrInternal indicates a server-side error occured during authorization.
ErrUnauthorized indicates that a given request has been denied.

# Structs

Authorizer glues together a Builder and a Handler.

# Interfaces

Builder is responsible for creating requests to Themis.
Handler decides whether or not a request from Themis is authorized.