eyeos-principal

0.0.324 • Public • Published

Eyeos Principal Library

Overview

eyeos-principal is a library to manage the Principal and related entities (eg. SystemGroups).

How to use it

var PrincipalProvider = require('eyeos-principal');
var principalProvider = new PrincipalProvider();
principalProvider.getPrincipalById('principalId', function(err, principal) {
    console.log(principal.getPermissions());
});

Notes for development mode

If you want (for development purposes only) to enable all permissions in EVERYONE SystemGroup:

export EYEOS_PRINCIPAL_ENABLE_ALL_PERS_EVERYONE=true

For this to take effect the envar must be set in whatever services are initializing EVERYONE SystemGroup WITH AN EMPTY MONGODB. Currently (apr 215) principalService is the only one initializing EVERYONE and ADMINISTRATOR workgroups.

Quick help

  • Install modules
    $ npm install
  • Check tests
    $ ./tests.sh

Readme

Keywords

none

Package Sidebar

Install

npm i eyeos-principal

Weekly Downloads

16

Version

0.0.324

License

AGPL-3.0

Last publish

Collaborators

  • eyeos