djmattyg007 / dreg-client

API client for Docker Registries
https://pypi.org/project/dreg-client
Apache License 2.0
7 stars 4 forks source link

Automate bearer authentication #1

Open bdabelow opened 2 years ago

bdabelow commented 2 years ago

It would be possible to automate the authentication further by parsing the Www-Authenticate header of an initial request to the base URL to retrieve the the authentication URL and service. See: https://gist.github.com/bdabelow/d2360b03c83a20c03848107926399d35

I could work on a PR to implement if you are interested.

djmattyg007 commented 2 years ago

I would be happy to review a PR that implements this functionality :)