rf-acl
Express middleware for acl based on tokens for Rapidfacture apps. Session and Session Secret from Db.
Last updated a year ago by felix_furtmayr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rf-acl 
SYNC missed versions from official npm registry.

rf-acl

ACL Module for Rapidfacture Apps

  • fetches session secret from db
  • fetches session (user, groups, right) of the users and stores them in memory
  • provide "basic-config" Acess Point

Getting Started

npm install rf-acl


// prepare backend
var config = require('rf-config').init(__dirname); // config
var http = require('rf-http').start({ // webserver
   pathsWebserver: config.paths.webserver,
   port: config.port
});
var API = require('rf-api').start({app: http.app}); // prepare api
var mongooseMulti = require('mongoose-multi'); // databases
var db = mongooseMulti.start(config.db.urls, config.paths.schemas);


// fetch settings from db
db.global.mongooseConnection.once('open', function () {

   // start access control
   require('rf-acl').start({
      API: API, // rf-api
      db: db, // mongooseMulti
      app: http.app, // express app
      sessionSecret: 'dsafdknewr324324erd3uidecd'
   });

   // start requests
   API.startApiFiles(config.paths.apis, function (startApi) {
      startApi(db, API);
   });
});


Peer Dependencies

  • rf-config

Development

Install the dev tools with

npm install

Then you can runs some test cases and eslint with:

npm test

Legal Issues

  • License: MIT
  • Author: Rapidfacture GmbH

Current Tags

  • 0.5.3                                ...           latest (a year ago)

33 Versions

  • 0.5.3                                ...           a year ago
  • 0.5.2                                ...           a year ago
  • 0.5.1                                ...           a year ago
  • 0.5.0                                ...           a year ago
  • 0.4.5                                ...           a year ago
  • 0.4.4                                ...           a year ago
  • 0.4.3                                ...           a year ago
  • 0.4.2                                ...           a year ago
  • 0.4.1                                ...           a year ago
  • 0.4.0                                ...           a year ago
  • 0.3.2                                ...           a year ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.23                                ...           2 years ago
  • 0.1.22                                ...           2 years ago
  • 0.1.21                                ...           2 years ago
  • 0.1.20                                ...           2 years ago
  • 0.1.17                                ...           2 years ago
  • 0.1.16                                ...           2 years ago
  • 0.1.15                                ...           2 years ago
  • 0.1.14                                ...           2 years ago
  • 0.1.13                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.5                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (3)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |