I'm trying to use the Artifactory search REST API to retrieve an artifact. When I just flat-out download, that works, but when I try "GET" REST API with search parameter (similar to this Stack Overflow question except I use access token instead of "API key"; also similar to the PUT operation shown in this "Using cURL with the REST API" example here ), it seems to reject my credentials:
WORKS:
429-$ *curl --user ${ART_USER}:${ART_TOKEN} -O ${ARTIFACTORY_URL}/${CLIENT_REPO}/code_sign/${ARTIFACT_NAME}*% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 97 100 97 0 0 1158 0 --:--:-- --:--:-- --:--:-- 1347
FAILS:
430-$ *curl --user ${ART_USER}:${ART_TOKEN} -X GET "${ARTIFACTORY_URL}/api/search/artifact?name=${ARTIFACT_NAME}&repos=${CLIENT_REPO}"*
{"errors" : [ {"status" : 401,"message" : "Token failed verification: parse"} ]}
This access token article seems to say that all token are scoped to allow REST API use.
Any ideas?