# Functions
APIVersions gets the API versions out of an HTTP response using the provided version header as the key for the HTTP header.
NewAuthorizer creates an authorizer which can handle multiple authentication schemes.
NewBasicHandler creaters a new authentiation handler which adds basic authentication credentials to a request.
NewSimpleChallengeManager returns an instance of ChallengeManger which only maps endpoints to challenges based on the responses which have been added the manager.
NewTokenHandler creates a new AuthenicationHandler which supports fetching tokens from a remote token server.
NewTokenHandlerWithOptions creates a new token handler using the provided options structure.
ParseAPIVersion parses an API version string into an APIVersion Format (Expected, not enforced): API version string = <API type> '/' <API version> API type = [a-z][a-z0-9]* API version = [0-9]+(\.[0-9]+)? TODO(dmcgowan): Enforce format, add error condition, remove unknown type.
ResponseChallenges returns a list of authorization challenges for the given http Response.
# Variables
ErrNoBasicAuthCredentials is returned if a request can't be authorized with basic auth due to lack of credentials.
ErrNoToken is returned if a request is successful but the body does not contain an authorization token.
# Structs
APIVersion represents a version of an API including its type and version number.
Challenge carries information from a WWW-Authenticate response header.
RepositoryScope represents a token scope for access to a repository.
TokenHandlerOptions is used to configure a new token handler.
# Interfaces
AuthenticationHandler is an interface for authorizing a request from params from a "WWW-Authenicate" header for a single scheme.
ChallengeManager manages the challenges for endpoints.
CredentialStore is an interface for getting credentials for a given URL.
Scope is a type which is serializable to a string using the allow scope grammar.