1.0.0 • Published 8 years ago

loopback-ds-authorization-mixin v1.0.0

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

loopback-ds-authorization-mixin

A mixin to automatically generate authorization for loopback Models

In the model, add the configuration, it can work. When we have time, we will complete the plugin at first time.

var article.json = {
  "name": "article",
  ...
  "mixins": {
    "Authorization": {
      "dataSourcesName": "USRIC-DataBase",
      "userModelName": "user",
      "roleModelName": "role",
      "adminRoleName": "admin",
      "guestAccess": false
    }
  }
}