auth0-deploy-cli 7.17.2 → 7.17.4

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.
Files changed (149) hide show
  1. package/.nyc_output/67e163b9-d5bd-4ae5-9b74-0b04dfeaf361.json +1 -0
  2. package/.nyc_output/processinfo/{a8141e8d-24e2-49c7-9098-d182564d6158.json → 67e163b9-d5bd-4ae5-9b74-0b04dfeaf361.json} +1 -1
  3. package/.nyc_output/processinfo/f2a37c08-0ae4-478f-8782-0e1416b1d10e.json +1 -0
  4. package/.nyc_output/processinfo/f4c8ad6c-7554-4bd2-8c36-1202264880e7.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -1
  6. package/CHANGELOG.md +17 -1
  7. package/README.md +5 -4
  8. package/coverage/lcov-report/index.html +25 -25
  9. package/coverage/lcov-report/src/args.ts.html +1 -1
  10. package/coverage/lcov-report/src/commands/export.ts.html +1 -1
  11. package/coverage/lcov-report/src/commands/import.ts.html +1 -1
  12. package/coverage/lcov-report/src/commands/index.html +1 -1
  13. package/coverage/lcov-report/src/configFactory.ts.html +1 -1
  14. package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
  15. package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +1 -1
  16. package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +1 -1
  17. package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +1 -1
  18. package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +1 -1
  19. package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +1 -1
  20. package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +1 -1
  21. package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +1 -1
  22. package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +1 -1
  23. package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +1 -1
  24. package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +1 -1
  25. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +1 -1
  26. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +1 -1
  27. package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +1 -1
  28. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  29. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  30. package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +1 -1
  31. package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +1 -1
  32. package/coverage/lcov-report/src/context/directory/handlers/index.html +1 -1
  33. package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
  34. package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +1 -1
  35. package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +1 -1
  36. package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +1 -1
  37. package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +1 -1
  38. package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +1 -1
  39. package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +1 -1
  40. package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +1 -1
  41. package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +1 -1
  42. package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +1 -1
  43. package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +1 -1
  44. package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +1 -1
  45. package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +1 -1
  46. package/coverage/lcov-report/src/context/directory/index.html +1 -1
  47. package/coverage/lcov-report/src/context/directory/index.ts.html +1 -1
  48. package/coverage/lcov-report/src/context/index.html +1 -1
  49. package/coverage/lcov-report/src/context/index.ts.html +1 -1
  50. package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +1 -1
  51. package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +1 -1
  52. package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +1 -1
  53. package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +1 -1
  54. package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +1 -1
  55. package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +1 -1
  56. package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +1 -1
  57. package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +1 -1
  58. package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +1 -1
  59. package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +1 -1
  60. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +1 -1
  61. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +1 -1
  62. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +1 -1
  63. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  64. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  65. package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +1 -1
  66. package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +1 -1
  67. package/coverage/lcov-report/src/context/yaml/handlers/index.html +1 -1
  68. package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
  69. package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +1 -1
  70. package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +1 -1
  71. package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +1 -1
  72. package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +1 -1
  73. package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +1 -1
  74. package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +1 -1
  75. package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +1 -1
  76. package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +1 -1
  77. package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +1 -1
  78. package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +1 -1
  79. package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +1 -1
  80. package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +1 -1
  81. package/coverage/lcov-report/src/context/yaml/index.html +1 -1
  82. package/coverage/lcov-report/src/context/yaml/index.ts.html +1 -1
  83. package/coverage/lcov-report/src/index.html +16 -16
  84. package/coverage/lcov-report/src/index.ts.html +1 -1
  85. package/coverage/lcov-report/src/keywordPreservation.ts.html +137 -95
  86. package/coverage/lcov-report/src/logger.ts.html +2 -2
  87. package/coverage/lcov-report/src/readonly.ts.html +1 -1
  88. package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +1 -1
  89. package/coverage/lcov-report/src/tools/auth0/client.ts.html +1 -1
  90. package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +1 -1
  91. package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +1 -1
  92. package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +1 -1
  93. package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +1 -1
  94. package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +1 -1
  95. package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +1 -1
  96. package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +1 -1
  97. package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +1 -1
  98. package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +15 -15
  99. package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +1 -1
  100. package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +1 -1
  101. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +1 -1
  102. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +1 -1
  103. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +1 -1
  104. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  105. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  106. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +1 -1
  107. package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +1 -1
  108. package/coverage/lcov-report/src/tools/auth0/handlers/index.html +13 -13
  109. package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
  110. package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +1 -1
  111. package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +1 -1
  112. package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +1 -1
  113. package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +1 -1
  114. package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +1 -1
  115. package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +1 -1
  116. package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +1 -1
  117. package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +1 -1
  118. package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +1 -1
  119. package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +137 -74
  120. package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +1 -1
  121. package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +1 -1
  122. package/coverage/lcov-report/src/tools/auth0/index.html +1 -1
  123. package/coverage/lcov-report/src/tools/auth0/index.ts.html +1 -1
  124. package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
  125. package/coverage/lcov-report/src/tools/calculateChanges.ts.html +1 -1
  126. package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
  127. package/coverage/lcov-report/src/tools/deploy.ts.html +1 -1
  128. package/coverage/lcov-report/src/tools/index.html +1 -1
  129. package/coverage/lcov-report/src/tools/index.ts.html +1 -1
  130. package/coverage/lcov-report/src/tools/utils.ts.html +18 -18
  131. package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
  132. package/coverage/lcov-report/src/types.ts.html +1 -1
  133. package/coverage/lcov-report/src/utils.ts.html +1 -1
  134. package/coverage/lcov.info +310 -292
  135. package/docs/keyword-replacement.md +13 -4
  136. package/docs/using-as-cli.md +1 -1
  137. package/docs/using-as-node-module.md +1 -1
  138. package/lib/keywordPreservation.d.ts +32 -30
  139. package/lib/keywordPreservation.js +18 -7
  140. package/lib/keywordPreservation.js.map +1 -1
  141. package/lib/tools/auth0/handlers/tenant.d.ts +2 -4
  142. package/lib/tools/auth0/handlers/tenant.js +56 -30
  143. package/lib/tools/auth0/handlers/tenant.js.map +1 -1
  144. package/package.json +1 -1
  145. package/.nyc_output/a8141e8d-24e2-49c7-9098-d182564d6158.json +0 -1
  146. package/.nyc_output/processinfo/209afba3-7003-49fd-8f26-8a0bbbe8fc6b.json +0 -1
  147. package/.nyc_output/processinfo/7f441104-13ea-4ef2-af3e-bbeda5f750b2.json +0 -1
  148. /package/.nyc_output/{209afba3-7003-49fd-8f26-8a0bbbe8fc6b.json → f2a37c08-0ae4-478f-8782-0e1416b1d10e.json} +0 -0
  149. /package/.nyc_output/{7f441104-13ea-4ef2-af3e-bbeda5f750b2.json → f4c8ad6c-7554-4bd2-8c36-1202264880e7.json} +0 -0
