Reputation: 608
Using the below command to push the Artifact to the JFrog Artifactory Server
curl -v --user username:password -X PUT urlGoesHere --data-binary fileToBeDeployed
The thing is that it looks the Artifactory Server been set to use the Secure Password. I used the Encrypted Password and placed in the above command and ran it.
Even after using the secure password, I am getting the error message as below
"errors" : [ {
"status" : 401,
"message" : "Artifactory configured to accept only encrypted passwords but received a clear text password."
} ]
What am I missing? Any Idea?
Upvotes: 4
Views: 15054
Reputation: 326
According to the REST API documentation, there is 3 methods to authentifie a user:
username and raw password (a bad idea):
curl -v --user username:rawpassword -X PUT urlGoesHere --data-binary fileToBeDeployed
username and api key:
curl -v --user username:apikey -X PUT urlGoesHere --data-binary fileToBeDeployed
api key only:
curl -v -H "X-JFrog-Art-Api:apikey" -X PUT urlGoesHere --data-binary fileToBeDeployed
Documentation:
Rest API (there is some examples with curl): https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API
Create an API key: https://www.jfrog.com/confluence/display/RTF/Updating+Your+Profile#UpdatingYourProfile-APIKey
Upvotes: 13