lazy-uac
v0.0.20
Published
layer of user access control.
Downloads
34
Maintainers
Readme
LAZY-UAC
Base on LazyBoyJs this library provide an User-Access-Control layer. Easily add users with authentication and roles to quickly develop an application using CouchDB as database.
Install
npm install lazy-uac
Setup
- Without configuration
import LazyUAC = require("lazy-uac");
let manager = new LazyUAC.UserManager()
the UserManager
will use the default settings values
{
logLevel: lazyFormatLogger.LogLevel.VERBOSE,
useAsync: false,
dataSource: new DataService.UacDBA(),
dataSourceAsync: null,
dataSourceOptions: {
credential_db: "auth",
profile_db: "profile",
LazyBoyOptions: {
prefix: "uac",
autoConnect: true,
views: {}
}
}
}