# Functions
CheckAuthInContextMiddleware is a chain.SecurityChainMiddleware that performs a check for the Auth object in the context.
DummyUserPassAuthBuilder returns a chain.MiddlewareBuilder factory function.
RetrieveAuthFromContext first stores an Auth object in context, then retrieves it via auth.GetAuth.
SecurityChainExample illustrates setting up a security chain with 2 middlewares: 1.
SecurityChainExampleFailAuth illustrates setting up a security chain same as SecurityChainExample, but the request contains wrong authentication and the chain returns an error.
SetAuthInContext sets an auth.Auth object in context and checks for it.
# Variables
NoAuthenticationPresent is a custom error for the auth middleware generated when there is no authentication created.
# Type aliases
UserRepository is an in-memory user data store.