acl-elasticsearch
Elasticsearch backend for acl
Last updated 3 years ago by bloublou2014 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install acl-elasticsearch 
SYNC missed versions from official npm registry.

#NODE ACL - Elasticsearch backend This fork adds Elasticsearch backend support to NODE ACL

based on thomsonreuters work

##Installation

Using npm:

npm install acl-elasticsearch

This version is using a modified version of node_acl to provide general function to get all users, roles or parentRoles. Version 0.2.0 includes elasticsearch 5.x support.

##Usage

Create acl module by requiring it and instantiating it with Elasticsearch backend instance:

// require Elasticsearch and get instance to firebase path

// require acl and create Firebase backend
let acl = require('acl');
acl = new acl(new acl.elasticsearchBackend({
                                               host: 'localhost:9200',
                                               index: 'node_acl',
                                               prefix: 'myPrefix'
                                           }));

##Documentation See NODE ACL documentation

##License

(The MIT License)

Copyright (c) 2016 BlouBlou2014 bloublou2014@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Current Tags

  • 0.2.2                                ...           latest (3 years ago)

6 Versions

  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 4
Dependencies (4)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |