Atlassian Stash authentication and authorization strategy for npm Enterprise.
Clone or download
Pull request Compare This branch is 19 commits ahead of eskypl:master.
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.
stash
test
.gitignore
.npmignore
CHANGELOG.md
LICENSE.md
README.md
authenticator.js
authorizer.js
index.js
package.json
session.js

README.md

npme-auth-atlassian-stash

Atlassian Stash authentication and authorization strategy for npm Enterprise.

Installation

Install npme-auth-atlassian-stash in npme's data directory by default this can be found in /usr/local/lib/npme/data.

npm install @bcoe/npme-auth-atlassian-stash

Configuration

This module will use stash.json which you should create in npme's data directory (by default this can be found in /usr/local/lib/npme/data).

{
  "host": "https://stash.domain.com",
  "user": "npme",
  "pass": "npmepass",
  "logFile": "/etc/npme/data/npme-auth-atlassian-stash.log",
  "logLevel": "info"
}
  • host: your Stash repository
  • name: admin stash user login used for Basic authorization
  • pass: admin stash user password
  • logFile: location of module log file
  • logLevel: logging level

Stash user

npme-auth-atlassian-stash will use the admin Stash account to get information about users, groups, projects and repositories. This account should be created only for the purpose of npme-auth-atlassian-stash and should have administrative privileges to be able to acquire needed information.

License

Copyright (c) 2015 eSKY.pl S.A. (http://it.esky.pl)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.