soajs.multitenant
Version:
soajs multitenant service
183 lines (180 loc) • 6.33 kB
JavaScript
;
let lib = {
"code" : "TEST2",
"_id": "5f575ec295bb89628f3221d1",
"name" : "Test 2 Product",
"description" : "This is another product with multiple services and versions, version is sanitized",
"console": false,
"scope": {
"acl": {
"dashboard": {
"multitenant": {
"1": {
"access": false,
"get": [
{
"apis": {
"/product": {
"access": false
},
"/products/console": {
"access": false
}
},
"group": "Product"
}
]
}
},
"urac": {
"2": {
"access": true,
"apisPermission": "restricted",
"get": [
{
"group": "Administration",
"apis": {
"/admin/all": {
"access": true
}
}
},
{
"group": "My Account",
"apis": {
"/account/getUser": {
"access": true
}
}
},
{
"group": "Guest Password Settings",
"apis": {
"/forgotPassword": {
"access": false
}
}
},
{
"group": "Guest Email Validation",
"apis": {
"/changeEmail/validate": {
"access": true
}
}
}
],
"post": [
{
"group": "My Account",
"apis": {
"/account/changeEmail": {
"access": true
},
"/account/changePassword": {
"access": true
},
"/account/editProfile": {
"access": true
}
}
},
{
"group": "Guest Password Settings",
"apis": {
"/resetPassword": {
"access": false
}
}
}
]
}
},
}
}
},
"packages" : [
{
"code" : "TEST2_NEWS",
"name" : "news package",
"description" : "this is a description for test 2 product news package",
"acl" : {
"dashboard": {
"urac": [
{
"version": "3",
"get": [
"Administrator"
]
}
]
},
"dev": {
"urac": [
{
"version": "3",
"get": [
"Administrator"
]
}
]
},
"stage": {
"urac": [
{
"version": "3",
"get": [
"Administrator"
]
}
]
}
},
"_TTL" : 86400000 // 24 hours
},
{
"code" : "TEST2_NEW",
"name" : "new package",
"description" : "this is a description for test 2 product new package",
"acl" : {
"dashboard": {
"urac": [
{
"version": "2",
"post": [
"Guest Password Settings"
],
"get": [
"Guest Password Settings",
"Guest Email Validation"
]
}
],
"multitenant": [
{
"version": "1",
"get": [
"Product",
"Tenant"
],
"post": [
"Product",
"Tenant"
],
"delete": [
"Product",
"Tenant"
],
"put":[
"Product",
"Tenant"
]
}
]
}
},
"_TTL" : 86400000 // 24 hours
}
]
};
module.exports = lib;