[LMPLUGIN-8] Allow reading the npm auth-token from .npmrc Created: 22/Apr/16  Updated: 11/May/16  Resolved: 10/May/16

Status: Closed
Project: Magnolia Light Module Maven Plugin
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0.1

Type: New Feature Priority: Neutral
Reporter: Espen Jervidalo Assignee: Espen Jervidalo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.5h
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Sprint: Basel 43
Story Points: 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)


Generated at Mon Feb 12 06:00:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.