Uploaded image for project: 'Magnolia Light Module Maven Plugin'
  1. Magnolia Light Module Maven Plugin
  2. LMPLUGIN-8

Allow reading the npm auth-token from .npmrc

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Neutral
    • 1.0.1
    • 1.0
    • None
    • Basel 43
    • 1

    Description

      Even after the final release of nexus3 it seems the user-token authentication used in nexus2 does not seem to work properly or the realm has changed. Either way adding the possibility to use the npm Bearer token is a legit use case, so you can use the generated '.npmrc' file for obtaining the auth token generated by:

      npm login --registry=https://npm.magnolia-cms.com/repository/npm-internal/
      

      Note: the tailing '/' is important. Otherwise it will add an entry with 'https://npm.magnolia-cms.com/repository' in .npmrc. Weird..

      Reference:
      http://blog.npmjs.org/post/118393368555/deploying-with-npm-private-modules
      https://books.sonatype.com/nexus-book/reference/usertoken.html (nexus 2)
      https://books.sonatype.com/nexus-book/3.0/reference/security.html#realms (nexus 3)

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ejervidalo Espen Jervidalo
              ejervidalo Espen Jervidalo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 0.5h
                  0.5h