DockerCLI/vendor/github.com
Laura Brehm fcfdd7b91f
auth: add support for oauth device-code login
This commit adds support for the oauth [device-code](https://auth0.com/docs/get-started/authentication-and-authorization-flow/device-authorization-flow)
login flow when authenticating against the official registry.

This is achieved by adding `cli/internal/oauth`, which contains code to manage
interacting with the Docker OAuth tenant (`login.docker.com`), including launching
the device-code flow, refreshing access using the refresh-token, and logging out.

The `OAuthManager` introduced here is also made available through the `command.Cli`
interface method `OAuthManager()`.

In order to maintain compatibility with any clients manually accessing
the credentials through `~/.docker/config.json` or via credential
helpers, the added `OAuthManager` uses the retrieved access token to
automatically generate a PAT with Hub, and store that in the
credentials.

Signed-off-by: Laura Brehm <laurabrehm@hey.com>
2024-08-14 19:48:04 +01:00
..
Azure/go-ansiterm vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
Microsoft/go-winio vendor: github.com/containerd/platforms v0.2.1 2024-06-12 00:57:47 +02:00
beorn7/perks vendor with go mod 2021-12-16 21:16:01 +01:00
cenkalti/backoff/v4 cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
cespare/xxhash/v2 vendor: github.com/cespare/xxhash/v2 v2.2.0 2023-07-20 00:21:37 +02:00
containerd vendor: docker/docker 2b1097f08088 (removes containerd dependency) 2024-07-25 14:57:30 +02:00
creack/pty vendor: github.com/creack/pty v1.1.21 2024-01-08 10:22:09 +01:00
distribution/reference vendor: github.com/distribution/reference v0.6.0 2024-06-08 23:20:52 +02:00
docker vendor: github.com/docker/docker 2269acc7a31d (master, v-next) 2024-08-08 13:37:58 +02:00
felixge/httpsnoop vendor: github.com/felixge/httpsnoop v1.0.4 2023-12-12 16:22:47 +01:00
fvbommel/sortorder vendor: github.com/fvbommel/sortorder v1.1.0 2024-07-01 13:10:44 +02:00
go-jose/go-jose/v3 auth: add support for oauth device-code login 2024-08-14 19:48:04 +01:00
go-logr cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
go-viper/mapstructure/v2 vendor: migrate to github.com/go-viper/mapstructure/v2 v2.0.0 2024-06-06 00:05:45 +02:00
gogo/protobuf Set buildx as default builder 2022-02-03 10:38:05 +01:00
golang/protobuf vendor: google.golang.org/protobuf v1.33.0, github.com/golang/protobuf v1.5.4 2024-03-16 16:41:42 +01:00
google vendor: github.com/google/go-cmp v0.6.0 2024-01-08 10:25:45 +01:00
gorilla/mux vendor: github.com/gorilla/mux v1.8.1 2023-12-01 16:12:20 +01:00
grpc-ecosystem/grpc-gateway/v2 cli: add otel sdk tracing and metric providers to the core cli 2024-03-25 11:11:34 -05:00
inconshreveable/mousetrap vendor: github.com/inconshreveable/mousetrap v1.1.0 2022-12-27 13:45:16 +01:00
klauspost/compress vendor: github.com/klauspost/compress v1.17.9 2024-07-04 09:32:06 +02:00
mattn/go-runewidth vendor: github.com/mattn/go-runewidth v0.0.14 2023-05-05 02:37:12 +02:00
matttproud/golang_protobuf_extensions vendor with go mod 2021-12-16 21:16:01 +01:00
miekg/pkcs11 vendor: github.com/miekg/pkcs11 v1.1.1 2022-04-30 12:01:33 +02:00
moby vendor: github.com/docker/docker 2269acc7a31d (master, v-next) 2024-08-08 13:37:58 +02:00
morikuni/aec vendor with go mod 2021-12-16 21:16:01 +01:00
opencontainers vendor: github.com/opencontainers/image-spec v1.1.0 2024-05-31 16:10:21 +02:00
pkg auth: add support for oauth device-code login 2024-08-14 19:48:04 +01:00
prometheus vendor: github.com/prometheus/procfs v0.15.1 2024-07-16 18:46:30 +02:00
rivo/uniseg use our own version of text/tabwriter 2022-04-25 15:01:41 +02:00
sirupsen/logrus vendor: github.com/sirupsen/logrus v1.9.3 2023-06-12 11:21:25 +02:00
spf13 vendor: github.com/spf13/cobra v1.8.1 2024-06-18 21:52:58 +02:00
theupdateframework/notary vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
tonistiigi/go-rosetta vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
xeipuuv vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00