Search code examples
securitygradleartifactory

Testing Artifactory Credentials


Is there a way to test artifactory credentials and if I can successfully access a repository? running from the command line I cannot see if the credentials are used and from a browser with the ?trace appended to the url denies the anonymous user access.


Solution

  • You could make use of the Artifactory REST API to test your credentials. Access it from the command line via the curl command:

    curl -u myUser:myP455w0rd! -X GET "http://<artifactory-url>:8080/artifactory/api/build"
    

    If your credentials are correct, this should show you all builds in Artifactory.