From a4918b67bbe4f2bdf870bb6fad345529555f107e Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 4 Mar 2024 11:00:08 +0800 Subject: [PATCH] fix: typo Signed-off-by: guoguangwu --- internal/client/auth/challenge/authchallenge.go | 2 +- internal/client/auth/session.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/client/auth/challenge/authchallenge.go b/internal/client/auth/challenge/authchallenge.go index 34684dd5..4d26e568 100644 --- a/internal/client/auth/challenge/authchallenge.go +++ b/internal/client/auth/challenge/authchallenge.go @@ -72,7 +72,7 @@ type Manager interface { // AddResponse adds the response to the challenge // 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 // response was authorized, any challenges for the // endpoint will be cleared. diff --git a/internal/client/auth/session.go b/internal/client/auth/session.go index 9669dfd0..104290ab 100644 --- a/internal/client/auth/session.go +++ b/internal/client/auth/session.go @@ -29,9 +29,9 @@ var ( const defaultClientID = "registry-client" // 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 { - // Scheme returns the scheme as expected from the "WWW-Authenicate" header. + // Scheme returns the scheme as expected from the "WWW-Authenticate" header. Scheme() string // AuthorizeRequest adds the authorization header to a request (if needed)