@@ -16,7 +16,7 @@ To use the keyword replacement, the `AUTH0_KEYWORD_REPLACEMENT_MAPPINGS` configu
16
16
  "AUTH0_CLIENT_SECRET": "BAR",
17
17
  "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
18
18
  "ENVIRONMENT": "dev",
19
- "ALLOWED_LOGOUTS": ["https://dev-test-site.com/logout", "localhost:3000/logout"],
19
+ "ALLOWED_LOGOUT_URLS": ["https://dev-test-site.com/logout", "localhost:3000/logout"],
20
20
  "ALLOWED_ORIGINS": ["https://dev-test-site.com", "localhost:3000"]
21
21
  }
22
22
  }
@@ -26,14 +26,23 @@ To use the keyword replacement, the `AUTH0_KEYWORD_REPLACEMENT_MAPPINGS` configu
26
26
 
27
27
  ```yaml
28
28
  tenant:
29
- friendly_name: My ##ENVIRONMENT## tenant
30
- allowed_logout_urls: @@ALLOWED_LOGOUTS@@
29
+ friendly_name: "##ENVIRONMENT## tenant"
30
+ allowed_logout_urls: @@ALLOWED_LOGOUT_URLS@@
31
31
  enabled_locales:
32
32
  - en
33
33
  clients:
34
34
  - name: Test App
35
35
  allowed_origins: @@ALLOWED_ORIGINS@@
36
- allowed_logout_urls: @@ALLOWED_LOGOUTS@@
36
+ allowed_logout_urls: @@ALLOWED_LOGOUT_URLS@@
37
+ ```
38
+
39
+ ### Example `tenant.json`
40
+
41
+ ```json
42
+ {
43
+ "friendly_name": "##ENVIRONMENT## tenant",
44
+ "allowed_logout_urls": "@@ALLOWED_LOGOUT_URLS@@"
45
+ }
37
46
  ```
