Skip to content

Commit

Permalink
re-add DefaultAuthHandler comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nemezo committed Nov 6, 2024
1 parent efabfca commit dd75d7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ func GetPullOptions(imageName string) (image.PullOptions, error) {
}, nil
}

// DefaultAuthHandler will be invoked if an AuthConfig is rejected
// It could be used to return a new value for the "X-Registry-Auth" authentication header,
// but there's no point trying again with the same value as used in AuthConfig
func DefaultAuthHandler(ctx context.Context) (string, error) {
log.Debug("Authentication request was rejected. Trying again without authentication")
return "", nil
Expand Down

0 comments on commit dd75d7c

Please sign in to comment.