acr icon indicating copy to clipboard operation
acr copied to clipboard

Import image fails when parameter 'scope' is missing in source registry's auth challenge

Open avtakkar opened this issue 5 years ago • 0 comments

Describe the bug Import requires a scope for bearer authentication. When the source registry's auth challenge does not include a scope parameter, it fails. scope should be optional.

To Reproduce Steps to reproduce the behavior:

az acr import --name myregistry --source registry.redhat.io/openjdk/openjdk-11-rhel8:1.3   -u '--'  -p  '--' --image openjdk/openjdk-11-rhel8:1.3

Expected behavior Successful image import.

Actual behavior

Invalid message Unauthorized Unauthorized {"errors":[{"code":"UNAUTHORIZED","message":"Access to the requested resource is not authorized"}]}

avtakkar avatar Aug 12 '20 06:08 avtakkar