38
47
 
39
48
  ## Array Concatenation
@@ -1,6 +1,6 @@
1
1
  # Using as a CLI
2
2
 
3
- The Deploy CLI can be used as a standalone command line utility. Doing so provides a simple way to manage your Auth0 tenant configuration in CI/CD workflows.
3
+ The Deploy CLI can be used as a standalone command line utility. Doing so provides a simple way to manage your Auth0 tenant configuration in CI/CD workflows. Refer to the [Configuring the Deploy CLI](./configuring-the-deploy-cli.md) documentation for a comprehensive list of configuration settings.
4
4
 
5
5
  ## `export` command
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Using as a Node Module
2
2
 
3
- The Deploy CLI can not only be used as a standalone CLI, but as a node module. Doing so allows you to manage Auth0 resources within expressive node scripts.
3
+ The Deploy CLI can not only be used as a standalone CLI, but as a node module. Doing so allows you to manage Auth0 resources within expressive node scripts. Refer to the [Configuring the Deploy CLI](./configuring-the-deploy-cli.md) documentation for a comprehensive list of configuration settings.
4
4
 
5
5
  ## `dump` function
6
6
 
@@ -2,35 +2,35 @@ import { AssetTypes, KeywordMappings } from './types';
2
2
  import APIHandler from './tools/auth0/handlers/default';
3
3
  export declare const doesHaveKeywordMarker: (string: string, keywordMappings: KeywordMappings) => boolean;
4
4
  export declare const getPreservableFieldsFromAssets: (asset: object, keywordMappings: KeywordMappings, resourceSpecificIdentifiers: Partial<{
5
- rules: string;
6
- hooks: string;
7
- actions: string;
8
- triggers: string;
9
- pages: string;
10
- resourceServers: string;
11
- clients: string;
12
- branding: string;
13
- connections: string;
14
- roles: string;
15
- prompts: string;
16
- themes: string;
17
- attackProtection: string;
18
- clientGrants: string;
19
- customDomains: string;
20
- databases: string;
21
- emailProvider: string;
22
- emailTemplates: string;
23
- guardianFactorProviders: string;
24
- guardianFactors: string;
25
- guardianFactorTemplates: string;
26
- guardianPhoneFactorMessageTypes: string;
27
- guardianPhoneFactorSelectedProvider: string;
28
- guardianPolicies: string;
29
- logStreams: string;
30
- migrations: string;
31
- organizations: string;
32
- rulesConfigs: string;
33
- tenant: string;
5
+ rules: string | string[];
6
+ hooks: string | string[];
7
+ actions: string | string[];
8
+ triggers: string | string[];
9
+ pages: string | string[];
10
+ resourceServers: string | string[];
11
+ clients: string | string[];
12
+ branding: string | string[];
13
+ connections: string | string[];
14
+ roles: string | string[];
15
+ prompts: string | string[];
16
+ themes: string | string[];
17
+ attackProtection: string | string[];
18
+ clientGrants: string | string[];
19
+ customDomains: string | string[];
20
+ databases: string | string[];
21
+ emailProvider: string | string[];
22
+ emailTemplates: string | string[];
23
+ guardianFactorProviders: string | string[];
24
+ guardianFactors: string | string[];
25
+ guardianFactorTemplates: string | string[];
26
+ guardianPhoneFactorMessageTypes: string | string[];
27
+ guardianPhoneFactorSelectedProvider: string | string[];
28
+ guardianPolicies: string | string[];
29
+ logStreams: string | string[];
30
+ migrations: string | string[];
31
+ organizations: string | string[];
32
+ rulesConfigs: string | string[];
33
+ tenant: string | string[];
34
34
  }>, address?: string) => string[];
