NODE ACL - ArangoDB backend
This fork adds ArangoDB backend support to NODE ACL
Status
Installation
Using npm:
npm install acl-arangodb
Usage
Download and install ArangoDB Start ArangoDB with default configuration. Create ArangoDB database object in your node.js application. Create acl module and instantiate it with ArangoDB backend, passing the ArangoDB object into the backend instance.
// require arangojsvar arangojs = ;// Defaults to localhost and '_system' database. See arangojs documentation for configuration optionsvar db = ;// Set the database for your ACL. Note: You must create the database if it doesn't exist already.db; // require acl and create ArangoDB backendvar Acl = ;// Doesn't set a 'prefix' for collections and separates buckets into multiple collections.acl = db; // Alternatively, set a prefix and combined buckets into a single collectionacl = db 'acl_' true;
Testing
Tested using acl's tests runner against ArangoDB v3.0.3