docker_registry2 icon indicating copy to clipboard operation
docker_registry2 copied to clipboard

Allow passing token for authentication

Open jonathongardner opened this issue 4 years ago • 1 comments

Sometimes I don't want to store/pass my credentials to docker registry, It would be helpful if i could just pass the bearer token manually

DockerRegistry2.connect("https://registry", { bearer_token: "my-token" })

jonathongardner avatar Jun 15 '21 18:06 jonathongardner

Interesting. connect() supports options, so that API already is there. You would need to add it to initalize to save it and then change doreq to use it properly.

Open to a PR on it.

deitch avatar Jun 23 '21 09:06 deitch