When creating Access Token for example for existing/none existing user with deployment operations on RHEL7 everything works properly.
However, when trying to use the same Access Token on RHEL6 machine using YUM client 3.2.29, it will result with status 401, and "Bad credentials":
"errors" : [
[root@sai-centos-6 6]# yum install libfa1
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
https://<username>:<access_token>@jfrog.io/artifactory/rpm-local/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Artifactory. Please verify its path and try again
Steps to reproduce are simple:
1. Create a user(can be admin or with just read permissions on rpm-local).
2. Create an access token using curl on RHEL6 machine. Apply that token in your yum config.
3. Resolve an artifact existing in the repository, using the yum client(3.2.29).
4. On RHEL6 machine, you will get error 401.