# Packages
Package htpasswd provides a simple authentication scheme that checks for the user credential hash in an htpasswd formatted file in a configuration-determined location.
Package silly provides a simple authentication scheme that checks for the existence of an Authorization header and issues access if is present and non-empty.
No description provided by the author
# Functions
GetAccessController constructs an AccessController with the given options using the named backend.
Register is used to register an InitFunc for an AccessController backend with the given name.
WithUser returns a context with the authorized user info.
# Constants
UserKey is used to get the user object from a user context.
UserNameKey is used to get the user name from a user context.
# Variables
ErrAuthenticationFailure returned when authentication fails.
ErrInvalidCredential is returned when the auth token does not authenticate correctly.
# Interfaces
AccessController controls access to registry resources based on a request and required access levels for a request.
Challenge is a special error type which is used for HTTP 401 Unauthorized responses and is able to write the response with WWW-Authenticate challenge header values based on the error.
CredentialAuthenticator is an object which is able to authenticate credentials.
# Type aliases
InitFunc is the type of an AccessController factory function and is used to register the constructor for different AccesController backends.