Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ankitjain28may/verdaccio-groups
https://github.com/ankitjain28may/verdaccio-groups
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ankitjain28may/verdaccio-groups
- Owner: ankitjain28may
- License: mit
- Created: 2020-01-08T13:46:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-27T02:35:08.000Z (over 2 years ago)
- Last Synced: 2024-08-09T12:11:10.780Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# verdaccio-groups
[![npm version](https://badge.fury.io/js/verdaccio-groups.png)](https://badge.fury.io/js/verdaccio-groups)
[![npm](https://img.shields.io/npm/dt/verdaccio-groups.svg)](https://www.npmjs.com/package/verdaccio-groups)Verdaccio Plugin to handle dynamic groups in package access specification, a kind of authorization level over authentication. Inspired from the [verdaccio-groupnames
](https://github.com/deinstapel/verdaccio-groupnames) plugin.## Installation
```bash
$ npm i -g verdaccio-groups
```## Configuration
```yaml
# /verdaccio/conf/people.yaml
groups:
admin:
- ankitjain28may
developer:
- Jack
- Jon# config.yaml
auth:
groups:
file: /verdaccio/conf/people.yaml
# Add other authentication plugins here
packages:
'@*/*':
access: developer admin
publish: admin
unpublish: admin
```The above configuration will allow access, when the user is a member of the scope of the npm package.
For example, when user `Jack`, member of group `developer`, has only read access to packages in `@*/*` but not the access of publish and unpublish while the user under group `admin` has all the access.