pebble-acl
Access Controller designed to be plugged on top of meanjs framework.
Disclaimer
The module has been designed to be used across various applications. Primarily, its been written at 10Pearls, LLC
and the team at 10Pearls, LLC
will solely be overtaken for all the changes. Due to the reason, they are open to change, modify, deprecate or remove any feature / task / bug / functionality anytime based upon the sole discretion.
Install
Simple as enough,
$ npm install pebble-acl --save
Usage
Initially, you have to populate your data source with Roles, Resources and HTTP verbs respectively. The adapters (currently, only redis
is available) would take care of manipulation, referring to parent abstract adapter.
Population.
var acl = Adapter = aclAdapterRedisAdapter Builder = aclBuilder async = ; // initialize builder. var builder = {}; // add role. builder; // Multi addRole. async;
Permissions
You could use the Permissions API to check for access across entities.
var acl = Adapter = aclAdapterRedisAdapter Permission = aclPermissions; var permissions = ); // You could pass the argument of {} to adapter. permissions; permissionsall'admin' { // access carries key as resource and values as allowed methods. };
Contributors
License
MIT