You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compared with the basic auth method there is no check to validate the Access Token while executing the jf config add --access-token.
If a user enters a wrong token there is no message returned by the jf cli, it may confuse the user later while executing a command requiring authentication.
When we add a new configuration with a bad access token, an error message should appear indicating that the credentials are bad as the basic authentication method.
jf config add --user pvmk05211 --access-token bad-token --url https://my-artifactory.url/ test
[🚨Error] The following error was received while trying to encrypt your access token: Artifactory response: 401 Unauthorized
{
"errors": [
{
"status": 401,
"message": "Bad credentials"
}
]
}
JFrog CLI version
2.29.2
Operating system type and version
Windows 10
JFrog Artifactory version
7.41.7
JFrog Xray version
3.55.2
The text was updated successfully, but these errors were encountered:
Describe the bug
Compared with the basic auth method there is no check to validate the Access Token while executing the jf config add --access-token.
If a user enters a wrong token there is no message returned by the jf cli, it may confuse the user later while executing a command requiring authentication.
Current behavior
Reproduction steps
jf rt go-config
. Select the test configuration with the bad access-token.An error should appear, indicating that the identifier is incorrect for retrieving the list of repositories:
Expected behavior
When we add a new configuration with a bad access token, an error message should appear indicating that the credentials are bad as the basic authentication method.
JFrog CLI version
2.29.2
Operating system type and version
Windows 10
JFrog Artifactory version
7.41.7
JFrog Xray version
3.55.2
The text was updated successfully, but these errors were encountered: