Skip to content

Commit

Permalink
Update Token-BasicAuth.md to use accept header for Manifest (#764)
Browse files Browse the repository at this point in the history
To be able to download Manifest - need to use  -H "Accept:application/vnd.oci.image.manifest.v1+json" header, otherwise such error could be observed:
{"errors":[{"code":"MANIFEST_UNKNOWN","message":"OCI manifest found, but accept header does not support OCI manifests"}]}
  • Loading branch information
andrejusc authored Sep 17, 2024
1 parent 6ed1866 commit f821e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Token-BasicAuth.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ Here's how a call to the `GET /v2/hello-world/manifests/latest` API of the given
```bash
export registry="contosoregistry.azurecr.io"
export acr_access_token="eyJ...xcg"
curl -v -H "Authorization: Bearer $acr_access_token" https://$registry/v2/hello-world/manifests/latest
curl -v -H "Authorization: Bearer $acr_access_token" -H "Accept:application/vnd.oci.image.manifest.v1+json" https://$registry/v2/hello-world/manifests/latest
```
This should result in a status 200 OK.

0 comments on commit f821e5b

Please sign in to comment.