soajs.multitenant
Version:
soajs multitenant service
759 lines (756 loc) • 15 kB
JavaScript
;
let lib = {
"code": "DSBRD",
"name": "Console UI Product",
"description": "This is the main Console UI Product.",
"console": true,
"scope": {
"acl": {
"dashboard": {
"urac": {
"2": {
"access": true,
"apisPermission": "restricted",
"get": [
{
"group": "Administration",
"apis": {
"/admin/all": {
"access": true
},
"/admin/listUsers": {
"access": true
},
"/admin/changeUserStatus": {
"access": true
},
"/admin/group/list": {
"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": "Administration",
"apis": {
"/admin/addUser": {
"access": true
},
"/admin/editUser": {
"access": true
},
"/admin/group/add": {
"access": true
},
"/admin/group/edit": {
"access": true
}
}
},
{
"group": "Guest Password Settings",
"apis": {
"/resetPassword": {
"access": false
}
}
}
],
"delete": [
{
"group": "Administration",
"apis": {
"/admin/group/delete": {
"access": true
}
}
}
]
}
},
"dashboard": {
"1": {
"access": false,
"post": [
{
"group": "Continuous Delivery Deployment",
"apis": {
"/cd/deploy": {
"access": false
}
}
}
]
}
},
"oauth": {
"1": {
"access": true,
"apisPermission": "restricted",
"delete": [
{
"group": "Tokenization",
"apis": {
"/refreshToken/:token": {
"access": true
},
"/accessToken/:token": {
"access": true
}
}
},
{
"group": "User Tokenization",
"apis": {
"/tokens/user/:userId": {
"access": true
}
}
},
{
"group": "Cient Tokenization",
"apis": {
"/tokens/tenant/:clientId": {
"access": true
}
}
}
],
"post": [
{
"group": "Tokenization",
"apis": {
"/pin": {
"access": true
}
}
},
{
"group": "Guest",
"apis": {
"/token": {
"access": false
}
}
}
],
"get": [
{
"group": "Guest",
"apis": {
"/authorization": {
"access": false
}
}
}
]
}
},
"multitenant": {
"1": {
"access": false,
"get": [
{
"group": "Product"
},
{
"group": "Tenant"
},
],
"post": [
{
"group": "Product"
},
{
"group": "Tenant"
},
],
"put": [
{
"group": "Product"
},
{
"group": "Tenant"
},
],
"delete": [
{
"group": "Product"
},
{
"group": "Tenant"
},
]
}
},
}
}
},
"packages": [
{
"code": "DSBRD_GUEST",
"name": "Guest",
"description": "This package is used to provide anyone access to login and forgot password. Once logged in the package linked to the user tenant will take over thus providing the right access to the logged in user.",
"acl": {
"dashboard": {
"oauth": [
{
"version": "1",
"get": [
"Guest"
],
"post": [
"Guest",
"Tokenization"
],
"delete": [
"Tokenization"
]
}
],
"urac": [
{
"version": "2",
"post": [
"Guest Password Settings"
],
"get": [
"Guest Password Settings",
"Guest Email Validation"
]
}
],
"dashboard": [
{
"version": "1",
"post": [
"Private Tenant ACL"
]
}
],
"multitenant": [
{
"version": "1",
"get": [
"Product",
"Tenant"
],
"post": [
"Product",
"Tenant"
],
"delete": [
"Product",
"Tenant"
],
"put":[
"Product",
"Tenant"
]
}
]
}
},
"_TTL": 604800000
},
{
"code": "DSBRD_OWNER",
"name": "Owner",
"description": "This package is used to provide owner level access. This means the user who has this package will have access to everything.",
"acl": {
"dashboard": {
"oauth": [
{
"version": "1",
"get": [
"Guest"
],
"post": [
"Guest",
"Tokenization"
],
"delete": [
"Tokenization",
"User Tokenization",
"Cient Tokenization"
]
}
],
"urac": [
{
"version": "2",
"get": [
"Guest Email Account Settings",
"Administration",
"My Account",
"Guest Password Settings",
"Guest Email Validation"
],
"post": [
"Administration",
"My Account",
"Guest Password Settings"
],
"delete": [
"Administration"
]
}
],
"dashboard": [
{
"version": "1",
"get": [
"Continuous Delivery",
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Product",
"Console Product",
"Tenant",
"Console Tenant",
"Tenant oAuth",
"Tenant Application",
"Dashboard Tenants",
"Tenant Settings",
"Services",
"Daemons",
"Hosts",
"HA Cloud",
"Catalog",
"Infra Providers",
"API Builder",
"Secrets",
"Git Accounts",
"Continuous Integration"
],
"post": [
"Continuous Delivery",
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application",
"Tenant Settings",
"Services",
"Daemons",
"Hosts",
"HA Cloud",
"Catalog",
"Infra Providers",
"API Builder",
"Secrets",
"Git Accounts",
"Continuous Integration",
"swagger",
"Simulate",
"Continuous Delivery Deployment",
"Private Tenant ACL"
],
"put": [
"Continuous Delivery",
"Environment",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application",
"Tenant Settings",
"Services",
"Daemons",
"HA Cloud",
"Catalog",
"Infra Providers",
"API Builder",
"Git Accounts",
"Continuous Integration",
"Owner HA Cloud"
],
"delete": [
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application",
"Tenant Settings",
"Daemons",
"HA Cloud",
"Catalog",
"Infra Providers",
"API Builder",
"Secrets",
"Git Accounts",
"Continuous Integration"
]
}
],
"multitenant": [
{
"version": "1",
"get": [
"Product",
"Tenant"
],
"post": [
"Product",
"Tenant"
],
"delete": [
"Product",
"Tenant"
],
"put":[
"Product",
"Tenant"
]
}
]
}
},
"_TTL": 604800000
},
{
"code": "DSBRD_DEVOP",
"name": "DevOps",
"description": "This package has the right privileges a DevOps user will need to be able to configure, control, and monitor what is happening across the board.",
"acl": {
"dashboard": {
"oauth": [
{
"version": "1",
"delete": [
"Tokenization",
"User Tokenization",
"Cient Tokenization"
],
"post": [
"Tokenization",
"Guest"
],
"get": [
"Guest"
]
}
],
"urac": [
{
"version": "2",
"get": [
"Guest Email Account Settings",
"Tenant",
"My Account",
"Guest Password Settings",
"Guest Email Validation"
],
"post": [
"My Account",
"Guest Password Settings"
]
}
],
"multitenant": [
{
"version": "1",
"get": [
"Product",
"Tenant"
],
"post": [
"Product",
"Tenant"
],
"delete": [
"Product",
"Tenant"
],
"put": [
"Product",
"Tenant"
]
}
],
"dashboard": [
{
"version": "1",
"get": [
"Continuous Delivery",
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Tenant Settings",
"Services",
"Daemons",
"Hosts",
"HA Cloud",
"Catalog",
"Git Accounts",
"API Builder",
"Secrets",
"Dashboard Tenants",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application"
],
"post": [
"Continuous Delivery",
"Environment",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Tenant Settings",
"Services",
"Daemons",
"Hosts",
"HA Cloud",
"Catalog",
"Git Accounts",
"API Builder",
"Secrets",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application",
"swagger",
"Simulate",
"Continuous Delivery Deployment",
"Private Tenant ACL"
],
"put": [
"Continuous Delivery",
"Environment",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Tenant Settings",
"Services",
"HA Cloud",
"Catalog",
"Git Accounts",
"API Builder",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application"
],
"delete": [
"Environment",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Tenant Settings",
"Daemons",
"HA Cloud",
"Catalog",
"Git Accounts",
"API Builder",
"Product",
"Tenant",
"Tenant oAuth",
"Tenant Application"
]
}
]
}
},
"_TTL": 604800000
},
{
"code": "DSBRD_DEVEL",
"name": "Developer",
"description": "This package is ideal for a developer. You are not giving much access but yet it is enough to sail and fast.",
"acl": {
"dashboard": {
"oauth": [
{
"version": "1",
"delete": [
"Tokenization",
"User Tokenization",
"Cient Tokenization"
],
"post": [
"Tokenization",
"Guest"
],
"get": [
"Guest"
]
}
],
"urac": [
{
"version": "2",
"get": [
"My Account",
"Tenant",
"Guest Email Account Settings",
"Guest Password Settings",
"Guest Email Validation"
],
"post": [
"My Account",
"Guest Password Settings"
]
}
],
"dashboard": [
{
"version": "1",
"get": [
"Continuous Delivery",
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Services",
"Daemons",
"Hosts",
"HA Cloud",
"Catalog",
"Continuous Integration",
"Git Accounts",
"API Builder",
"Secrets"
],
"post": [
"Continuous Delivery",
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Services",
"Daemons",
"Hosts",
"HA Cloud",
"Continuous Integration",
"Git Accounts",
"API Builder",
"Secrets",
"Private Tenant ACL",
"Continuous Delivery Deployment",
"Simulate",
"swagger"
],
"put": [
"Continuous Delivery",
"Environment",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Services",
"Daemons",
"HA Cloud",
"Continuous Integration",
"Git Accounts",
"API Builder"
],
"delete": [
"Environment",
"Templates",
"Environment Databases",
"Resources",
"Custom Registry",
"Environment Platforms",
"Daemons",
"HA Cloud",
"Continuous Integration",
"Git Accounts",
"API Builder",
"Secrets"
]
}
],
"multitenant": [
{
"version": "1",
"get": [
"Product",
"Tenant"
],
"post": [
"Product",
"Tenant"
],
"delete": [
"Product",
"Tenant"
],
"put":[
"Product",
"Tenant"
]
}
]
}
},
"_TTL": 21600000
}
]
};
module.exports = lib;