35
35
  export declare const getAssetsValueByAddress: (address: string, assets: any) => any;
36
36
  export declare const convertAddressToDotNotation: (assets: any, address: string, finalAddressTrail?: string) => string | null;
@@ -39,5 +39,7 @@ export declare const preserveKeywords: ({ localAssets, remoteAssets, keywordMapp
39
39
  localAssets: object;
40
40
  remoteAssets: object;
41
41
  keywordMappings: KeywordMappings;
42
- auth0Handlers: Pick<APIHandler, 'id' | 'identifiers' | 'type'>[];
42
+ auth0Handlers: (Pick<APIHandler, 'id' | 'type'> & {
43
+ identifiers: (string | string[])[];
44
+ })[];
43
45
  }) => object;
@@ -28,13 +28,24 @@ const getPreservableFieldsFromAssets = (asset, keywordMappings, resourceSpecific
28
28
  if (Array.isArray(asset)) {
29
29
  return asset
30
30
  .map((arrayItem) => {
31
- const resourceIdentifier = resourceSpecificIdentifiers[address];
32
- if (resourceIdentifier === undefined)
33
- return []; // See if this specific resource type has an identifier
34
- const identifierFieldValue = arrayItem[resourceIdentifier];
35
- if (identifierFieldValue === undefined)
36
- return []; // See if this specific array item possess the resource-specific identifier
37
- return (0, exports.getPreservableFieldsFromAssets)(arrayItem, keywordMappings, resourceSpecificIdentifiers, `${address}${shouldRenderDot ? '.' : ''}[${resourceIdentifier}=${identifierFieldValue}]`);
31
+ const resourceIdentifiers = (() => {
32
+ const identifiers = resourceSpecificIdentifiers[address];
33
+ if (Array.isArray(identifiers)) {
34
+ return identifiers;
35
+ }
36
+ return [identifiers];
37
+ })();
38
+ return resourceIdentifiers
39
+ .map((resourceIdentifier) => {
40
+ resourceSpecificIdentifiers[address];
41
+ if (resourceIdentifier === undefined)
42
+ return []; // See if this specific resource type has an identifier
43
+ const identifierFieldValue = arrayItem[resourceIdentifier];
44
+ if (identifierFieldValue === undefined)
45
+ return []; // See if this specific array item possess the resource-specific identifier
46
+ return (0, exports.getPreservableFieldsFromAssets)(arrayItem, keywordMappings, resourceSpecificIdentifiers, `${address}${shouldRenderDot ? '.' : ''}[${resourceIdentifier}=${identifierFieldValue}]`);
47
+ })
48
+ .flat();
38
49
  })
39
50
  .flat();
40
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"keywordPreservation.js","sourceRoot":"","sources":["../src/keywordPreservation.ts"],"names":[],"mappings":";;;AAAA,uCAA4E;AAC5E,yCAA+C;AAE/C,yCAAsF;AACtF,mCAAmC;AAGnC;;;EAGE;AAEK,MAAM,qBAAqB,GAAG,CACnC,MAAc,EACd,eAAgC,EACvB,EAAE;IACX,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE;QACrD,MAAM,cAAc,GAAG,IAAA,iCAAyB,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvE,MAAM,eAAe,GAAG,IAAA,kCAA0B,EAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEzE,OAAO,CAAC,cAAc,IAAI,CAAC,eAAe,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAVW,QAAA,qBAAqB,yBAUhC;AAEK,MAAM,8BAA8B,GAAG,CAC5C,KAAa,EACb,eAAgC,EAChC,2BAAqE,EACrE,OAAO,GAAG,EAAE,EACF,EAAE;IACZ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,IAAI,IAAA,6BAAqB,EAAC,KAAK,EAAE,eAAe,CAAC,EAAE;YACjD,OAAO,CAAC,OAAO,CAAC,CAAC;SAClB;QACD,OAAO,EAAE,CAAC;KACX;IAED,MAAM,eAAe,GAAG,OAAO,KAAK,EAAE,CAAC;IAEvC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACxB,OAAO,KAAK;aACT,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE;YACjB,MAAM,kBAAkB,GA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AE,WAAW,CAAC,CAAC;QAEjE,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE;YAChC,MAAM,sBAAsB,GAAG,IAAA,6BAAqB,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC;YAC/E,IAAI,sBAAsB,EAAE;gBAC1B,OAAO,IAAA,sBAAc,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC;aACjD;YACD,OAAO,OAAO,CAAC;QACjB,CAAC,CAAC,EAAE,CAAC;QACL,MAAM,WAAW,GAAG,IAAA,+BAAuB,EAAC,mBAAmB,EAAE,YAAY,CAAC,CAAC;QAE/E,MAAM,yBAAyB,GAAG,IAAA,sBAAc,EAAC,UAAU,EAAE,eAAe,CAAC,CAAC;QAE9E,MAAM,4BAA4B,GAAG,CAAC,GAAG,EAAE;YACzC,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE;gBACnC,OAAO,yBAAyB,KAAK,WAAW,CAAC;aAClD;YACD,yDAAyD;QAC3D,CAAC,CAAC,EAAE,CAAC;QAEL,IAAI,CAAC,4BAA4B,EAAE;YACjC,OAAO,CAAC,IAAI,CACV,6CAA6C,OAAO,kBAAkB,WAAW,iCAAiC,yBAAyB,gCAAgC,CAC5K,CAAC;SACH;QAED,sFAAsF;QACtF,yFAAyF;QACzF,wFAAwF;QACxF,sFAAsF;QACtF,8BAA8B;QAC9B,oGAAoG;QACpG,mBAAmB,GAAG,IAAA,6BAAqB,EACzC,mBAAmB,EACnB,OAAO,EAAE,qNAAqN;QAC9N,UAAU,CACX,CAAC;QACF,mBAAmB,GAAG,IAAA,6BAAqB,EACzC,mBAAmB,EACnB,mBAAmB,EAAE,qNAAqN;QAC1O,UAAU,CACX,CAAC;IACJ,CAAC,CAAC,CAAC;IAEH,OAAO,mBAAmB,CAAC;AAC7B,CAAC,CAAC;AAhFW,QAAA,gBAAgB,oBAgF3B"}
@@ -16,7 +16,5 @@ export default class TenantHandler extends DefaultHandler {
16
16
  validate(assets: Assets): Promise<void>;
17
17
  processChanges(assets: Assets): Promise<void>;
18
18
  }
19
- export declare const sanitizeMigrationFlags: ({ existingFlags, proposedFlags, }: {
20
- existingFlags: Tenant['flags'];
21
- proposedFlags: Tenant['flags'];
22
- }) => Tenant['flags'];
19
+ export declare const allowedTenantFlags: string[];
20
+ export declare const removeUnallowedTenantFlags: (proposedFlags: Tenant['flags']) => Tenant['flags'];
@@ -41,11 +41,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
41
41
  return (mod && mod.__esModule) ? mod : { "default": mod };
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.sanitizeMigrationFlags = exports.schema = void 0;
44
+ exports.removeUnallowedTenantFlags = exports.allowedTenantFlags = exports.schema = void 0;
45
45
  const validationError_1 = __importDefault(require("../../validationError"));
46
46
  const default_1 = __importStar(require("./default"));
47
47
  const pages_1 = require("./pages");
48
48
  const utils_1 = require("../../utils");
49
+ const logger_1 = __importDefault(require("../../../logger"));
49
50
  exports.schema = {
50
51
  type: 'object',
51
52
  };
@@ -88,13 +89,12 @@ class TenantHandler extends default_1.default {
88
89
  // Do nothing if not set
89
90
  if (!tenant)
90
91
  return;
91
- const existingTenant = this.existing || (yield this.getType());
92
92
  const updatedTenant = Object.assign({}, tenant);
93
93
  if ('flags' in updatedTenant) {
94
- updatedTenant.flags = (0, exports.sanitizeMigrationFlags)({
95
- existingFlags: existingTenant.flags,
96
- proposedFlags: tenant.flags,
97
- });
94
+ updatedTenant.flags = (0, exports.removeUnallowedTenantFlags)(tenant.flags);
95
+ if (Object.keys(updatedTenant.flags).length === 0) {
96
+ delete updatedTenant.flags;
97
+ }
98
98
  }
99
99
  if (updatedTenant && Object.keys(updatedTenant).length > 0) {
100
100
  yield this.client.tenant.updateSettings(updatedTenant);
@@ -108,30 +108,56 @@ __decorate([
108
108
  (0, default_1.order)('100')
109
109
  ], TenantHandler.prototype, "processChanges", null);
110
110
  exports.default = TenantHandler;
111
- const sanitizeMigrationFlags = ({ existingFlags = {}, proposedFlags = {}, }) => {
112
- /*
113
- Tenants can only update migration flags that are already configured.
114
- If moving configuration from one tenant to another, there may be instances
115
- where different migration flags exist and cause an error on update. This
116
- function removes any migration flags that aren't already present on the target
117
- tenant. See: https://github.com/auth0/auth0-deploy-cli/issues/374
118
- */
119
- const tenantMigrationFlags = [
120
- 'disable_clickjack_protection_headers',
121
- 'enable_mgmt_api_v1',
122
- 'trust_azure_adfs_email_verified_connection_property',
123
- 'include_email_in_reset_pwd_redirect',
124
- 'include_email_in_verify_email_redirect',
125
- ];
126
- return Object.keys(proposedFlags).reduce((acc, proposedKey) => {
127
- const isMigrationFlag = tenantMigrationFlags.includes(proposedKey);
128
- if (!isMigrationFlag)
129
- return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
130
- const keyCurrentlyExists = existingFlags[proposedKey] !== undefined;
131
- if (keyCurrentlyExists)
132
- return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
133
- return acc;
111
+ /*
112
+ Tenant flags are used to facilitate a number of functionalities, some
113
+ public, some internal. The subset of flags that are allowed to be updated
114
+ in the context of the Deploy CLI is based on wether they're publicly exposed
115
+ in the Auth0 API docs:
116
+
117
+ https://auth0.com/docs/api/management/v2#!/Tenants/patch_settings
118
+ */
119
+ exports.allowedTenantFlags = [
120
+ 'change_pwd_flow_v1',
121
+ 'enable_client_connections',
122
+ 'enable_apis_section',
123
+ 'enable_pipeline2',
124
+ 'enable_dynamic_client_registration',
125
+ 'enable_custom_domain_in_emails',
126
+ 'allow_legacy_tokeninfo_endpoint',
127
+ 'enable_legacy_profile',
128
+ 'enable_idtoken_api2',
129
+ 'enable_public_signup_user_exists_error',
130
+ 'allow_legacy_delegation_grant_types',
131
+ 'allow_legacy_ro_grant_types',
132
+ 'enable_sso',
133
+ 'disable_clickjack_protection_headers',
134
+ 'no_disclose_enterprise_connections',
135
+ 'disable_management_api_sms_obfuscation',
136
+ 'enforce_client_authentication_on_passwordless_start',
137
+ 'trust_azure_adfs_email_verified_connection_property',
138
+ 'enable_adfs_waad_email_verification',
139
+ 'revoke_refresh_token_grant',
140
+ 'dashboard_log_streams_next',
141
+ 'dashboard_insights_view',
142
+ 'disable_fields_map_fix',
143
+ 'require_pushed_authorization_requests',
144
+ 'mfa_show_factor_list_on_enrollment',
145
+ ];
146
+ const removeUnallowedTenantFlags = (proposedFlags) => {
147
+ const removedFlags = [];
148
+ const filteredFlags = Object.keys(proposedFlags).reduce((acc, proposedKey) => {
149
+ const isAllowedFlag = exports.allowedTenantFlags.includes(proposedKey);
150
+ if (!isAllowedFlag) {
151
+ removedFlags.push(proposedKey);
152
+ return acc;
153
+ }
154
+ return Object.assign(Object.assign({}, acc), { [proposedKey]: proposedFlags[proposedKey] });
134
155
  }, {});
156
+ if (removedFlags.length > 0) {
157
+ logger_1.default.warn(`The following tenant flag${removedFlags.length > 1 ? 's have not been' : ' has not been'} updated because deemed incompatible with the target tenant: ${removedFlags.join(', ')}
158
+ ${removedFlags.length > 1 ? 'These flags' : 'This flag'} can likely be removed from the tenant definition file. If you believe this removal is an error, please report via a Github issue.`);
159
+ }
160
+ return filteredFlags;
135
161
  };
136
- exports.sanitizeMigrationFlags = sanitizeMigrationFlags;
162
+ exports.removeUnallowedTenantFlags = removeUnallowedTenantFlags;
137
163
  //# sourceMappingURL=tenant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/tenant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4EAAoD;AAEpD,qDAAkD;AAClD,mCAAsD;AACtD,uCAAkD;AAGrC,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;CACf,CAAC;AAIF,MAAM,aAAa,GAAG;IACpB,GAAG,MAAM,CAAC,IAAI,CAAC,mBAAW,CAAC;IAC3B,GAAG,MAAM,CAAC,MAAM,CAAC,mBAAW,CAAC;IAC7B,GAAG,s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7B,YAAY;IACZ,sCAAsC;IACtC,oCAAoC;IACpC,wCAAwC;IACxC,qDAAqD;IACrD,qDAAqD;IACrD,qCAAqC;IACrC,4BAA4B;IAC5B,4BAA4B;IAC5B,yBAAyB;IACzB,wBAAwB;IACxB,uCAAuC;IACvC,oCAAoC;CACrC,CAAC;AAEK,MAAM,0BAA0B,GAAG,CAAC,aAA8B,EAAmB,EAAE;IAC5F,MAAM,YAAY,GAAa,EAAE,CAAC;IAClC,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CACrD,CAAC,GAAoB,EAAE,WAAmB,EAAmB,EAAE;QAC7D,MAAM,aAAa,GAAG,0BAAkB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC/D,IAAI,CAAC,aAAa,EAAE;YAClB,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC/B,OAAO,GAAG,CAAC;SACZ;QACD,uCACK,GAAG,KACN,CAAC,WAAW,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,IACzC;IACJ,CAAC,EACD,EAAE,CACH,CAAC;IAEF,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,gBAAG,CAAC,IAAI,CACN,4BACE,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,eAChD,gEAAgE,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC;QAErF,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAC5C,oIAAoI,CACrI,CAAC;KACH;IAED,OAAO,aAAa,CAAC;AACvB,CAAC,CAAC;AA7BW,QAAA,0BAA0B,8BA6BrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auth0-deploy-cli",
3
- "version": "7.17.2",
3
+ "version": "7.17.4",
4
4
  "description": "A command line tool for deploying updates to your Auth0 tenant",
5
5
  "main": "lib/index.js",
6
6
  "bin": {