auth0-deploy-cli 7.4.0 → 7.5.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/.circleci/config.yml +15 -0
- package/.github/CODEOWNERS +1 -0
- package/.husky/pre-commit +2 -0
- package/.nyc_output/60b76a45-577b-4171-9982-a8e836ab7fd6.json +1 -0
- package/.nyc_output/processinfo/60b76a45-577b-4171-9982-a8e836ab7fd6.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +13 -1
- package/lib/args.js +89 -81
- package/lib/commands/export.js +51 -77
- package/lib/commands/import.js +45 -69
- package/lib/commands/index.js +11 -20
- package/lib/configFactory.js +19 -27
- package/lib/context/defaults.js +18 -41
- package/lib/context/directory/handlers/actions.js +77 -107
- package/lib/context/directory/handlers/attackProtection.js +59 -0
- package/lib/context/directory/handlers/clientGrants.js +45 -54
- package/lib/context/directory/handlers/clients.js +60 -79
- package/lib/context/directory/handlers/connections.js +65 -89
- package/lib/context/directory/handlers/databases.js +91 -123
- package/lib/context/directory/handlers/emailProvider.js +46 -57
- package/lib/context/directory/handlers/emailTemplates.js +67 -80
- package/lib/context/directory/handlers/guardianFactorProviders.js +41 -49
- package/lib/context/directory/handlers/guardianFactorTemplates.js +41 -49
- package/lib/context/directory/handlers/guardianFactors.js +41 -49
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +40 -50
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +40 -50
- package/lib/context/directory/handlers/guardianPolicies.js +40 -50
- package/lib/context/directory/handlers/hooks.js +55 -70
- package/lib/context/directory/handlers/index.js +53 -123
- package/lib/context/directory/handlers/migrations.js +36 -41
- package/lib/context/directory/handlers/organizations.js +54 -69
- package/lib/context/directory/handlers/pages.js +72 -86
- package/lib/context/directory/handlers/resourceServers.js +41 -49
- package/lib/context/directory/handlers/roles.js +49 -62
- package/lib/context/directory/handlers/rules.js +52 -68
- package/lib/context/directory/handlers/rulesConfigs.js +33 -32
- package/lib/context/directory/handlers/tenant.js +52 -47
- package/lib/context/directory/handlers/triggers.js +39 -54
- package/lib/context/directory/index.js +113 -101
- package/lib/context/index.js +96 -105
- package/lib/context/yaml/handlers/actions.js +71 -88
- package/lib/context/yaml/handlers/attackProtection.js +29 -0
- package/lib/context/yaml/handlers/clientGrants.js +36 -29
- package/lib/context/yaml/handlers/clients.js +61 -76
- package/lib/context/yaml/handlers/connections.js +76 -103
- package/lib/context/yaml/handlers/databases.js +64 -79
- package/lib/context/yaml/handlers/emailProvider.js +33 -30
- package/lib/context/yaml/handlers/emailTemplates.js +45 -54
- package/lib/context/yaml/handlers/guardianFactorProviders.js +27 -18
- package/lib/context/yaml/handlers/guardianFactorTemplates.js +27 -18
- package/lib/context/yaml/handlers/guardianFactors.js +27 -18
- package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +27 -20
- package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +27 -20
- package/lib/context/yaml/handlers/guardianPolicies.js +27 -20
- package/lib/context/yaml/handlers/hooks.js +57 -67
- package/lib/context/yaml/handlers/index.js +53 -123
- package/lib/context/yaml/handlers/migrations.js +23 -24
- package/lib/context/yaml/handlers/organizations.js +40 -38
- package/lib/context/yaml/handlers/pages.js +49 -58
- package/lib/context/yaml/handlers/resourceServers.js +27 -18
- package/lib/context/yaml/handlers/roles.js +34 -24
- package/lib/context/yaml/handlers/rules.js +48 -58
- package/lib/context/yaml/handlers/rulesConfigs.js +27 -18
- package/lib/context/yaml/handlers/tenant.js +44 -30
- package/lib/context/yaml/handlers/triggers.js +32 -23
- package/lib/context/yaml/index.js +127 -142
- package/lib/index.js +73 -79
- package/lib/logger.js +18 -22
- package/lib/readonly.js +74 -66
- package/lib/tools/ValidationError.js +8 -13
- package/lib/tools/auth0/client.js +143 -133
- package/lib/tools/auth0/handlers/actions.js +231 -243
- package/lib/tools/auth0/handlers/attackProtection.js +86 -0
- package/lib/tools/auth0/handlers/branding.js +47 -46
- package/lib/tools/auth0/handlers/clientGrants.js +118 -116
- package/lib/tools/auth0/handlers/clients.js +72 -90
- package/lib/tools/auth0/handlers/connections.js +150 -118
- package/lib/tools/auth0/handlers/databases.js +127 -124
- package/lib/tools/auth0/handlers/default.js +186 -189
- package/lib/tools/auth0/handlers/emailProvider.js +67 -78
- package/lib/tools/auth0/handlers/emailTemplates.js +116 -92
- package/lib/tools/auth0/handlers/guardianFactorProviders.js +66 -81
- package/lib/tools/auth0/handlers/guardianFactorTemplates.js +60 -71
- package/lib/tools/auth0/handlers/guardianFactors.js +56 -63
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +80 -79
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +77 -76
- package/lib/tools/auth0/handlers/guardianPolicies.js +59 -62
- package/lib/tools/auth0/handlers/hooks.js +201 -227
- package/lib/tools/auth0/handlers/index.js +53 -111
- package/lib/tools/auth0/handlers/migrations.js +99 -79
- package/lib/tools/auth0/handlers/organizations.js +225 -247
- package/lib/tools/auth0/handlers/pages.js +116 -154
- package/lib/tools/auth0/handlers/prompts.js +47 -46
- package/lib/tools/auth0/handlers/resourceServers.js +88 -112
- package/lib/tools/auth0/handlers/roles.js +203 -220
- package/lib/tools/auth0/handlers/rules.js +168 -189
- package/lib/tools/auth0/handlers/rulesConfigs.js +54 -63
- package/lib/tools/auth0/handlers/tenant.js +88 -64
- package/lib/tools/auth0/handlers/triggers.js +126 -126
- package/lib/tools/auth0/index.js +92 -85
- package/lib/tools/auth0/schema.js +39 -31
- package/lib/tools/constants.js +111 -21
- package/lib/tools/deploy.js +35 -32
- package/lib/tools/index.js +19 -32
- package/lib/tools/logger.js +11 -12
- package/lib/tools/utils.js +255 -282
- package/lib/utils.js +167 -190
- package/package.json +4 -3
- package/tsconfig.json +96 -0
- package/typescript-migration-progress.sh +22 -0
- package/.nyc_output/597f412e-a239-4319-ad5b-ddb87fc39e67.json +0 -1
- package/.nyc_output/processinfo/597f412e-a239-4319-ad5b-ddb87fc39e67.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"parent":null,"pid":227,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/mocha","--recursive","--require","@babel/register","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1646815466467,"ppid":216,"coverageFilename":"/home/circleci/repo/.nyc_output/60b76a45-577b-4171-9982-a8e836ab7fd6.json","externalId":"","uuid":"60b76a45-577b-4171-9982-a8e836ab7fd6","files":["/home/circleci/repo/src/context/index.js","/home/circleci/repo/src/context/yaml/index.js","/home/circleci/repo/src/tools/index.js","/home/circleci/repo/src/tools/constants.js","/home/circleci/repo/src/tools/deploy.js","/home/circleci/repo/src/tools/auth0/index.js","/home/circleci/repo/src/tools/auth0/client.js","/home/circleci/repo/src/tools/utils.js","/home/circleci/repo/src/tools/logger.js","/home/circleci/repo/src/tools/auth0/schema.js","/home/circleci/repo/src/tools/auth0/handlers/index.js","/home/circleci/repo/src/tools/auth0/handlers/rules.js","/home/circleci/repo/src/tools/ValidationError.js","/home/circleci/repo/src/tools/auth0/handlers/default.js","/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js","/home/circleci/repo/src/tools/auth0/handlers/hooks.js","/home/circleci/repo/src/tools/auth0/handlers/pages.js","/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js","/home/circleci/repo/src/tools/auth0/handlers/databases.js","/home/circleci/repo/src/tools/auth0/handlers/connections.js","/home/circleci/repo/src/tools/auth0/handlers/clients.js","/home/circleci/repo/src/tools/auth0/handlers/tenant.js","/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js","/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js","/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/tools/auth0/handlers/roles.js","/home/circleci/repo/src/tools/auth0/handlers/branding.js","/home/circleci/repo/src/tools/auth0/handlers/prompts.js","/home/circleci/repo/src/tools/auth0/handlers/migrations.js","/home/circleci/repo/src/tools/auth0/handlers/actions.js","/home/circleci/repo/src/tools/auth0/handlers/triggers.js","/home/circleci/repo/src/tools/auth0/handlers/organizations.js","/home/circleci/repo/src/tools/auth0/handlers/attackProtection.js","/home/circleci/repo/src/logger.js","/home/circleci/repo/src/utils.js","/home/circleci/repo/src/context/yaml/handlers/index.js","/home/circleci/repo/src/context/yaml/handlers/pages.js","/home/circleci/repo/src/context/yaml/handlers/rules.js","/home/circleci/repo/src/context/yaml/handlers/hooks.js","/home/circleci/repo/src/context/yaml/handlers/clients.js","/home/circleci/repo/src/context/yaml/handlers/tenant.js","/home/circleci/repo/src/context/yaml/handlers/emailProvider.js","/home/circleci/repo/src/context/defaults.js","/home/circleci/repo/src/context/yaml/handlers/connections.js","/home/circleci/repo/src/context/yaml/handlers/databases.js","/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js","/home/circleci/repo/src/context/yaml/handlers/clientGrants.js","/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js","/home/circleci/repo/src/context/yaml/handlers/resourceServers.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js","/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js","/home/circleci/repo/src/context/yaml/handlers/roles.js","/home/circleci/repo/src/context/yaml/handlers/organizations.js","/home/circleci/repo/src/context/yaml/handlers/migrations.js","/home/circleci/repo/src/context/yaml/handlers/actions.js","/home/circleci/repo/src/context/yaml/handlers/triggers.js","/home/circleci/repo/src/context/yaml/handlers/attackProtection.js","/home/circleci/repo/src/readonly.js","/home/circleci/repo/src/context/directory/index.js","/home/circleci/repo/src/context/directory/handlers/index.js","/home/circleci/repo/src/context/directory/handlers/pages.js","/home/circleci/repo/src/context/directory/handlers/rules.js","/home/circleci/repo/src/context/directory/handlers/hooks.js","/home/circleci/repo/src/context/directory/handlers/clients.js","/home/circleci/repo/src/context/directory/handlers/tenant.js","/home/circleci/repo/src/context/directory/handlers/emailProvider.js","/home/circleci/repo/src/context/directory/handlers/connections.js","/home/circleci/repo/src/context/directory/handlers/databases.js","/home/circleci/repo/src/context/directory/handlers/emailTemplates.js","/home/circleci/repo/src/context/directory/handlers/clientGrants.js","/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js","/home/circleci/repo/src/context/directory/handlers/resourceServers.js","/home/circleci/repo/src/context/directory/handlers/guardianFactors.js","/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js","/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js","/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js","/home/circleci/repo/src/context/directory/handlers/roles.js","/home/circleci/repo/src/context/directory/handlers/migrations.js","/home/circleci/repo/src/context/directory/handlers/actions.js","/home/circleci/repo/src/context/directory/handlers/organizations.js","/home/circleci/repo/src/context/directory/handlers/triggers.js","/home/circleci/repo/src/context/directory/handlers/attackProtection.js","/home/circleci/repo/src/index.js","/home/circleci/repo/src/args.js","/home/circleci/repo/src/commands/index.js","/home/circleci/repo/src/commands/import.js","/home/circleci/repo/src/configFactory.js","/home/circleci/repo/src/commands/export.js"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"processes":{"597f412e-a239-4319-ad5b-ddb87fc39e67":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/constants.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/deploy.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/client.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/utils.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/logger.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/schema.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/ValidationError.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/logger.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/utils.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/defaults.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/readonly.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/args.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/commands/index.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/commands/import.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/configFactory.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"],"/home/circleci/repo/src/commands/export.js":["597f412e-a239-4319-ad5b-ddb87fc39e67"]},"externalIds":{}}
|
|
1
|
+
{"processes":{"60b76a45-577b-4171-9982-a8e836ab7fd6":{"parent":null,"children":[]}},"files":{"/home/circleci/repo/src/context/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/constants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/deploy.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/client.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/utils.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/logger.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/schema.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/rules.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/ValidationError.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/default.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/hooks.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/pages.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/resourceServers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/databases.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/connections.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/clients.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/tenant.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/emailProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/clientGrants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/roles.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/branding.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/prompts.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/migrations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/actions.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/triggers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/organizations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/tools/auth0/handlers/attackProtection.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/logger.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/utils.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/pages.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/rules.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/hooks.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/clients.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/tenant.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/emailProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/defaults.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/connections.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/databases.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/emailTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/clientGrants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/resourceServers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactors.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/roles.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/organizations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/migrations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/actions.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/triggers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/yaml/handlers/attackProtection.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/readonly.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/pages.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/rules.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/hooks.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/clients.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/tenant.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/emailProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/connections.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/databases.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/emailTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/clientGrants.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/rulesConfigs.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/resourceServers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianFactors.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/guardianPolicies.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/roles.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/migrations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/actions.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/organizations.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/triggers.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/context/directory/handlers/attackProtection.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/args.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/commands/index.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/commands/import.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/configFactory.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"],"/home/circleci/repo/src/commands/export.js":["60b76a45-577b-4171-9982-a8e836ab7fd6"]},"externalIds":{}}
|
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [7.5.0] - 2022-03-08
|
|
11
|
+
### Added
|
|
12
|
+
- Support for attack protection configuration management [#428]
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Excluded connection properties from getting deleted upon update [#430]
|
|
16
|
+
- Organizations in YAML format are skipped when not defined [#388]
|
|
17
|
+
|
|
10
18
|
## [7.4.0] - 2022-02-24
|
|
11
19
|
### Added
|
|
12
20
|
- Allowing @@ array variable replacement to work when wrapped in quotes [#421]
|
|
@@ -426,6 +434,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
426
434
|
[#364]: https://github.com/auth0/auth0-deploy-cli/issues/364
|
|
427
435
|
[#367]: https://github.com/auth0/auth0-deploy-cli/issues/367
|
|
428
436
|
[#379]: https://github.com/auth0/auth0-deploy-cli/issues/379
|
|
437
|
+
[#388]: https://github.com/auth0/auth0-deploy-cli/issues/388
|
|
429
438
|
[#400]: https://github.com/auth0/auth0-deploy-cli/issues/400
|
|
430
439
|
[#401]: https://github.com/auth0/auth0-deploy-cli/issues/401
|
|
431
440
|
[#403]: https://github.com/auth0/auth0-deploy-cli/issues/403
|
|
@@ -434,8 +443,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
434
443
|
[#412]: https://github.com/auth0/auth0-deploy-cli/issues/412
|
|
435
444
|
[#416]: https://github.com/auth0/auth0-deploy-cli/issues/416
|
|
436
445
|
[#421]: https://github.com/auth0/auth0-deploy-cli/issues/421
|
|
446
|
+
[#428]: https://github.com/auth0/auth0-deploy-cli/issues/428
|
|
447
|
+
[#430]: https://github.com/auth0/auth0-deploy-cli/issues/430
|
|
437
448
|
|
|
438
|
-
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.
|
|
449
|
+
[Unreleased]: https://github.com/auth0/auth0-deploy-cli/compare/v7.5.0...HEAD
|
|
450
|
+
[7.5.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.4.0...v7.5.0
|
|
439
451
|
[7.4.0]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.7...v7.4.0
|
|
440
452
|
[7.3.7]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.6...v7.3.7
|
|
441
453
|
[7.3.6]: https://github.com/auth0/auth0-deploy-cli/compare/v7.3.5...v7.3.6
|
package/lib/args.js
CHANGED
|
@@ -1,86 +1,94 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.getParams =
|
|
7
|
-
|
|
8
|
-
var _yargs = require("yargs");
|
|
9
|
-
|
|
10
|
-
var _yargs2 = _interopRequireDefault(_yargs);
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getParams = void 0;
|
|
7
|
+
const yargs_1 = __importDefault(require("yargs"));
|
|
14
8
|
function getParams() {
|
|
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
|
-
|
|
9
|
+
const args = yargs_1.default
|
|
10
|
+
.demandCommand(1, 'A command is required')
|
|
11
|
+
.usage('Auth0 Deploy CLI')
|
|
12
|
+
.option('debug', {
|
|
13
|
+
alias: 'd',
|
|
14
|
+
describe: 'Dump extra debug information.',
|
|
15
|
+
type: 'boolean',
|
|
16
|
+
default: false
|
|
17
|
+
})
|
|
18
|
+
.option('proxy_url', {
|
|
19
|
+
alias: 'p',
|
|
20
|
+
describe: 'A url for proxying requests, only set this if you are behind a proxy.',
|
|
21
|
+
type: 'string'
|
|
22
|
+
})
|
|
23
|
+
.command(['import', 'deploy'], 'Deploy Configuration', {
|
|
24
|
+
input_file: {
|
|
25
|
+
alias: 'i',
|
|
26
|
+
describe: 'The updates to deploy. Either a JSON file, or directory that contains the correct file layout. See README and online for more info.',
|
|
27
|
+
type: 'string',
|
|
28
|
+
demandOption: true
|
|
29
|
+
},
|
|
30
|
+
config_file: {
|
|
31
|
+
alias: 'c',
|
|
32
|
+
describe: 'The JSON configuration file.',
|
|
33
|
+
type: 'string'
|
|
34
|
+
},
|
|
35
|
+
env: {
|
|
36
|
+
alias: 'e',
|
|
37
|
+
describe: 'Override the mappings in config with process.env environment variables.',
|
|
38
|
+
type: 'string',
|
|
39
|
+
boolean: true,
|
|
40
|
+
default: true
|
|
41
|
+
},
|
|
42
|
+
secret: {
|
|
43
|
+
alias: 'x',
|
|
44
|
+
describe: 'The client secret, this allows you to encrypt the secret in your build configuration instead of storing it in a config file',
|
|
45
|
+
type: 'string'
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
.command(['export', 'dump'], 'Export Auth0 Tenant Configuration', {
|
|
49
|
+
output_folder: {
|
|
50
|
+
alias: 'o',
|
|
51
|
+
describe: 'The output directory.',
|
|
52
|
+
type: 'string',
|
|
53
|
+
demandOption: true
|
|
54
|
+
},
|
|
55
|
+
format: {
|
|
56
|
+
alias: 'f',
|
|
57
|
+
describe: 'The output format.',
|
|
58
|
+
type: 'string',
|
|
59
|
+
choices: ['yaml', 'directory'],
|
|
60
|
+
demandOption: true
|
|
61
|
+
},
|
|
62
|
+
config_file: {
|
|
63
|
+
alias: 'c',
|
|
64
|
+
describe: 'The JSON configuration file.',
|
|
65
|
+
type: 'string'
|
|
66
|
+
},
|
|
67
|
+
secret: {
|
|
68
|
+
alias: 'x',
|
|
69
|
+
describe: 'The client secret, this allows you to encrypt the secret in your build configuration instead of storing it in a config file',
|
|
70
|
+
type: 'string'
|
|
71
|
+
},
|
|
72
|
+
export_ids: {
|
|
73
|
+
alias: 'e',
|
|
74
|
+
describe: 'Export identifier field for each object type.',
|
|
75
|
+
type: 'boolean',
|
|
76
|
+
default: false
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
.example('$0 export -c config.json -f yaml -o path/to/export', 'Dump Auth0 config to folder in YAML format')
|
|
80
|
+
.example('$0 export -c config.json -f directory -o path/to/export', 'Dump Auth0 config to folder in directory format')
|
|
81
|
+
.example('$0 import -c config.json -i tenant.yaml', 'Deploy Auth0 via YAML')
|
|
82
|
+
.example('$0 import -c config.json -i path/to/files', 'Deploy Auth0 via Path')
|
|
83
|
+
.example('$0 dump -c config.json -f yaml -o path/to/export', 'Dump Auth0 config to folder in YAML format')
|
|
84
|
+
.example('$0 dump -c config.json -f directory -o path/to/export', 'Dump Auth0 config to folder in directory format')
|
|
85
|
+
.example('$0 deploy -c config.json -i tenant.yaml', 'Deploy Auth0 via YAML')
|
|
86
|
+
.example('$0 deploy -c config.json -i path/to/files', 'Deploy Auth0 via Path')
|
|
87
|
+
.epilogue('See README (https://github.com/auth0/auth0-deploy-cli) for more in-depth information on configuration and setup.')
|
|
88
|
+
.wrap(null);
|
|
89
|
+
return args.argv;
|
|
81
90
|
}
|
|
82
|
-
|
|
91
|
+
exports.getParams = getParams;
|
|
83
92
|
exports.default = {
|
|
84
|
-
|
|
93
|
+
getParams
|
|
85
94
|
};
|
|
86
|
-
exports.getParams = getParams;
|
package/lib/commands/export.js
CHANGED
|
@@ -1,79 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const path_1 = __importDefault(require("path"));
|
|
16
|
+
const nconf_1 = __importDefault(require("nconf"));
|
|
17
|
+
const mkdirp_1 = __importDefault(require("mkdirp"));
|
|
18
|
+
const logger_1 = __importDefault(require("../logger"));
|
|
19
|
+
const utils_1 = require("../utils");
|
|
20
|
+
const context_1 = __importDefault(require("../context"));
|
|
21
|
+
function deploy(params) {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const { output_folder: outputFolder, base_path: basePath, config_file: configFile, config: configObj, export_ids: exportIds, secret } = params;
|
|
24
|
+
nconf_1.default.env().use('memory');
|
|
25
|
+
if (configFile) {
|
|
26
|
+
nconf_1.default.file(configFile);
|
|
27
|
+
}
|
|
28
|
+
const overrides = Object.assign({ AUTH0_INPUT_FILE: outputFolder, AUTH0_BASE_PATH: basePath, AUTH0_CONFIG_FILE: configFile }, configObj || {});
|
|
29
|
+
// Prepare configuration by initializing nconf, then passing that as the provider to the config object
|
|
30
|
+
// Allow passed in secret to override the configured one
|
|
31
|
+
if (secret) {
|
|
32
|
+
overrides.AUTH0_CLIENT_SECRET = secret;
|
|
33
|
+
}
|
|
34
|
+
// Allow passed in export_ids to override the configured one
|
|
35
|
+
if (exportIds) {
|
|
36
|
+
overrides.AUTH0_EXPORT_IDENTIFIERS = exportIds;
|
|
37
|
+
}
|
|
38
|
+
// Check output folder
|
|
39
|
+
if (!(0, utils_1.isDirectory)(outputFolder)) {
|
|
40
|
+
logger_1.default.info(`Creating ${outputFolder}`);
|
|
41
|
+
mkdirp_1.default.sync(outputFolder);
|
|
42
|
+
}
|
|
43
|
+
if (params.format === 'yaml') {
|
|
44
|
+
overrides.AUTH0_INPUT_FILE = path_1.default.join(outputFolder, 'tenant.yaml');
|
|
45
|
+
}
|
|
46
|
+
nconf_1.default.overrides(overrides);
|
|
47
|
+
// Setup context and load
|
|
48
|
+
const context = yield (0, context_1.default)(nconf_1.default.get());
|
|
49
|
+
yield context.dump();
|
|
50
|
+
logger_1.default.info('Export Successful');
|
|
51
|
+
});
|
|
52
|
+
}
|
|
6
53
|
exports.default = deploy;
|
|
7
|
-
|
|
8
|
-
var _path = require("path");
|
|
9
|
-
|
|
10
|
-
var _path2 = _interopRequireDefault(_path);
|
|
11
|
-
|
|
12
|
-
var _nconf = require("nconf");
|
|
13
|
-
|
|
14
|
-
var _nconf2 = _interopRequireDefault(_nconf);
|
|
15
|
-
|
|
16
|
-
var _mkdirp = require("mkdirp");
|
|
17
|
-
|
|
18
|
-
var _mkdirp2 = _interopRequireDefault(_mkdirp);
|
|
19
|
-
|
|
20
|
-
var _logger = require("../logger");
|
|
21
|
-
|
|
22
|
-
var _logger2 = _interopRequireDefault(_logger);
|
|
23
|
-
|
|
24
|
-
var _utils = require("../utils");
|
|
25
|
-
|
|
26
|
-
var _context = require("../context");
|
|
27
|
-
|
|
28
|
-
var _context2 = _interopRequireDefault(_context);
|
|
29
|
-
|
|
30
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
|
-
|
|
32
|
-
async function deploy(params) {
|
|
33
|
-
const {
|
|
34
|
-
output_folder: outputFolder,
|
|
35
|
-
base_path: basePath,
|
|
36
|
-
config_file: configFile,
|
|
37
|
-
config: configObj,
|
|
38
|
-
export_ids: exportIds,
|
|
39
|
-
secret
|
|
40
|
-
} = params;
|
|
41
|
-
|
|
42
|
-
_nconf2.default.env().use('memory');
|
|
43
|
-
|
|
44
|
-
if (configFile) {
|
|
45
|
-
_nconf2.default.file(configFile);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const overrides = {
|
|
49
|
-
AUTH0_INPUT_FILE: outputFolder,
|
|
50
|
-
AUTH0_BASE_PATH: basePath,
|
|
51
|
-
AUTH0_CONFIG_FILE: configFile,
|
|
52
|
-
...(configObj || {})
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
if (secret) {
|
|
56
|
-
overrides.AUTH0_CLIENT_SECRET = secret;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (exportIds) {
|
|
60
|
-
overrides.AUTH0_EXPORT_IDENTIFIERS = exportIds;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
if (!(0, _utils.isDirectory)(outputFolder)) {
|
|
64
|
-
_logger2.default.info(`Creating ${outputFolder}`);
|
|
65
|
-
|
|
66
|
-
_mkdirp2.default.sync(outputFolder);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (params.format === 'yaml') {
|
|
70
|
-
overrides.AUTH0_INPUT_FILE = _path2.default.join(outputFolder, 'tenant.yaml');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
_nconf2.default.overrides(overrides);
|
|
74
|
-
|
|
75
|
-
const context = await (0, _context2.default)(_nconf2.default.get());
|
|
76
|
-
await context.dump();
|
|
77
|
-
|
|
78
|
-
_logger2.default.info('Export Successful');
|
|
79
|
-
}
|
package/lib/commands/import.js
CHANGED
|
@@ -1,71 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const nconf_1 = __importDefault(require("nconf"));
|
|
16
|
+
const configFactory_1 = __importDefault(require("../configFactory"));
|
|
17
|
+
const tools_1 = require("../tools");
|
|
18
|
+
const logger_1 = __importDefault(require("../logger"));
|
|
19
|
+
const context_1 = __importDefault(require("../context"));
|
|
20
|
+
function deploy(params) {
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const { input_file: inputFile, base_path: basePath, config_file: configFile, config: configObj, env, secret } = params;
|
|
23
|
+
nconf_1.default.env().use('memory');
|
|
24
|
+
if (configFile) {
|
|
25
|
+
nconf_1.default.file(configFile);
|
|
26
|
+
}
|
|
27
|
+
const overrides = Object.assign({ AUTH0_INPUT_FILE: inputFile, AUTH0_BASE_PATH: basePath, AUTH0_CONFIG_FILE: configFile, AUTH0_KEYWORD_REPLACE_MAPPINGS: {} }, configObj || {});
|
|
28
|
+
// Prepare configuration by initializing nconf, then passing that as the provider to the config object
|
|
29
|
+
// Allow passed in secret to override the configured one
|
|
30
|
+
if (secret) {
|
|
31
|
+
overrides.AUTH0_CLIENT_SECRET = secret;
|
|
32
|
+
}
|
|
33
|
+
if (env) {
|
|
34
|
+
const mappings = nconf_1.default.get('AUTH0_KEYWORD_REPLACE_MAPPINGS') || {};
|
|
35
|
+
nconf_1.default.set('AUTH0_KEYWORD_REPLACE_MAPPINGS', Object.assign(mappings, process.env));
|
|
36
|
+
}
|
|
37
|
+
nconf_1.default.overrides(overrides);
|
|
38
|
+
// Setup context and load
|
|
39
|
+
const context = yield (0, context_1.default)(nconf_1.default.get());
|
|
40
|
+
yield context.load();
|
|
41
|
+
const config = (0, configFactory_1.default)();
|
|
42
|
+
config.setProvider((key) => nconf_1.default.get(key));
|
|
43
|
+
yield (0, tools_1.deploy)(context.assets, context.mgmtClient, config);
|
|
44
|
+
logger_1.default.info('Import Successful');
|
|
45
|
+
});
|
|
46
|
+
}
|
|
6
47
|
exports.default = deploy;
|
|
7
|
-
|
|
8
|
-
var _nconf = require("nconf");
|
|
9
|
-
|
|
10
|
-
var _nconf2 = _interopRequireDefault(_nconf);
|
|
11
|
-
|
|
12
|
-
var _configFactory = require("../configFactory");
|
|
13
|
-
|
|
14
|
-
var _configFactory2 = _interopRequireDefault(_configFactory);
|
|
15
|
-
|
|
16
|
-
var _tools = require("../tools");
|
|
17
|
-
|
|
18
|
-
var _logger = require("../logger");
|
|
19
|
-
|
|
20
|
-
var _logger2 = _interopRequireDefault(_logger);
|
|
21
|
-
|
|
22
|
-
var _context = require("../context");
|
|
23
|
-
|
|
24
|
-
var _context2 = _interopRequireDefault(_context);
|
|
25
|
-
|
|
26
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
|
-
|
|
28
|
-
async function deploy(params) {
|
|
29
|
-
const {
|
|
30
|
-
input_file: inputFile,
|
|
31
|
-
base_path: basePath,
|
|
32
|
-
config_file: configFile,
|
|
33
|
-
config: configObj,
|
|
34
|
-
env,
|
|
35
|
-
secret
|
|
36
|
-
} = params;
|
|
37
|
-
|
|
38
|
-
_nconf2.default.env().use('memory');
|
|
39
|
-
|
|
40
|
-
if (configFile) {
|
|
41
|
-
_nconf2.default.file(configFile);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const overrides = {
|
|
45
|
-
AUTH0_INPUT_FILE: inputFile,
|
|
46
|
-
AUTH0_BASE_PATH: basePath,
|
|
47
|
-
AUTH0_CONFIG_FILE: configFile,
|
|
48
|
-
AUTH0_KEYWORD_REPLACE_MAPPINGS: {},
|
|
49
|
-
...(configObj || {})
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
if (secret) {
|
|
53
|
-
overrides.AUTH0_CLIENT_SECRET = secret;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (env) {
|
|
57
|
-
const mappings = _nconf2.default.get('AUTH0_KEYWORD_REPLACE_MAPPINGS') || {};
|
|
58
|
-
|
|
59
|
-
_nconf2.default.set('AUTH0_KEYWORD_REPLACE_MAPPINGS', Object.assign(mappings, process.env));
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
_nconf2.default.overrides(overrides);
|
|
63
|
-
|
|
64
|
-
const context = await (0, _context2.default)(_nconf2.default.get());
|
|
65
|
-
await context.load();
|
|
66
|
-
const config = (0, _configFactory2.default)();
|
|
67
|
-
config.setProvider(key => _nconf2.default.get(key));
|
|
68
|
-
await (0, _tools.deploy)(context.assets, context.mgmtClient, config);
|
|
69
|
-
|
|
70
|
-
_logger2.default.info('Import Successful');
|
|
71
|
-
}
|
package/lib/commands/index.js
CHANGED
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _import2 = _interopRequireDefault(_import);
|
|
10
|
-
|
|
11
|
-
var _export = require("./export");
|
|
12
|
-
|
|
13
|
-
var _export2 = _interopRequireDefault(_export);
|
|
14
|
-
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const import_1 = __importDefault(require("./import"));
|
|
7
|
+
const export_1 = __importDefault(require("./export"));
|
|
17
8
|
exports.default = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
9
|
+
import: import_1.default,
|
|
10
|
+
export: export_1.default,
|
|
11
|
+
deploy: import_1.default,
|
|
12
|
+
dump: export_1.default
|
|
13
|
+
};
|
package/lib/configFactory.js
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
module.exports = function () {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
config.setValue = function setValue(key, value) {
|
|
24
|
-
settings[key] = value;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return config;
|
|
28
|
-
};
|
|
2
|
+
const settings = {};
|
|
3
|
+
let currentProvider = null;
|
|
4
|
+
const config = function getConfig(key) {
|
|
5
|
+
if (settings && settings[key]) {
|
|
6
|
+
return settings[key];
|
|
7
|
+
}
|
|
8
|
+
if (!currentProvider) {
|
|
9
|
+
throw new Error('A configuration provider has not been set');
|
|
10
|
+
}
|
|
11
|
+
return currentProvider(key);
|
|
12
|
+
};
|
|
13
|
+
config.setProvider = function setProvider(providerFunction) {
|
|
14
|
+
currentProvider = providerFunction;
|
|
15
|
+
};
|
|
16
|
+
config.setValue = function setValue(key, value) {
|
|
17
|
+
settings[key] = value;
|
|
18
|
+
};
|
|
19
|
+
return config;
|
|
20
|
+
};
|