Merge pull request #4445 from tonistiigi/auth-refactor

docker: split private token helper functions to reusable pkg
This commit is contained in:
Derek McGowan
2020-08-25 12:25:23 -07:00
committed by GitHub
4 changed files with 317 additions and 239 deletions

View File

@@ -41,10 +41,6 @@ import (
)
var (
// ErrNoToken is returned if a request is successful but the body does not
// contain an authorization token.
ErrNoToken = errors.New("authorization server did not include a token in the response")
// ErrInvalidAuthorization is used when credentials are passed to a server but
// those credentials are rejected.
ErrInvalidAuthorization = errors.New("authorization failed")