UNPKG

soajs.multitenant

Version:
324 lines (322 loc) 12.6 kB
'use strict'; let lib = { "code" : "TPROD", "name" : "Test Product", "description" : "This is a product with multiple services and versions, version is sanitized", "console": false, "scope": { "acl": { "dashboard": { "multitenant": { "1": { "access": true, "get": [ { "apis": { "/product": { "access": true }, "/products/console": { "access": true } }, "group": "Product" }, { "apis": { "/tenants": { "access": true }, "/tenant": { "access": true }, "/tenant/application": { "access": true }, "/tenant/applications": { "access": true }, "/tenant/application/key/ext": { "access": true } }, "group": "Tenant" }, { "apis": { "/admin/tenant/application": { "access": true }, "/admin/tenant/applications": { "access": true }, "/admin/tenant/application/key/ext": { "access": true } }, "group": "Admin Tenant" } ], "post": [ { "apis": { "/tenant": { "access": true }, "/tenant/application/key": { "access": true } }, "group": "Tenant" }, { "apis": { "/admin/tenant/application": { "access": true }, "/admin/tenant/application/key/ext": { "access": true }, "/admin/tenant/application/key": { "access": true } }, "group": "Admin Tenant" } ], "put": [ { "apis": { "/tenant/profile": { "access": true }, "/tenant": { "access": true }, "/tenant/application/key/extKey": { "access": true }, "/tenant/application/key": { "access": true }, "/tenant/application": { "access": true }, "/tenant/application/key/ext": { "access": true } }, "group": "Tenant" }, { "apis": { "/admin/tenant/application": { "access": true }, "/admin/tenant/application/key/ext": { "access": true }, "/admin/tenant/application/key": { "access": true } }, "group": "Admin Tenant" } ], "delete": [ { "apis": { "/tenant/application": { "access": true } }, "group": "Tenant" } ] }, "1x2": { "access": true, "apisPermission": "restricted", "get": [ { "apis": { "/tenant": { "access": true } }, "group": "Tenant" } ], "post": [ { "apis": { "/tenant": { "access": true } }, "group": "Tenant" } ] } }, "urac": { "1": { "access": true, "apisPermission": "restricted", "get": [ { "apis": { "/user": { "access": false } }, "group": "Administrator" } ] }, "2x5": { "access": true, "apisPermission": "restricted", "post": [ { "apis": { "/account/changeEmail": { "access": true }, "/account/changePassword": { "access": true }, "/account/editProfile": { "access": true } }, "group": "My Account" } ], "get": [ { "apis": { "/account/getUser": { "access": true } }, "group": "My Account" } ] } } } } }, "packages" : [ { "code" : "TPROD_BASIC", "name" : "basic package", "description" : "this is a description for test product basic package", "acl" : { "dashboard": { "multitenant": [ { "version": "1", "get": [ "Product", "Tenant", "Admin Tenant" ], "post": [ "Product", "Tenant", "Admin Tenant" ], "delete": [ "Product", "Tenant", "Admin Tenant" ], "put":[ "Product", "Tenant", "Admin Tenant" ] }, { "version": "1.2", "get": [ "Tenant" ] } ], "urac": [ { "version": "1", "get": [ "Administrator", ] }, { "version": "3", "get": [ "Administrator", "My Account", ] } ] } }, "_TTL" : 86400000 // 24 hours }, { "code" : "TPROD_EXA3", "name" : "example03 package", "description" : "this is a description for test product example03 package", "acl" : { "dashboard": { "urac": [ { "version": "2.5", "get": [ "My Account", ], "put": [ "My Account", ], "delete": [ "My Account", ], "post": [ "My Account", ] } ], "multitenant": [ { "version": "1", "get": [ "Product", "Tenant", "Admin Tenant" ], "post": [ "Product", "Tenant", "Admin Tenant" ], "delete": [ "Product", "Tenant", "Admin Tenant" ], "put":[ "Product", "Tenant", "Admin Tenant" ] } ] } }, "_TTL" : 86400000 // 24 hours } ] }; module.exports = lib;