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

    XMLWordPrintable

    Details

    • Severity:
      Medium

      Description

      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.

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              tobiashieta Tobias Hieta
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-16504 -
                  SYNCHRONIZED
                  • Last Sync Date: