containerd/remotes
Akihiro Suda 97623ab0cd
remotes/docker: allow fetching "refresh token" (aka "identity token")
The new AuthorizerOpt `WithFetchRefreshToken` allows fetching "refresh token"
(aka "identity token", "offline token").

For HTTP GET mode (`FetchToken`), `offline_token=true` is set in the request.
https://docs.docker.com/registry/spec/auth/token/#requesting-a-token

For HTTP POST mode (`FetchTokenWithOAuth`), `access_type=offline` is set in the request.
https://docs.docker.com/registry/spec/auth/oauth/#getting-a-token

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2021-12-27 15:19:45 +09:00
..
docker remotes/docker: allow fetching "refresh token" (aka "identity token") 2021-12-27 15:19:45 +09:00
errors refactor: move from io/ioutil to io and os package 2021-09-21 09:50:38 +08:00
handlers_test.go Word spelling correction 2019-09-25 16:49:54 +08:00
handlers.go Fix PushHandler cannot push image that contains duplicated blobs 2021-04-20 14:00:53 +09:00
resolver.go Fix PushHandler cannot push image that contains duplicated blobs 2021-04-20 14:00:53 +09:00