# Functions

ClearSecurityContext removes the SecurityContext object from the context.
GetAuth retrieves the Auth object from the given context.Context.
GetSecurityContext returns the SecurityContext from the given context.
GetSecurityErrors returns the SecurityErrors map from the SecurityContext in the given context.
HasAuth checks for existence of Auth object in the given context.Context.
SetAuth sets the pointer to the Auth object in the context.
SetSecurityError sets an error for the given security type in the SecurityContext.

# Constants

SecurityContextKey is the context key under which the SecurityContext object is stored in context.Context.

# Structs

Auth stores the Authorization and Authentication data for a particular user/client.
SecurityContext holds pointer to the Auth object and a SecurityErrors.

# Type aliases

SecurityErrors holds the errors generated during validation of the request with a specific security mechanism (ex.