lazy-uac

layer of user access control.

Usage no npm install needed!

<script type="module">
  import lazyUac from 'https://cdn.skypack.dev/lazy-uac';
</script>

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: {}
            }
        }
    }