Skip to content

A mixin to automatically generate authorization for loopback Models

License

Notifications You must be signed in to change notification settings

Emiya0306/loopback-ds-authorization-mixin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published