1.0.0 • Published 8 years ago
loopback-ds-authorization-mixin v1.0.0
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
}
}
}
1.0.0
8 years ago