# Functions
AsGoaMiddleware wraps a SecurityChain as a goa.Middleware that can later be used with goa service and registered as a standard goa.Middleware.
AsSecurityMiddleware wraps a SecurityChain into a SecurityChainMiddleware which later can be used as part of another SecurityChain.
BreakChain returns a BreakChainError with the message given.
CheckAuth is a basic chain.SecurityChainMiddleware that checks if an auth.Auth object is set in context.
FromGoaMiddleware wraps a goa.Middleware into a SecurityChainMiddleware.
GetSecurityBuilder returns a MiddlewareBuilder for the security mechanism from the global registry.
NewSecuirty registers a MiddlewareBuilder for a specific security mechanism type (ex "JWT" "OAuth2", "SAML").
NewSecurityChain creates a new SecurityChain.
ToSecurityChainMiddleware wraps a goa.Middleware into SecurityChainMiddleware.
# Variables
ErrAuthRequired is a an error builder for HTTP Authentication Required class of errors.
# Structs
BreakChainError is a custom error for breaking the middleware chain.
Chain represents a SecurityChain and holds a list of all SecurityChainMiddleware in the order as they are added.
# Interfaces
SecurityChain represents the full security chain and exposes functions for adding SecurityChainMiddleware to the chain.
# Type aliases
MiddlewareBuilder is a builder/factory for a particular SecurityChainMiddleware.
SecurityChainMiddleware is the basic constituent of the security chain.
SecurityMiddlewareBuilders is a map that maps a security type to a specific MiddlewareBuilder.