# Functions
ErrorInvalidBearerToken is convenient wrapper around NewWWWAuthenticateError.
IsToken returns true if and only if val is a valid token as per https://tools.ietf.org/html/rfc7230.
No description provided by the author
IsTokenRune returns true if and only if r can be part of a sequence of characters that is a valid token as per https://tools.ietf.org/html/rfc7230.
NewBearerAuthorizer is an Authorizer for the Bearer authentication scheme defined in https://tools.ietf.org/html/rfc6750 and defines the authorization of a single realm (https://tools.ietf.org/html/rfc2617).
NewWWWAuthenticateError returns an error that can be used to control WWW-Authenticate response headers.
No description provided by the author
No description provided by the author
No description provided by the author
ValidateBearerChallenge validates a challenge as per https://tools.ietf.org/html/rfc6750.
ValidateFormattableAsQuotedPair returns nil iff val can be formatted as a quoted pair (as defined in https://tools.ietf.org/html/rfc7230) that parses into val.
WriteQuotedPair writes a quoted-pair production as defined in https://tools.ietf.org/html/rfc7230 that parses into val to sb.
# Constants
No description provided by the author
AuthenticationSchemeBearer is the Bearer authentication scheme as defined by https://tools.ietf.org/html/rfc6750.
HeaderNameAuthorization is the name of the Authorization header.
HeaderNameWWWAuthenticate is the name of the WWW-Authenticate header.
# Structs
Challenge is part of a WWWAuthenticate error.
Param represents a parameter that is commonly part of header values.
Range represents an RFC7233 (suffix) byte range spec.
WWWAuthenticateError is an error used to control WWW-Authenticate response headers.
# Interfaces
Authorizer is a service that authorizes requests.
# Type aliases
BearerTokenAuthorizer is a function that authorizes a token.