npme-auth-gitlab
v0.1.2
Published
Login to npm Enterprise using GitLab credentials
Downloads
5
Readme
npme-auth-gitlab
Login to npm Enterprise using GitLab credentials
Based on GitLab's API
To install on your npm Enterprise instance:
cd /usr/local/lib/npme/data
(or the directory configured for Miscellaneous data files in the admin console)sudo npm i npme-auth-gitlab
sudo touch gitlab.json
and populate it with data like the following:{ "url": "https://gitlab.example.com", "strictSSL": false }
Point the
"url"
to your GitLab instance. If it's using https with a self-signed cert, then make sure"strictSSL"
isfalse
.Go to your npm Enterprise admin console (on port 8800 of your server), go to Settings, select Custom for Authentication, and populate each plugin value as
/etc/npme/data/node_modules/npme-auth-gitlab
Save settings and use the prompt to restart the appliance. Done!