containerd/remotes
Derek McGowan 51c9ffe468
remotes: add handling for missing basic auth credentials
When a credential handler is provided but no basic auth credentials
are provided, handle the error specifically rather than treating
the credentials as not implemented. This allows a clearer error to
be provided to users rather than a confusing not implemented error
or generic unauthorized error.

Add unit tests for the basic auth case.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2023-10-13 12:42:19 -07:00
..
docker remotes: add handling for missing basic auth credentials 2023-10-13 12:42:19 -07:00
errors Improve ErrUnexpectedStatus default string 2022-03-07 09:46:25 +01:00
handlers_test.go go.mod: github.com/opencontainers/image-spec v1.1.0-rc3 2023-05-09 23:35:58 +09:00
handlers.go remotes: simplify mediatype logic 2023-09-27 13:12:56 -06:00
resolver.go remotes: allow FetchByDigest client to pass mediatype as header 2023-06-27 16:36:01 +08:00