Login to npm Enterprise using GitLab credentials
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

npme-auth-gitlab

Login to npm Enterprise using GitLab credentials

Based on GitLab's API

To install on your npm Enterprise instance:

  1. cd /usr/local/lib/npme/data (or the directory configured for Miscellaneous data files in the admin console)

  2. sudo npm i npme-auth-gitlab

  3. 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" is false.

  4. 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

  5. Save settings and use the prompt to restart the appliance. Done!