Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-16504

CONAN: conan user login fails with access tokens - but the other endpoints works


    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.10.3
    • Fix Version/s: None
    • Component/s: Conan


      I am trying to use conan with a access token created by doing a API call like this:

      curl -XPOST -uuser:password https://artifactory.plex/artifactory/api/security/token?scope=members-of-group:conan-access&username=test-conan

      This gives me a token that is long and starts with ey. For other repositories (like npm and pipy) this token works just fine as either a username/password combo or a header "Authorization: Bearer <token>".

      Now this doesn't work with conan, if I try to use this user/password with conan user I'll get the following error:

      ERROR: Wrong user or password. [Remote: test]

      I digged a bit deeper and it seems like this token can be used with the actual conan api endpoints:

      curl -uconan-deploy-no-overwrite:eyTokenHere https://artifactory.plex/artifactory/api/conan/conan-test/v1/conans/search

      actually works and returns the values expected there. It also works with that api call if I set it in the http authorization header. So clearly the token is valid for the repo - just not the auth endpoint.

      Using a API token works just fine for this.




            • Assignee:
              tobiashieta Tobias Hieta
            • Votes:
              1 Vote for this issue
              2 Start watching this issue


              • Created: