optiopay / klar

Integration of Clair and Docker Registry
MIT License
506 stars 138 forks source link

Fix Azure ACR access with Bearer auth #178

Open elstak opened 3 years ago

elstak commented 3 years ago

Changed marshalling to be unstructured hence more flexible for any JSON responses using attribute names other than token (given by Docker Hub for instance). Azure ACR returns Bearer token in a response with the attribute access_token. Other expected attribute token patterns may be added for other supported registries not following any of these.

Liked to issue #157.