npme-auth-single-user
v1.0.3
Published
A particular auth-strategy for npm Enterprise.
Downloads
3
Readme
NPME-AUTH-SINGLE-USER
This is a simple auth package to be used with NPM Enterprise.
It essentially sets up Basic Auth with a single user, and is adapted from: https://github.com/bcoe/npme-auth-foo
To use, ssh into your NPME instance and navigate to the directory of your
"Miscellaneous data files" directory (defaults to /usr/local/lib/npme/data
) and run:
sudo npm install npme-auth-single-user
sudo vim auth.json
auth.json
should be populated with values as so:
{
"user": "username",
"password": "secret-password",
"token": "unique-token"
}
Then, in the Settings of the admin console, select Custom for the Authentication method and enter the values:
/etc/npme/data/node_modules/npme-auth-single-user
for Authorizer and Authenticator, and redis
for Session.
Then save the settings and restart NPME.
You should then be able to login via npm login --registry=https://my-registry.com
with the user/pass combo you set in auth.json
.