Katello docker repo does not sync with private Azure registry

we have setup a Katello docker repositories for our project, with its upstream repository URL pointing to private Azure docker registry containing the master files. For credential we are using username and token issued for Azure registry.
We are trying to use sync function of Katello to download the containers from the Azure docker registry where the master files are staged. However, we are getting the following error from katello which indicates that received bearer token from Azure is not valid. I have copied the error logs below.

Note1: we experimented the same thing with dockerhub private repository and we were able to successfully to synchronize. Is there a known OAUTH compatibility issue between Katello and Azure registry?
Note2: we are able to use the same username/token from Azure registry to successfully download the files using docker pull command. So the credentials are good.

Expected outcome:
Upon clicking sync button on Foreman/Katello GUI, we expect katello authenticate to Azure registry using the specified token and username, and download the specified containers .
Foreman and Proxy versions:
Foreman version : 2.2.1 and Katello version: 3.16
Foreman and Proxy plugin versions:

Distribution and version:

Other relevant data:

here is the error log we obtained from Foreman/Katello GUI



“options”=> {“smart_proxy_id”=>1, “repo_id”=>20, “source_url”=>nil, “options”=>{}},


“error”=> {“traceback”=>
" File “/usr/lib/python3.6/site-packages/rq/worker.py”, line 822, in perform_job\n" +
" rv = job.perform()\n" +
" File “/usr/lib/python3.6/site-packages/rq/job.py”, line 605, in perform\n" +
" self._result = self._execute()\n" +
" File “/usr/lib/python3.6/site-packages/rq/job.py”, line 611, in _execute\n" +
" return self.func(*self.args, **self.kwargs)\n" +
" File “/usr/lib/python3.6/site-packages/pulp_container/app/tasks/synchronize.py”, line 44, in synchronize\n" +
" dv.create()\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/declarative_version.py”, line 149, in create\n" +
" loop.run_until_complete(pipeline)\n" +
" File “/usr/lib64/python3.6/asyncio/base_events.py”, line 484, in run_until_complete\n" +
" return future.result()\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py”, line 209, in create_pipeline\n" +
" await asyncio.gather(*futures)\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/plugin/stages/api.py”, line 43, in call\n" +
" await self.run()\n" +
" File “/usr/lib/python3.6/site-packages/pulp_container/app/tasks/sync_stages.py”, line 59, in run\n" +
" await list_downloader.run(extra_data={‘repo_name’: repo_name})\n" +
" File “/usr/lib/python3.6/site-packages/pulpcore/download/base.py”, line 221, in run\n" +
" return await self._run(extra_data=extra_data)\n" +
" File “/usr/lib/python3.6/site-packages/backoff/_async.py”, line 133, in retry\n" +
" ret = await target(*args, **kwargs)\n" +
" File “/usr/lib/python3.6/site-packages/pulp_container/app/downloaders.py”, line 75, in _run\n" +
" await self.update_token(response_auth_header, this_token, repo_name)\n" +
" File “/usr/lib/python3.6/site-packages/pulp_container/app/downloaders.py”, line 133, in update_token\n" +
" self.registry_auth[‘bearer’] = json.loads(token_data)[‘token’]\n",
[{“message”=>“Downloading tag list”,
“done”=>0}, {“message”=>“Downloading Artifacts”,
“done”=>0}, {“message”=>“Associating Content”,
“poll_attempts”=>{“total”=>10, “failed”=>1}}


Katello::Errors::Pulp3Error: ‘token’