Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A mixin to automatically generate authorization for loopback Models

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages