optiopay / klar

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

Fix Azure ACR access with Bearer auth #177

Closed elstak closed 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.

elstak commented 3 years ago

Liked to issue https://github.com/optiopay/klar/issues/157