_auth no longer compatible with Artifactory because of npm v9

XMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Component/s: pipeline-npm-plugin
    • None
    • Environment:
      Plugin version: 0.9.2

      In the current version of the pipline-npm-plugin the generated npmrc file is not compatible with the version artifactory is using (npm v9).

      The old syntax for the authentication of:
      _auth=<username>:<password> (As base64)
      does no longer work.
      The new format required is
      //<registry-url>:_auth=<username>:<password> (As base64)

      as mentioned in this post by jfrog:
      https://jfrog.com/knowledge-base/artifactory-changes-to-the-login-behavior-in-npm-v9/

      As a suggestion I'd recommend that a templating syntax is added for how the _auth is constructed so both formats are possible.

      Here additionally a screenshot of the received error message:

            Assignee:
            Valentin Delaye
            Reporter:
            Carlo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: