0.0.20 • Published 9 years ago
lazy-uac v0.0.20
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-uacSetup
- 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: {}
            }
        }
    }