1.0.11 • Published 5 years ago
js-rbac v1.0.11
JS-RBAC
A middleware to authorizer paths with Vault, main functions as READ, WRITE, DELETE, LIST.
Depends on
Quickstart
const rbac = new RBAC(options)
rbac.initialize();
// return bool
const granted = rbac.authorizer(headers, method, path);
Test
$ git clone git@github.com:bedu-hq/js-rbac.git
$ cd project & npm install
$ yarn build
$ yarn test