forked from TrueCloudLab/distribution
fix: typo
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
This commit is contained in:
parent
38beeee2c8
commit
a4918b67bb
2 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ type Manager interface {
|
||||||
|
|
||||||
// AddResponse adds the response to the challenge
|
// AddResponse adds the response to the challenge
|
||||||
// manager. The challenges will be parsed out of
|
// manager. The challenges will be parsed out of
|
||||||
// the WWW-Authenicate headers and added to the
|
// the WWW-Authenticate headers and added to the
|
||||||
// URL which was produced the response. If the
|
// URL which was produced the response. If the
|
||||||
// response was authorized, any challenges for the
|
// response was authorized, any challenges for the
|
||||||
// endpoint will be cleared.
|
// endpoint will be cleared.
|
||||||
|
|
|
@ -29,9 +29,9 @@ var (
|
||||||
const defaultClientID = "registry-client"
|
const defaultClientID = "registry-client"
|
||||||
|
|
||||||
// AuthenticationHandler is an interface for authorizing a request from
|
// AuthenticationHandler is an interface for authorizing a request from
|
||||||
// params from a "WWW-Authenicate" header for a single scheme.
|
// params from a "WWW-Authenticate" header for a single scheme.
|
||||||
type AuthenticationHandler interface {
|
type AuthenticationHandler interface {
|
||||||
// Scheme returns the scheme as expected from the "WWW-Authenicate" header.
|
// Scheme returns the scheme as expected from the "WWW-Authenticate" header.
|
||||||
Scheme() string
|
Scheme() string
|
||||||
|
|
||||||
// AuthorizeRequest adds the authorization header to a request (if needed)
|
// AuthorizeRequest adds the authorization header to a request (if needed)
|
||||||
|
|
Loading…
Reference in a new issue