auth0-deploy-cli 7.6.0 → 7.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +7 -41
- package/.husky/pre-commit +4 -0
- package/.husky/pre-push +3 -1
- package/.prettierignore +10 -0
- package/.prettierrc.json +4 -0
- package/CHANGELOG.md +222 -7
- package/CONTRIBUTING.md +2 -2
- package/README.md +3 -0
- package/lib/args.d.ts +29 -0
- package/lib/args.js +16 -15
- package/lib/commands/export.d.ts +2 -0
- package/lib/commands/export.js +3 -3
- package/lib/commands/import.d.ts +2 -0
- package/lib/commands/import.js +6 -6
- package/lib/commands/index.d.ts +9 -0
- package/lib/commands/index.js +1 -1
- package/lib/configFactory.d.ts +7 -0
- package/lib/configFactory.js +5 -1
- package/lib/context/defaults.d.ts +1 -0
- package/lib/context/defaults.js +4 -3
- package/lib/context/directory/handlers/actions.d.ts +6 -0
- package/lib/context/directory/handlers/actions.js +3 -3
- package/lib/context/directory/handlers/attackProtection.d.ts +10 -0
- package/lib/context/directory/handlers/attackProtection.js +7 -7
- package/lib/context/directory/handlers/branding.d.ts +6 -0
- package/lib/context/directory/handlers/branding.js +6 -5
- package/lib/context/directory/handlers/clientGrants.d.ts +6 -0
- package/lib/context/directory/handlers/clientGrants.js +3 -2
- package/lib/context/directory/handlers/clients.d.ts +6 -0
- package/lib/context/directory/handlers/clients.js +1 -1
- package/lib/context/directory/handlers/connections.d.ts +6 -0
- package/lib/context/directory/handlers/connections.js +4 -2
- package/lib/context/directory/handlers/databases.d.ts +6 -0
- package/lib/context/directory/handlers/databases.js +13 -7
- package/lib/context/directory/handlers/emailProvider.d.ts +6 -0
- package/lib/context/directory/handlers/emailProvider.js +3 -2
- package/lib/context/directory/handlers/emailTemplates.d.ts +6 -0
- package/lib/context/directory/handlers/emailTemplates.js +2 -2
- package/lib/context/directory/handlers/guardianFactorProviders.d.ts +6 -0
- package/lib/context/directory/handlers/guardianFactorProviders.js +3 -2
- package/lib/context/directory/handlers/guardianFactorTemplates.d.ts +6 -0
- package/lib/context/directory/handlers/guardianFactorTemplates.js +3 -2
- package/lib/context/directory/handlers/guardianFactors.d.ts +6 -0
- package/lib/context/directory/handlers/guardianFactors.js +3 -2
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.d.ts +6 -0
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +1 -1
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.d.ts +6 -0
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +1 -1
- package/lib/context/directory/handlers/guardianPolicies.d.ts +6 -0
- package/lib/context/directory/handlers/guardianPolicies.js +1 -1
- package/lib/context/directory/handlers/hooks.d.ts +6 -0
- package/lib/context/directory/handlers/hooks.js +2 -2
- package/lib/context/directory/handlers/index.d.ts +12 -0
- package/lib/context/directory/handlers/index.js +3 -2
- package/lib/context/directory/handlers/migrations.d.ts +6 -0
- package/lib/context/directory/handlers/organizations.d.ts +6 -0
- package/lib/context/directory/handlers/organizations.js +1 -1
- package/lib/context/directory/handlers/pages.d.ts +6 -0
- package/lib/context/directory/handlers/pages.js +2 -2
- package/lib/context/directory/handlers/resourceServers.d.ts +6 -0
- package/lib/context/directory/handlers/resourceServers.js +3 -2
- package/lib/context/directory/handlers/roles.d.ts +6 -0
- package/lib/context/directory/handlers/roles.js +1 -1
- package/lib/context/directory/handlers/rules.d.ts +6 -0
- package/lib/context/directory/handlers/rules.js +2 -2
- package/lib/context/directory/handlers/rulesConfigs.d.ts +6 -0
- package/lib/context/directory/handlers/rulesConfigs.js +3 -2
- package/lib/context/directory/handlers/tenant.d.ts +10 -0
- package/lib/context/directory/handlers/tenant.js +3 -2
- package/lib/context/directory/handlers/triggers.d.ts +6 -0
- package/lib/context/directory/index.d.ts +17 -0
- package/lib/context/directory/index.js +21 -18
- package/lib/context/index.d.ts +4 -0
- package/lib/context/index.js +83 -61
- package/lib/context/yaml/handlers/actions.d.ts +6 -0
- package/lib/context/yaml/handlers/actions.js +9 -6
- package/lib/context/yaml/handlers/attackProtection.d.ts +6 -0
- package/lib/context/yaml/handlers/attackProtection.js +1 -1
- package/lib/context/yaml/handlers/branding.d.ts +6 -0
- package/lib/context/yaml/handlers/branding.js +5 -4
- package/lib/context/yaml/handlers/clientGrants.d.ts +6 -0
- package/lib/context/yaml/handlers/clientGrants.js +2 -2
- package/lib/context/yaml/handlers/clients.d.ts +6 -0
- package/lib/context/yaml/handlers/clients.js +6 -4
- package/lib/context/yaml/handlers/connections.d.ts +6 -0
- package/lib/context/yaml/handlers/connections.js +7 -5
- package/lib/context/yaml/handlers/databases.d.ts +6 -0
- package/lib/context/yaml/handlers/databases.js +12 -8
- package/lib/context/yaml/handlers/emailProvider.d.ts +6 -0
- package/lib/context/yaml/handlers/emailProvider.js +4 -3
- package/lib/context/yaml/handlers/emailTemplates.d.ts +6 -0
- package/lib/context/yaml/handlers/emailTemplates.js +3 -3
- package/lib/context/yaml/handlers/guardianFactorProviders.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianFactorProviders.js +1 -1
- package/lib/context/yaml/handlers/guardianFactorTemplates.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianFactorTemplates.js +1 -1
- package/lib/context/yaml/handlers/guardianFactors.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianFactors.js +1 -1
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +1 -1
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +1 -1
- package/lib/context/yaml/handlers/guardianPolicies.d.ts +6 -0
- package/lib/context/yaml/handlers/guardianPolicies.js +1 -1
- package/lib/context/yaml/handlers/hooks.d.ts +6 -0
- package/lib/context/yaml/handlers/hooks.js +4 -3
- package/lib/context/yaml/handlers/index.d.ts +12 -0
- package/lib/context/yaml/handlers/index.js +3 -2
- package/lib/context/yaml/handlers/migrations.d.ts +6 -0
- package/lib/context/yaml/handlers/organizations.d.ts +6 -0
- package/lib/context/yaml/handlers/organizations.js +3 -3
- package/lib/context/yaml/handlers/pages.d.ts +6 -0
- package/lib/context/yaml/handlers/pages.js +3 -3
- package/lib/context/yaml/handlers/resourceServers.d.ts +6 -0
- package/lib/context/yaml/handlers/resourceServers.js +2 -2
- package/lib/context/yaml/handlers/roles.d.ts +6 -0
- package/lib/context/yaml/handlers/roles.js +3 -3
- package/lib/context/yaml/handlers/rules.d.ts +6 -0
- package/lib/context/yaml/handlers/rules.js +3 -3
- package/lib/context/yaml/handlers/rulesConfigs.d.ts +6 -0
- package/lib/context/yaml/handlers/rulesConfigs.js +2 -2
- package/lib/context/yaml/handlers/tenant.d.ts +6 -0
- package/lib/context/yaml/handlers/tenant.js +4 -3
- package/lib/context/yaml/handlers/triggers.d.ts +6 -0
- package/lib/context/yaml/handlers/triggers.js +2 -2
- package/lib/context/yaml/index.d.ts +13 -0
- package/lib/context/yaml/index.js +31 -23
- package/lib/index.d.ts +88 -0
- package/lib/index.js +25 -17
- package/lib/logger.d.ts +2 -0
- package/lib/logger.js +8 -17
- package/lib/readonly.d.ts +2 -0
- package/lib/readonly.js +11 -16
- package/lib/sessionDurationsToMinutes.d.ts +7 -0
- package/lib/sessionDurationsToMinutes.js +15 -0
- package/lib/tools/auth0/client.d.ts +2 -0
- package/lib/tools/auth0/client.js +12 -12
- package/lib/tools/auth0/handlers/actions.d.ts +95 -0
- package/lib/tools/auth0/handlers/actions.js +22 -24
- package/lib/tools/auth0/handlers/attackProtection.d.ts +28 -0
- package/lib/tools/auth0/handlers/attackProtection.js +14 -17
- package/lib/tools/auth0/handlers/branding.d.ts +27 -0
- package/lib/tools/auth0/handlers/branding.js +13 -9
- package/lib/tools/auth0/handlers/clientGrants.d.ts +32 -0
- package/lib/tools/auth0/handlers/clientGrants.js +17 -10
- package/lib/tools/auth0/handlers/clients.d.ts +23 -0
- package/lib/tools/auth0/handlers/clients.js +15 -8
- package/lib/tools/auth0/handlers/connections.d.ts +54 -0
- package/lib/tools/auth0/handlers/connections.js +30 -10
- package/lib/tools/auth0/handlers/databases.d.ts +36 -0
- package/lib/tools/auth0/handlers/databases.js +25 -13
- package/lib/tools/auth0/handlers/default.d.ts +54 -0
- package/lib/tools/auth0/handlers/default.js +62 -36
- package/lib/tools/auth0/handlers/emailProvider.d.ts +11 -0
- package/lib/tools/auth0/handlers/emailTemplates.d.ts +26 -0
- package/lib/tools/auth0/handlers/emailTemplates.js +8 -10
- package/lib/tools/auth0/handlers/guardianFactorProviders.d.ts +25 -0
- package/lib/tools/auth0/handlers/guardianFactorProviders.js +3 -3
- package/lib/tools/auth0/handlers/guardianFactorTemplates.d.ts +21 -0
- package/lib/tools/auth0/handlers/guardianFactorTemplates.js +3 -3
- package/lib/tools/auth0/handlers/guardianFactors.d.ts +21 -0
- package/lib/tools/auth0/handlers/guardianFactors.js +3 -3
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.d.ts +21 -0
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +11 -10
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.d.ts +18 -0
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +10 -9
- package/lib/tools/auth0/handlers/guardianPolicies.d.ts +23 -0
- package/lib/tools/auth0/handlers/guardianPolicies.js +5 -4
- package/lib/tools/auth0/handlers/hooks.d.ts +58 -0
- package/lib/tools/auth0/handlers/hooks.js +34 -21
- package/lib/tools/auth0/handlers/index.d.ts +129 -0
- package/lib/tools/auth0/handlers/index.js +31 -27
- package/lib/tools/auth0/handlers/migrations.d.ts +15 -0
- package/lib/tools/auth0/handlers/migrations.js +3 -2
- package/lib/tools/auth0/handlers/organizations.d.ts +51 -0
- package/lib/tools/auth0/handlers/organizations.js +62 -32
- package/lib/tools/auth0/handlers/pages.d.ts +42 -0
- package/lib/tools/auth0/handlers/pages.js +20 -14
- package/lib/tools/auth0/handlers/prompts.d.ts +11 -0
- package/lib/tools/auth0/handlers/prompts.js +1 -0
- package/lib/tools/auth0/handlers/resourceServers.d.ts +51 -0
- package/lib/tools/auth0/handlers/resourceServers.js +22 -14
- package/lib/tools/auth0/handlers/roles.d.ts +48 -0
- package/lib/tools/auth0/handlers/roles.js +56 -32
- package/lib/tools/auth0/handlers/rules.d.ts +55 -0
- package/lib/tools/auth0/handlers/rules.js +53 -36
- package/lib/tools/auth0/handlers/rulesConfigs.d.ts +25 -0
- package/lib/tools/auth0/handlers/rulesConfigs.js +12 -6
- package/lib/tools/auth0/handlers/tenant.d.ts +11 -0
- package/lib/tools/auth0/handlers/tenant.js +8 -4
- package/lib/tools/auth0/handlers/triggers.d.ts +35 -0
- package/lib/tools/auth0/handlers/triggers.js +12 -13
- package/lib/tools/auth0/index.d.ts +15 -0
- package/lib/tools/auth0/index.js +15 -31
- package/lib/tools/auth0/schema.d.ts +15 -0
- package/lib/tools/auth0/schema.js +7 -27
- package/lib/tools/calculateChanges.d.ts +26 -0
- package/lib/tools/calculateChanges.js +12 -7
- package/lib/tools/constants.d.ts +71 -0
- package/lib/tools/constants.js +164 -161
- package/lib/tools/deploy.d.ts +3 -0
- package/lib/tools/deploy.js +3 -3
- package/lib/tools/index.d.ts +82 -0
- package/lib/tools/index.js +1 -1
- package/lib/tools/utils.d.ts +18 -0
- package/lib/tools/utils.js +68 -10
- package/lib/tools/validationError.d.ts +5 -0
- package/lib/tools/{ValidationError.js → validationError.js} +3 -1
- package/lib/types.d.ts +255 -0
- package/lib/types.js +2 -0
- package/lib/utils.d.ts +66 -0
- package/lib/utils.js +18 -25
- package/package.json +16 -7
- package/tsconfig.json +3 -4
- package/typescript-migration-progress.sh +1 -1
- package/lib/tools/logger.js +0 -15
package/lib/tools/auth0/index.js
CHANGED
|
@@ -1,27 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
3
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
4
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -38,12 +15,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
38
15
|
const ajv_1 = __importDefault(require("ajv/lib/ajv"));
|
|
39
16
|
const client_1 = __importDefault(require("./client"));
|
|
40
17
|
const schema_1 = __importDefault(require("./schema"));
|
|
41
|
-
const
|
|
42
|
-
const defaultOrder = 50;
|
|
18
|
+
const handlers_1 = __importDefault(require("./handlers"));
|
|
43
19
|
function sortByOrder(toSort, stage) {
|
|
20
|
+
const defaultOrder = 50;
|
|
44
21
|
const sorted = [...toSort];
|
|
45
22
|
sorted.sort((a, b) => {
|
|
23
|
+
//@ts-ignore because this doesn't actually work. TODO: apply stage order
|
|
46
24
|
const aOrder = a[stage].order || defaultOrder;
|
|
25
|
+
//@ts-ignore because this doesn't actually work. TODO: apply stage order
|
|
47
26
|
const bOrder = b[stage].order || defaultOrder;
|
|
48
27
|
return aOrder - bOrder;
|
|
49
28
|
});
|
|
@@ -54,19 +33,24 @@ class Auth0 {
|
|
|
54
33
|
this.client = (0, client_1.default)(client);
|
|
55
34
|
this.config = config;
|
|
56
35
|
this.assets = assets;
|
|
57
|
-
this.handlers =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this.
|
|
36
|
+
this.handlers = Object.values(handlers_1.default)
|
|
37
|
+
.map((handler) => {
|
|
38
|
+
//@ts-ignore because class expects `type` property but gets directly injected into class constructors
|
|
39
|
+
return new handler.default({ client: this.client, config: this.config });
|
|
40
|
+
})
|
|
41
|
+
.filter((handler) => {
|
|
42
|
+
const excludedAssetTypes = config('AUTH0_EXCLUDED') || [];
|
|
43
|
+
return !excludedAssetTypes.includes(handler.type);
|
|
61
44
|
});
|
|
62
45
|
}
|
|
63
46
|
runStage(stage) {
|
|
64
47
|
return __awaiter(this, void 0, void 0, function* () {
|
|
65
48
|
// Sort by priority
|
|
66
|
-
for (const handler of sortByOrder(this.handlers, stage)) {
|
|
49
|
+
for (const handler of sortByOrder(this.handlers, stage)) {
|
|
50
|
+
// eslint-disable-line
|
|
67
51
|
try {
|
|
68
52
|
const stageFn = Object.getPrototypeOf(handler)[stage];
|
|
69
|
-
this.assets = Object.assign(Object.assign({}, this.assets), (yield stageFn.apply(handler, [this.assets])) || {});
|
|
53
|
+
this.assets = Object.assign(Object.assign({}, this.assets), ((yield stageFn.apply(handler, [this.assets])) || {}));
|
|
70
54
|
}
|
|
71
55
|
catch (err) {
|
|
72
56
|
err.type = handler.type;
|
|
@@ -1,34 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
const
|
|
27
|
-
const typesSchema = Object.entries(
|
|
6
|
+
const handlers_1 = __importDefault(require("./handlers"));
|
|
7
|
+
const typesSchema = Object.entries(handlers_1.default).reduce((map, [name, obj]) => {
|
|
28
8
|
map[name] = obj.schema; //eslint-disable-line
|
|
29
9
|
return map;
|
|
30
10
|
}, {});
|
|
31
|
-
const excludeSchema = Object.entries(
|
|
11
|
+
const excludeSchema = Object.entries(handlers_1.default).reduce((map, [name, obj]) => {
|
|
32
12
|
if (obj.excludeSchema) {
|
|
33
13
|
map[name] = obj.excludeSchema;
|
|
34
14
|
}
|
|
@@ -40,7 +20,7 @@ exports.default = {
|
|
|
40
20
|
properties: Object.assign(Object.assign({}, typesSchema), { exclude: {
|
|
41
21
|
type: 'object',
|
|
42
22
|
properties: Object.assign({}, excludeSchema),
|
|
43
|
-
default: {}
|
|
23
|
+
default: {},
|
|
44
24
|
} }),
|
|
45
|
-
additionalProperties: false
|
|
25
|
+
additionalProperties: false,
|
|
46
26
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import APIHandler from '../tools/auth0/handlers/default';
|
|
2
|
+
import { Asset, CalculatedChanges } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* @template T
|
|
5
|
+
* @param {typeof import('./auth0/handlers/default').default} handler
|
|
6
|
+
* @param {T} desiredAssetState
|
|
7
|
+
* @param {T} currentAssetState
|
|
8
|
+
* @param {string[]} [objectFields=[]]
|
|
9
|
+
* @param {boolean} [allowDelete=false]
|
|
10
|
+
* @returns T
|
|
11
|
+
*/
|
|
12
|
+
export declare function processChangedObjectFields({ handler, desiredAssetState, currentAssetState, allowDelete, }: {
|
|
13
|
+
handler: APIHandler;
|
|
14
|
+
desiredAssetState: Asset;
|
|
15
|
+
currentAssetState: Asset;
|
|
16
|
+
allowDelete?: boolean;
|
|
17
|
+
}): {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
};
|
|
20
|
+
export declare function calculateChanges({ handler, assets, existing, identifiers, allowDelete, }: {
|
|
21
|
+
handler: APIHandler;
|
|
22
|
+
assets: Asset[];
|
|
23
|
+
existing: Asset[];
|
|
24
|
+
identifiers: string[];
|
|
25
|
+
allowDelete: boolean;
|
|
26
|
+
}): CalculatedChanges;
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.calculateChanges = exports.processChangedObjectFields = void 0;
|
|
7
|
-
const logger_1 = __importDefault(require("
|
|
7
|
+
const logger_1 = __importDefault(require("../logger"));
|
|
8
8
|
/**
|
|
9
9
|
* @template T
|
|
10
10
|
* @param {typeof import('./auth0/handlers/default').default} handler
|
|
@@ -14,11 +14,12 @@ const logger_1 = __importDefault(require("./logger"));
|
|
|
14
14
|
* @param {boolean} [allowDelete=false]
|
|
15
15
|
* @returns T
|
|
16
16
|
*/
|
|
17
|
-
function processChangedObjectFields({ handler, desiredAssetState, currentAssetState, allowDelete = false }) {
|
|
17
|
+
function processChangedObjectFields({ handler, desiredAssetState, currentAssetState, allowDelete = false, }) {
|
|
18
18
|
const desiredAssetStateWithChanges = Object.assign({}, desiredAssetState);
|
|
19
19
|
// eslint-disable-next-line no-restricted-syntax
|
|
20
20
|
for (const fieldName of handler.objectFields) {
|
|
21
|
-
const areDesiredStateAndCurrentStateEmpty = Object.keys(desiredAssetState[fieldName] || {}).length === 0 &&
|
|
21
|
+
const areDesiredStateAndCurrentStateEmpty = Object.keys(desiredAssetState[fieldName] || {}).length === 0 &&
|
|
22
|
+
Object.keys(currentAssetState[fieldName] || {}).length === 0;
|
|
22
23
|
if (areDesiredStateAndCurrentStateEmpty) {
|
|
23
24
|
// If both the desired state and current state for a given object is empty, it is a no-op and can skip
|
|
24
25
|
// eslint-disable-next-line no-continue
|
|
@@ -63,7 +64,7 @@ function processChangedObjectFields({ handler, desiredAssetState, currentAssetSt
|
|
|
63
64
|
return desiredAssetStateWithChanges;
|
|
64
65
|
}
|
|
65
66
|
exports.processChangedObjectFields = processChangedObjectFields;
|
|
66
|
-
function calculateChanges({ handler, assets, existing, identifiers = ['id', 'name'], allowDelete }) {
|
|
67
|
+
function calculateChanges({ handler, assets, existing, identifiers = ['id', 'name'], allowDelete, }) {
|
|
67
68
|
// Calculate the changes required between two sets of assets.
|
|
68
69
|
const update = [];
|
|
69
70
|
let del = [...existing];
|
|
@@ -103,7 +104,10 @@ function calculateChanges({ handler, assets, existing, identifiers = ['id', 'nam
|
|
|
103
104
|
return obj;
|
|
104
105
|
}, {})), (handler.objectFields.length
|
|
105
106
|
? processChangedObjectFields({
|
|
106
|
-
handler,
|
|
107
|
+
handler,
|
|
108
|
+
desiredAssetState: asset,
|
|
109
|
+
currentAssetState: found,
|
|
110
|
+
allowDelete,
|
|
107
111
|
})
|
|
108
112
|
: asset)));
|
|
109
113
|
}
|
|
@@ -113,7 +117,8 @@ function calculateChanges({ handler, assets, existing, identifiers = ['id', 'nam
|
|
|
113
117
|
// Loop through identifiers (in order) to try match assets to existing
|
|
114
118
|
// If existing then update if not create
|
|
115
119
|
// The remainder will be deleted
|
|
116
|
-
for (const id of identifiers) {
|
|
120
|
+
for (const id of identifiers) {
|
|
121
|
+
// eslint-disable-line
|
|
117
122
|
processAssets(id, [...create]);
|
|
118
123
|
}
|
|
119
124
|
// Check if there are assets with names that will conflict with existing names during the update process
|
|
@@ -138,7 +143,7 @@ function calculateChanges({ handler, assets, existing, identifiers = ['id', 'nam
|
|
|
138
143
|
del,
|
|
139
144
|
update,
|
|
140
145
|
conflicts,
|
|
141
|
-
create
|
|
146
|
+
create,
|
|
142
147
|
};
|
|
143
148
|
}
|
|
144
149
|
exports.calculateChanges = calculateChanges;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const constants: {
|
|
2
|
+
CONCURRENT_CALLS: number;
|
|
3
|
+
RULES_DIRECTORY: string;
|
|
4
|
+
RULES_STAGES: string[];
|
|
5
|
+
DEFAULT_RULE_STAGE: string;
|
|
6
|
+
HOOKS_HIDDEN_SECRET_VALUE: string;
|
|
7
|
+
OBFUSCATED_SECRET_VALUE: string;
|
|
8
|
+
HOOKS_DIRECTORY: string;
|
|
9
|
+
ACTIONS_DIRECTORY: string;
|
|
10
|
+
TRIGGERS_DIRECTORY: string;
|
|
11
|
+
RULES_CONFIGS_DIRECTORY: string;
|
|
12
|
+
PAGES_DIRECTORY: string;
|
|
13
|
+
PAGE_LOGIN: string;
|
|
14
|
+
PAGE_GUARDIAN_MULTIFACTOR: string;
|
|
15
|
+
PAGE_PASSWORD_RESET: string;
|
|
16
|
+
PAGE_ERROR: string;
|
|
17
|
+
DATABASE_CONNECTIONS_DIRECTORY: string;
|
|
18
|
+
DATABASE_SCRIPTS_CHANGE_EMAIL: string;
|
|
19
|
+
DATABASE_SCRIPTS_GET_USER: string;
|
|
20
|
+
EMAIL_TEMPLATES_TYPES: string[];
|
|
21
|
+
ACTIONS_TRIGGERS: string[];
|
|
22
|
+
EMAIL_TEMPLATES_DIRECTORY: string;
|
|
23
|
+
EMAIL_VERIFY: string;
|
|
24
|
+
EMAIL_VERIFY_BY_CODE: string;
|
|
25
|
+
EMAIL_RESET: string;
|
|
26
|
+
EMAIL_WELCOME: string;
|
|
27
|
+
EMAIL_BLOCKED: string;
|
|
28
|
+
EMAIL_STOLEN_CREDENTIALS: string;
|
|
29
|
+
EMAIL_ENROLLMENT: string;
|
|
30
|
+
EMAIL_CHANGE_PASSWORD: string;
|
|
31
|
+
EMAIL_PASSWORD_RESET: string;
|
|
32
|
+
EMAIL_MFA_OOB_CODE: string;
|
|
33
|
+
EMAIL_USER_INVITATION: string;
|
|
34
|
+
GUARDIAN_DIRECTORY: string;
|
|
35
|
+
GUARDIAN_FACTORS_DIRECTORY: string;
|
|
36
|
+
GUARDIAN_PROVIDERS_DIRECTORY: string;
|
|
37
|
+
GUARDIAN_TEMPLATES_DIRECTORY: string;
|
|
38
|
+
UNIVERSAL_LOGIN_TEMPLATE: string;
|
|
39
|
+
RESOURCE_SERVERS_DIRECTORY: string;
|
|
40
|
+
RESOURCE_SERVERS_CLIENT_NAME: string;
|
|
41
|
+
RESOURCE_SERVERS_MANAGEMENT_API_NAME: string;
|
|
42
|
+
RESOURCE_SERVERS_ID_NAME: string;
|
|
43
|
+
CLIENTS_DIRECTORY: string;
|
|
44
|
+
CLIENTS_GRANTS_DIRECTORY: string;
|
|
45
|
+
BRANDING_DIRECTORY: string;
|
|
46
|
+
BRANDING_TEMPLATES_DIRECTORY: string;
|
|
47
|
+
BRANDING_TEMPLATES_YAML_DIRECTORY: string;
|
|
48
|
+
CLIENTS_CLIENT_NAME: string;
|
|
49
|
+
CLIENTS_CLIENT_ID_NAME: string;
|
|
50
|
+
CONNECTIONS_DIRECTORY: string;
|
|
51
|
+
CONNECTIONS_CLIENT_NAME: string;
|
|
52
|
+
CONNECTIONS_ID_NAME: string;
|
|
53
|
+
ROLES_DIRECTORY: string;
|
|
54
|
+
ATTACK_PROTECTION_DIRECTORY: string;
|
|
55
|
+
GUARDIAN_FACTORS: string[];
|
|
56
|
+
GUARDIAN_POLICIES: string[];
|
|
57
|
+
GUARDIAN_PHONE_PROVIDERS: string[];
|
|
58
|
+
GUARDIAN_PHONE_MESSAGE_TYPES: string[];
|
|
59
|
+
GUARDIAN_FACTOR_TEMPLATES: string[];
|
|
60
|
+
GUARDIAN_FACTOR_PROVIDERS: {
|
|
61
|
+
sms: string[];
|
|
62
|
+
'push-notification': string[];
|
|
63
|
+
};
|
|
64
|
+
PAGE_NAMES: string[];
|
|
65
|
+
DATABASE_SCRIPTS: string[];
|
|
66
|
+
DATABASE_SCRIPTS_NO_IMPORT: string[];
|
|
67
|
+
DATABASE_SCRIPTS_IMPORT: string[];
|
|
68
|
+
EMAIL_TEMPLATES_NAMES: string[];
|
|
69
|
+
SUPPORTED_BRANDING_TEMPLATES: string[];
|
|
70
|
+
};
|
|
71
|
+
export default constants;
|
package/lib/tools/constants.js
CHANGED
|
@@ -1,165 +1,168 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
'
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
'
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
]
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
]
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
]
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
3
|
+
const PAGE_GUARDIAN_MULTIFACTOR = 'guardian_multifactor';
|
|
4
|
+
const PAGE_PASSWORD_RESET = 'password_reset';
|
|
5
|
+
const PAGE_LOGIN = 'login';
|
|
6
|
+
const PAGE_ERROR = 'error_page';
|
|
7
|
+
const RULES_STAGES = ['login_success'];
|
|
8
|
+
const DATABASE_SCRIPTS_GET_USER = 'get_user';
|
|
9
|
+
const DATABASE_SCRIPTS_CHANGE_EMAIL = 'change_email';
|
|
10
|
+
const EMAIL_VERIFY = 'verify_email';
|
|
11
|
+
const EMAIL_VERIFY_BY_CODE = 'verify_email_by_code';
|
|
12
|
+
const EMAIL_RESET = 'reset_email';
|
|
13
|
+
const EMAIL_WELCOME = 'welcome_email';
|
|
14
|
+
const EMAIL_BLOCKED = 'blocked_account';
|
|
15
|
+
const EMAIL_STOLEN_CREDENTIALS = 'stolen_credentials';
|
|
16
|
+
const EMAIL_ENROLLMENT = 'enrollment_email';
|
|
17
|
+
const EMAIL_CHANGE_PASSWORD = 'change_password';
|
|
18
|
+
const EMAIL_PASSWORD_RESET = 'password_reset';
|
|
19
|
+
const EMAIL_MFA_OOB_CODE = 'mfa_oob_code';
|
|
20
|
+
const EMAIL_USER_INVITATION = 'user_invitation';
|
|
21
|
+
const UNIVERSAL_LOGIN_TEMPLATE = 'universal_login';
|
|
22
|
+
const OBFUSCATED_SECRET_VALUE = '_VALUE_NOT_SHOWN_';
|
|
23
|
+
const constants = {
|
|
24
|
+
CONCURRENT_CALLS: 5,
|
|
25
|
+
RULES_DIRECTORY: 'rules',
|
|
26
|
+
RULES_STAGES,
|
|
27
|
+
DEFAULT_RULE_STAGE: RULES_STAGES[0],
|
|
28
|
+
HOOKS_HIDDEN_SECRET_VALUE: OBFUSCATED_SECRET_VALUE,
|
|
29
|
+
OBFUSCATED_SECRET_VALUE,
|
|
30
|
+
HOOKS_DIRECTORY: 'hooks',
|
|
31
|
+
ACTIONS_DIRECTORY: 'actions',
|
|
32
|
+
TRIGGERS_DIRECTORY: 'triggers',
|
|
33
|
+
RULES_CONFIGS_DIRECTORY: 'rules-configs',
|
|
34
|
+
PAGES_DIRECTORY: 'pages',
|
|
35
|
+
PAGE_LOGIN,
|
|
36
|
+
PAGE_GUARDIAN_MULTIFACTOR,
|
|
37
|
+
PAGE_PASSWORD_RESET,
|
|
38
|
+
PAGE_ERROR,
|
|
39
|
+
DATABASE_CONNECTIONS_DIRECTORY: 'database-connections',
|
|
40
|
+
DATABASE_SCRIPTS_CHANGE_EMAIL,
|
|
41
|
+
DATABASE_SCRIPTS_GET_USER,
|
|
42
|
+
EMAIL_TEMPLATES_TYPES: [
|
|
43
|
+
'verify_email',
|
|
44
|
+
'verify_email_by_code',
|
|
45
|
+
'reset_email',
|
|
46
|
+
'welcome_email',
|
|
47
|
+
'blocked_account',
|
|
48
|
+
'stolen_credentials',
|
|
49
|
+
'enrollment_email',
|
|
50
|
+
'mfa_oob_code',
|
|
51
|
+
'change_password',
|
|
52
|
+
'password_reset',
|
|
53
|
+
'user_invitation',
|
|
54
|
+
],
|
|
55
|
+
ACTIONS_TRIGGERS: [
|
|
56
|
+
'post-login',
|
|
57
|
+
'credentials-exchange',
|
|
58
|
+
'pre-user-registration',
|
|
59
|
+
'post-user-registration',
|
|
60
|
+
'post-change-password',
|
|
61
|
+
'send-phone-message',
|
|
62
|
+
],
|
|
63
|
+
EMAIL_TEMPLATES_DIRECTORY: 'emails',
|
|
64
|
+
EMAIL_VERIFY,
|
|
65
|
+
EMAIL_VERIFY_BY_CODE,
|
|
66
|
+
EMAIL_RESET,
|
|
67
|
+
EMAIL_WELCOME,
|
|
68
|
+
EMAIL_BLOCKED,
|
|
69
|
+
EMAIL_STOLEN_CREDENTIALS,
|
|
70
|
+
EMAIL_ENROLLMENT,
|
|
71
|
+
EMAIL_CHANGE_PASSWORD,
|
|
72
|
+
EMAIL_PASSWORD_RESET,
|
|
73
|
+
EMAIL_MFA_OOB_CODE,
|
|
74
|
+
EMAIL_USER_INVITATION,
|
|
75
|
+
GUARDIAN_DIRECTORY: 'guardian',
|
|
76
|
+
GUARDIAN_FACTORS_DIRECTORY: 'factors',
|
|
77
|
+
GUARDIAN_PROVIDERS_DIRECTORY: 'providers',
|
|
78
|
+
GUARDIAN_TEMPLATES_DIRECTORY: 'templates',
|
|
79
|
+
UNIVERSAL_LOGIN_TEMPLATE,
|
|
80
|
+
RESOURCE_SERVERS_DIRECTORY: 'resource-servers',
|
|
81
|
+
RESOURCE_SERVERS_CLIENT_NAME: 'resourceServers',
|
|
82
|
+
RESOURCE_SERVERS_MANAGEMENT_API_NAME: 'Auth0 Management API',
|
|
83
|
+
RESOURCE_SERVERS_ID_NAME: 'id',
|
|
84
|
+
CLIENTS_DIRECTORY: 'clients',
|
|
85
|
+
CLIENTS_GRANTS_DIRECTORY: 'grants',
|
|
86
|
+
BRANDING_DIRECTORY: 'branding',
|
|
87
|
+
BRANDING_TEMPLATES_DIRECTORY: 'templates',
|
|
88
|
+
BRANDING_TEMPLATES_YAML_DIRECTORY: 'branding_templates',
|
|
89
|
+
CLIENTS_CLIENT_NAME: 'clients',
|
|
90
|
+
CLIENTS_CLIENT_ID_NAME: 'client_id',
|
|
91
|
+
CONNECTIONS_DIRECTORY: 'connections',
|
|
92
|
+
CONNECTIONS_CLIENT_NAME: 'connections',
|
|
93
|
+
CONNECTIONS_ID_NAME: 'id',
|
|
94
|
+
ROLES_DIRECTORY: 'roles',
|
|
95
|
+
ATTACK_PROTECTION_DIRECTORY: 'attack-protection',
|
|
96
|
+
GUARDIAN_FACTORS: [
|
|
97
|
+
'sms',
|
|
98
|
+
'push-notification',
|
|
99
|
+
'otp',
|
|
100
|
+
'email',
|
|
101
|
+
'duo',
|
|
102
|
+
'webauthn-roaming',
|
|
103
|
+
'webauthn-platform',
|
|
104
|
+
'recovery-code',
|
|
105
|
+
],
|
|
106
|
+
GUARDIAN_POLICIES: ['all-applications', 'confidence-score'],
|
|
107
|
+
GUARDIAN_PHONE_PROVIDERS: ['auth0', 'twilio', 'phone-message-hook'],
|
|
108
|
+
GUARDIAN_PHONE_MESSAGE_TYPES: ['sms', 'voice'],
|
|
109
|
+
GUARDIAN_FACTOR_TEMPLATES: ['sms'],
|
|
110
|
+
GUARDIAN_FACTOR_PROVIDERS: {
|
|
111
|
+
sms: ['twilio'],
|
|
112
|
+
'push-notification': ['sns'],
|
|
113
|
+
},
|
|
114
|
+
PAGE_NAMES: [
|
|
115
|
+
`${PAGE_GUARDIAN_MULTIFACTOR}.html`,
|
|
116
|
+
`${PAGE_GUARDIAN_MULTIFACTOR}.json`,
|
|
117
|
+
`${PAGE_PASSWORD_RESET}.html`,
|
|
118
|
+
`${PAGE_PASSWORD_RESET}.json`,
|
|
119
|
+
`${PAGE_LOGIN}.html`,
|
|
120
|
+
`${PAGE_LOGIN}.json`,
|
|
121
|
+
`${PAGE_ERROR}.html`,
|
|
122
|
+
`${PAGE_ERROR}.json`,
|
|
123
|
+
],
|
|
124
|
+
DATABASE_SCRIPTS: [
|
|
125
|
+
DATABASE_SCRIPTS_GET_USER,
|
|
126
|
+
'create',
|
|
127
|
+
'verify',
|
|
128
|
+
'login',
|
|
129
|
+
'change_password',
|
|
130
|
+
'delete',
|
|
131
|
+
DATABASE_SCRIPTS_CHANGE_EMAIL,
|
|
132
|
+
],
|
|
133
|
+
DATABASE_SCRIPTS_NO_IMPORT: [
|
|
134
|
+
DATABASE_SCRIPTS_GET_USER,
|
|
135
|
+
'create',
|
|
136
|
+
'verify',
|
|
137
|
+
'login',
|
|
138
|
+
'change_password',
|
|
139
|
+
'delete',
|
|
140
|
+
],
|
|
141
|
+
DATABASE_SCRIPTS_IMPORT: [DATABASE_SCRIPTS_GET_USER, 'login'],
|
|
142
|
+
EMAIL_TEMPLATES_NAMES: [
|
|
143
|
+
`${EMAIL_VERIFY}.json`,
|
|
144
|
+
`${EMAIL_VERIFY}.html`,
|
|
145
|
+
`${EMAIL_VERIFY_BY_CODE}.json`,
|
|
146
|
+
`${EMAIL_VERIFY_BY_CODE}.html`,
|
|
147
|
+
`${EMAIL_RESET}.json`,
|
|
148
|
+
`${EMAIL_RESET}.html`,
|
|
149
|
+
`${EMAIL_WELCOME}.json`,
|
|
150
|
+
`${EMAIL_WELCOME}.html`,
|
|
151
|
+
`${EMAIL_BLOCKED}.json`,
|
|
152
|
+
`${EMAIL_BLOCKED}.html`,
|
|
153
|
+
`${EMAIL_STOLEN_CREDENTIALS}.json`,
|
|
154
|
+
`${EMAIL_STOLEN_CREDENTIALS}.html`,
|
|
155
|
+
`${EMAIL_ENROLLMENT}.json`,
|
|
156
|
+
`${EMAIL_ENROLLMENT}.html`,
|
|
157
|
+
`${EMAIL_CHANGE_PASSWORD}.json`,
|
|
158
|
+
`${EMAIL_CHANGE_PASSWORD}.html`,
|
|
159
|
+
`${EMAIL_PASSWORD_RESET}.json`,
|
|
160
|
+
`${EMAIL_PASSWORD_RESET}.html`,
|
|
161
|
+
`${EMAIL_MFA_OOB_CODE}.json`,
|
|
162
|
+
`${EMAIL_MFA_OOB_CODE}.html`,
|
|
163
|
+
`${EMAIL_USER_INVITATION}.json`,
|
|
164
|
+
`${EMAIL_USER_INVITATION}.html`,
|
|
165
|
+
],
|
|
166
|
+
SUPPORTED_BRANDING_TEMPLATES: [UNIVERSAL_LOGIN_TEMPLATE],
|
|
143
167
|
};
|
|
144
|
-
constants.UNIVERSAL_LOGIN_TEMPLATE = 'universal_login';
|
|
145
|
-
constants.SUPPORTED_BRANDING_TEMPLATES = [
|
|
146
|
-
constants.UNIVERSAL_LOGIN_TEMPLATE
|
|
147
|
-
];
|
|
148
|
-
constants.RESOURCE_SERVERS_DIRECTORY = 'resource-servers';
|
|
149
|
-
constants.RESOURCE_SERVERS_CLIENT_NAME = 'resourceServers';
|
|
150
|
-
constants.RESOURCE_SERVERS_MANAGEMENT_API_NAME = 'Auth0 Management API';
|
|
151
|
-
constants.RESOURCE_SERVERS_ID_NAME = 'id';
|
|
152
|
-
constants.CLIENTS_DIRECTORY = 'clients';
|
|
153
|
-
constants.CLIENTS_GRANTS_DIRECTORY = 'grants';
|
|
154
|
-
constants.BRANDING_DIRECTORY = 'branding';
|
|
155
|
-
constants.BRANDING_TEMPLATES_DIRECTORY = 'templates';
|
|
156
|
-
constants.BRANDING_TEMPLATES_YAML_DIRECTORY = 'branding_templates';
|
|
157
|
-
constants.CLIENTS_CLIENT_NAME = 'clients';
|
|
158
|
-
constants.CLIENTS_CLIENT_ID_NAME = 'client_id';
|
|
159
|
-
constants.CONNECTIONS_DIRECTORY = 'connections';
|
|
160
|
-
constants.CONNECTIONS_CLIENT_NAME = 'connections';
|
|
161
|
-
constants.CONNECTIONS_ID_NAME = 'id';
|
|
162
|
-
constants.CONCURRENT_CALLS = 5;
|
|
163
|
-
constants.ROLES_DIRECTORY = 'roles';
|
|
164
|
-
constants.ATTACK_PROTECTION_DIRECTORY = 'attack-protection';
|
|
165
168
|
exports.default = constants;
|