@pulumi/auth0 2.6.0 → 2.7.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.
Files changed (83) hide show
  1. package/action.d.ts +49 -21
  2. package/action.js +23 -4
  3. package/action.js.map +1 -1
  4. package/branding.d.ts +13 -4
  5. package/branding.js +4 -1
  6. package/branding.js.map +1 -1
  7. package/client.d.ts +30 -0
  8. package/client.js +11 -0
  9. package/client.js.map +1 -1
  10. package/clientGrant.d.ts +10 -8
  11. package/clientGrant.js +10 -8
  12. package/clientGrant.js.map +1 -1
  13. package/config/vars.d.ts +1 -0
  14. package/config/vars.js +6 -0
  15. package/config/vars.js.map +1 -1
  16. package/connection.d.ts +16 -5
  17. package/connection.js +13 -2
  18. package/connection.js.map +1 -1
  19. package/customDomain.d.ts +18 -7
  20. package/customDomain.js +10 -2
  21. package/customDomain.js.map +1 -1
  22. package/customDomainVerification.d.ts +13 -0
  23. package/customDomainVerification.js +13 -0
  24. package/customDomainVerification.js.map +1 -1
  25. package/email.d.ts +11 -1
  26. package/email.js +11 -1
  27. package/email.js.map +1 -1
  28. package/emailTemplate.d.ts +14 -4
  29. package/emailTemplate.js +11 -1
  30. package/emailTemplate.js.map +1 -1
  31. package/getClient.d.ts +95 -0
  32. package/getClient.js +41 -0
  33. package/getClient.js.map +1 -0
  34. package/getGlobalClient.d.ts +99 -0
  35. package/getGlobalClient.js +36 -0
  36. package/getGlobalClient.js.map +1 -0
  37. package/globalClient.d.ts +40 -0
  38. package/globalClient.js +33 -0
  39. package/globalClient.js.map +1 -1
  40. package/guardian.d.ts +23 -8
  41. package/guardian.js +13 -2
  42. package/guardian.js.map +1 -1
  43. package/hook.d.ts +31 -19
  44. package/hook.js +10 -1
  45. package/hook.js.map +1 -1
  46. package/index.d.ts +2 -0
  47. package/index.js +2 -0
  48. package/index.js.map +1 -1
  49. package/logStream.d.ts +1 -1
  50. package/logStream.js +1 -1
  51. package/organization.d.ts +8 -0
  52. package/organization.js +8 -0
  53. package/organization.js.map +1 -1
  54. package/package.json +2 -2
  55. package/package.json.dev +2 -2
  56. package/prompt.d.ts +14 -3
  57. package/prompt.js +8 -0
  58. package/prompt.js.map +1 -1
  59. package/promptCustomText.d.ts +1 -1
  60. package/promptCustomText.js +1 -1
  61. package/provider.d.ts +6 -4
  62. package/provider.js +1 -6
  63. package/provider.js.map +1 -1
  64. package/resourceServer.d.ts +17 -9
  65. package/resourceServer.js +8 -0
  66. package/resourceServer.js.map +1 -1
  67. package/role.d.ts +29 -16
  68. package/role.js +23 -13
  69. package/role.js.map +1 -1
  70. package/rule.d.ts +11 -1
  71. package/rule.js +11 -1
  72. package/rule.js.map +1 -1
  73. package/ruleConfig.d.ts +11 -1
  74. package/ruleConfig.js +11 -1
  75. package/ruleConfig.js.map +1 -1
  76. package/tenant.d.ts +24 -13
  77. package/tenant.js +24 -13
  78. package/tenant.js.map +1 -1
  79. package/types/input.d.ts +12 -16
  80. package/types/output.d.ts +314 -16
  81. package/user.d.ts +22 -13
  82. package/user.js +10 -1
  83. package/user.js.map +1 -1
package/prompt.d.ts CHANGED
@@ -13,6 +13,14 @@ import * as pulumi from "@pulumi/pulumi";
13
13
  * universalLoginExperience: "classic",
14
14
  * });
15
15
  * ```
16
+ *
17
+ * ## Import
18
+ *
19
+ * As this is not a resource identifiable by an ID within the Auth0 Management API, prompt can be imported using a random string. We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) e.g.
20
+ *
21
+ * ```sh
22
+ * $ pulumi import auth0:index/prompt:Prompt example 22f4f21b-017a-319d-92e7-2291c1ca36c4
23
+ * ```
16
24
  */
17
25
  export declare class Prompt extends pulumi.CustomResource {
18
26
  /**
@@ -31,7 +39,8 @@ export declare class Prompt extends pulumi.CustomResource {
31
39
  */
32
40
  static isInstance(obj: any): obj is Prompt;
33
41
  /**
34
- * Boolean. Indicates whether or not identifier first is used when using the new universal login experience.
42
+ * Boolean. Indicates whether the identifier first is used when using the new universal
43
+ * login experience.
35
44
  */
36
45
  readonly identifierFirst: pulumi.Output<boolean | undefined>;
37
46
  /**
@@ -52,7 +61,8 @@ export declare class Prompt extends pulumi.CustomResource {
52
61
  */
53
62
  export interface PromptState {
54
63
  /**
55
- * Boolean. Indicates whether or not identifier first is used when using the new universal login experience.
64
+ * Boolean. Indicates whether the identifier first is used when using the new universal
65
+ * login experience.
56
66
  */
57
67
  identifierFirst?: pulumi.Input<boolean>;
58
68
  /**
@@ -65,7 +75,8 @@ export interface PromptState {
65
75
  */
66
76
  export interface PromptArgs {
67
77
  /**
68
- * Boolean. Indicates whether or not identifier first is used when using the new universal login experience.
78
+ * Boolean. Indicates whether the identifier first is used when using the new universal
79
+ * login experience.
69
80
  */
70
81
  identifierFirst?: pulumi.Input<boolean>;
71
82
  /**
package/prompt.js CHANGED
@@ -19,6 +19,14 @@ const utilities = require("./utilities");
19
19
  * universalLoginExperience: "classic",
20
20
  * });
21
21
  * ```
22
+ *
23
+ * ## Import
24
+ *
25
+ * As this is not a resource identifiable by an ID within the Auth0 Management API, prompt can be imported using a random string. We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) e.g.
26
+ *
27
+ * ```sh
28
+ * $ pulumi import auth0:index/prompt:Prompt example 22f4f21b-017a-319d-92e7-2291c1ca36c4
29
+ * ```
22
30
  */
23
31
  class Prompt extends pulumi.CustomResource {
24
32
  constructor(name, argsOrState, opts) {
package/prompt.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"prompt.js","sourceRoot":"","sources":["../prompt.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IA6C7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,C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IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC7D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,MAAM,CAAC,YAAY,CAAC;IACvD,CAAC;;AA1BL,wBA6DC;AA/CG,gBAAgB;AACO,mBAAY,GAAG,2BAA2B,CAAC"}
@@ -40,7 +40,7 @@ import * as pulumi from "@pulumi/pulumi";
40
40
  *
41
41
  * ## Import
42
42
  *
43
- * auth0_prompt_custom_text can be imported using the import command and specifying the prompt and language separated by *:* , e.g. terminal
43
+ * This resource can be imported using the import command and specifying the prompt and language separated by *:* , e.g.
44
44
  *
45
45
  * ```sh
46
46
  * $ pulumi import auth0:index/promptCustomText:PromptCustomText example login:en
@@ -46,7 +46,7 @@ const utilities = require("./utilities");
46
46
  *
47
47
  * ## Import
48
48
  *
49
- * auth0_prompt_custom_text can be imported using the import command and specifying the prompt and language separated by *:* , e.g. terminal
49
+ * This resource can be imported using the import command and specifying the prompt and language separated by *:* , e.g.
50
50
  *
51
51
  * ```sh
52
52
  * $ pulumi import auth0:index/promptCustomText:PromptCustomText example login:en
package/provider.d.ts CHANGED
@@ -11,8 +11,9 @@ export declare class Provider extends pulumi.ProviderResource {
11
11
  * when multiple copies of the Pulumi SDK have been loaded into the same process.
12
12
  */
13
13
  static isInstance(obj: any): obj is Provider;
14
- readonly clientId: pulumi.Output<string>;
15
- readonly clientSecret: pulumi.Output<string>;
14
+ readonly apiToken: pulumi.Output<string | undefined>;
15
+ readonly clientId: pulumi.Output<string | undefined>;
16
+ readonly clientSecret: pulumi.Output<string | undefined>;
16
17
  readonly domain: pulumi.Output<string>;
17
18
  /**
18
19
  * Create a Provider resource with the given unique name, arguments, and options.
@@ -27,8 +28,9 @@ export declare class Provider extends pulumi.ProviderResource {
27
28
  * The set of arguments for constructing a Provider resource.
28
29
  */
29
30
  export interface ProviderArgs {
30
- clientId: pulumi.Input<string>;
31
- clientSecret: pulumi.Input<string>;
31
+ apiToken?: pulumi.Input<string>;
32
+ clientId?: pulumi.Input<string>;
33
+ clientSecret?: pulumi.Input<string>;
32
34
  debug?: pulumi.Input<boolean>;
33
35
  domain: pulumi.Input<string>;
34
36
  }
package/provider.js CHANGED
@@ -24,15 +24,10 @@ class Provider extends pulumi.ProviderResource {
24
24
  let resourceInputs = {};
25
25
  opts = opts || {};
26
26
  {
27
- if ((!args || args.clientId === undefined) && !opts.urn) {
28
- throw new Error("Missing required property 'clientId'");
29
- }
30
- if ((!args || args.clientSecret === undefined) && !opts.urn) {
31
- throw new Error("Missing required property 'clientSecret'");
32
- }
33
27
  if ((!args || args.domain === undefined) && !opts.urn) {
34
28
  throw new Error("Missing required property 'domain'");
35
29
  }
30
+ resourceInputs["apiToken"] = args ? args.apiToken : undefined;
36
31
  resourceInputs["clientId"] = args ? args.clientId : undefined;
37
32
  resourceInputs["clientSecret"] = args ? args.clientSecret : undefined;
38
33
  resourceInputs["debug"] = pulumi.output((_a = (args ? args.debug : undefined)) !== null && _a !== void 0 ? _a : utilities.getEnvBoolean("AUTH0_DEBUG")).apply(JSON.stringify);
package/provider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAmBjD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB;YACI,IAAI,CAAC,CAAC,IAAI,IAAI,IA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AC,CAAC,SAAS,CAAC,mCAAI,SAAS,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACzI,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7D,CAAC;IAtCD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;;AAbL,4BA2CC;AA1CG,gBAAgB;AACO,qBAAY,GAAG,OAAO,CAAC"}
@@ -27,6 +27,14 @@ import { input as inputs, output as outputs } from "./types";
27
27
  * tokenLifetime: 8600,
28
28
  * });
29
29
  * ```
30
+ *
31
+ * ## Import
32
+ *
33
+ * Existing resource servers can be imported using their id, e.g.
34
+ *
35
+ * ```sh
36
+ * $ pulumi import auth0:index/resourceServer:ResourceServer my_resource_server XXXXXXXXXXXXXXXXXXXXXXX
37
+ * ```
30
38
  */
31
39
  export declare class ResourceServer extends pulumi.CustomResource {
32
40
  /**
@@ -45,11 +53,11 @@ export declare class ResourceServer extends pulumi.CustomResource {
45
53
  */
46
54
  static isInstance(obj: any): obj is ResourceServer;
47
55
  /**
48
- * Boolean. Indicates whether or not refresh tokens can be issued for this resource server.
56
+ * Boolean. Indicates whether refresh tokens can be issued for this resource server.
49
57
  */
50
58
  readonly allowOfflineAccess: pulumi.Output<boolean | undefined>;
51
59
  /**
52
- * Boolean. Indicates whether or not authorization polices are enforced.
60
+ * Boolean. Indicates whether authorization polices are enforced.
53
61
  */
54
62
  readonly enforcePolicies: pulumi.Output<boolean | undefined>;
55
63
  /**
@@ -79,7 +87,7 @@ export declare class ResourceServer extends pulumi.CustomResource {
79
87
  */
80
88
  readonly signingSecret: pulumi.Output<string>;
81
89
  /**
82
- * Boolean. Indicates whether or not to skip user consent for applications flagged as first party.
90
+ * Boolean. Indicates whether to skip user consent for applications flagged as first party.
83
91
  */
84
92
  readonly skipConsentForVerifiableFirstPartyClients: pulumi.Output<boolean | undefined>;
85
93
  /**
@@ -112,11 +120,11 @@ export declare class ResourceServer extends pulumi.CustomResource {
112
120
  */
113
121
  export interface ResourceServerState {
114
122
  /**
115
- * Boolean. Indicates whether or not refresh tokens can be issued for this resource server.
123
+ * Boolean. Indicates whether refresh tokens can be issued for this resource server.
116
124
  */
117
125
  allowOfflineAccess?: pulumi.Input<boolean>;
118
126
  /**
119
- * Boolean. Indicates whether or not authorization polices are enforced.
127
+ * Boolean. Indicates whether authorization polices are enforced.
120
128
  */
121
129
  enforcePolicies?: pulumi.Input<boolean>;
122
130
  /**
@@ -146,7 +154,7 @@ export interface ResourceServerState {
146
154
  */
147
155
  signingSecret?: pulumi.Input<string>;
148
156
  /**
149
- * Boolean. Indicates whether or not to skip user consent for applications flagged as first party.
157
+ * Boolean. Indicates whether to skip user consent for applications flagged as first party.
150
158
  */
151
159
  skipConsentForVerifiableFirstPartyClients?: pulumi.Input<boolean>;
152
160
  /**
@@ -171,11 +179,11 @@ export interface ResourceServerState {
171
179
  */
172
180
  export interface ResourceServerArgs {
173
181
  /**
174
- * Boolean. Indicates whether or not refresh tokens can be issued for this resource server.
182
+ * Boolean. Indicates whether refresh tokens can be issued for this resource server.
175
183
  */
176
184
  allowOfflineAccess?: pulumi.Input<boolean>;
177
185
  /**
178
- * Boolean. Indicates whether or not authorization polices are enforced.
186
+ * Boolean. Indicates whether authorization polices are enforced.
179
187
  */
180
188
  enforcePolicies?: pulumi.Input<boolean>;
181
189
  /**
@@ -205,7 +213,7 @@ export interface ResourceServerArgs {
205
213
  */
206
214
  signingSecret?: pulumi.Input<string>;
207
215
  /**
208
- * Boolean. Indicates whether or not to skip user consent for applications flagged as first party.
216
+ * Boolean. Indicates whether to skip user consent for applications flagged as first party.
209
217
  */
210
218
  skipConsentForVerifiableFirstPartyClients?: pulumi.Input<boolean>;
211
219
  /**
package/resourceServer.js CHANGED
@@ -32,6 +32,14 @@ const utilities = require("./utilities");
32
32
  * tokenLifetime: 8600,
33
33
  * });
34
34
  * ```
35
+ *
36
+ * ## Import
37
+ *
38
+ * Existing resource servers can be imported using their id, e.g.
39
+ *
40
+ * ```sh
41
+ * $ pulumi import auth0:index/resourceServer:ResourceServer my_resource_server XXXXXXXXXXXXXXXXXXXXXXX
42
+ * ```
35
43
  */
36
44
  class ResourceServer extends pulumi.CustomResource {
37
45
  constructor(name, argsOrState, opts) {
@@ -1 +1 @@
1
- {"version":3,"file":"resourceServer.js","sourceRoot":"","sources":["../resourceServer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IAyFrD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;YACpF,cAAc,CAAC,iBAAiB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,C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CA8HC;AAhHG,gBAAgB;AACO,2BAAY,GAAG,2CAA2C,CAAC"}
package/role.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * With this resource, you can create and manage collections of permissions that can be assigned to users, which are otherwise known as roles. Permissions (scopes) are created on auth0_resource_server, then associated with roles and optionally, users using this resource.
4
+ * With this resource, you can create and manage collections of permissions that can be assigned to users, which are
5
+ * otherwise known as roles. Permissions (scopes) are created on auth0_resource_server, then associated with roles and
6
+ * optionally, users using this resource.
5
7
  *
6
8
  * ## Example Usage
7
9
  *
@@ -9,34 +11,42 @@ import { input as inputs, output as outputs } from "./types";
9
11
  * import * as pulumi from "@pulumi/pulumi";
10
12
  * import * as auth0 from "@pulumi/auth0";
11
13
  *
12
- * const myResourceServer = new auth0.ResourceServer("my_resource_server", {
13
- * enforcePolicies: true,
14
+ * const myResourceServer = new auth0.ResourceServer("myResourceServer", {
14
15
  * identifier: "my-resource-server-identifier",
16
+ * signingAlg: "RS256",
17
+ * tokenLifetime: 86400,
18
+ * skipConsentForVerifiableFirstPartyClients: true,
19
+ * enforcePolicies: true,
15
20
  * scopes: [{
16
- * description: "read something",
17
21
  * value: "read:something",
22
+ * description: "read something",
18
23
  * }],
19
- * signingAlg: "RS256",
20
- * skipConsentForVerifiableFirstPartyClients: true,
21
- * tokenLifetime: 86400,
22
24
  * });
23
- * const myRole = new auth0.Role("my_role", {
25
+ * const myRole = new auth0.Role("myRole", {
24
26
  * description: "Role Description...",
25
27
  * permissions: [{
26
- * name: "read:something",
27
28
  * resourceServerIdentifier: myResourceServer.identifier,
29
+ * name: "read:something",
28
30
  * }],
29
31
  * });
30
- * const myUser = new auth0.User("my_user", {
32
+ * const myUser = new auth0.User("myUser", {
31
33
  * connectionName: "Username-Password-Authentication",
34
+ * userId: "auth0|1234567890",
32
35
  * email: "test@test.com",
36
+ * password: `passpass$12$12`,
33
37
  * nickname: "testnick",
34
- * password: "passpass$12$12",
35
- * roles: [myRole.id],
36
- * userId: "auth0|1234567890",
37
38
  * username: "testnick",
39
+ * roles: [myRole.id],
38
40
  * });
39
41
  * ```
42
+ *
43
+ * ## Import
44
+ *
45
+ * Existing roles can be imported using their id, e.g.
46
+ *
47
+ * ```sh
48
+ * $ pulumi import auth0:index/role:Role my_role XXXXXXXXXXXXXXXXXXXXXXX
49
+ * ```
40
50
  */
41
51
  export declare class Role extends pulumi.CustomResource {
42
52
  /**
@@ -63,7 +73,8 @@ export declare class Role extends pulumi.CustomResource {
63
73
  */
64
74
  readonly name: pulumi.Output<string>;
65
75
  /**
66
- * Set(Resource). Configuration settings for permissions (scopes) attached to the role. For details, see Permissions.
76
+ * Set(Resource). Configuration settings for permissions (scopes) attached to the role.
77
+ * For details, see Permissions.
67
78
  */
68
79
  readonly permissions: pulumi.Output<outputs.RolePermission[] | undefined>;
69
80
  /**
@@ -88,7 +99,8 @@ export interface RoleState {
88
99
  */
89
100
  name?: pulumi.Input<string>;
90
101
  /**
91
- * Set(Resource). Configuration settings for permissions (scopes) attached to the role. For details, see Permissions.
102
+ * Set(Resource). Configuration settings for permissions (scopes) attached to the role.
103
+ * For details, see Permissions.
92
104
  */
93
105
  permissions?: pulumi.Input<pulumi.Input<inputs.RolePermission>[]>;
94
106
  }
@@ -105,7 +117,8 @@ export interface RoleArgs {
105
117
  */
106
118
  name?: pulumi.Input<string>;
107
119
  /**
108
- * Set(Resource). Configuration settings for permissions (scopes) attached to the role. For details, see Permissions.
120
+ * Set(Resource). Configuration settings for permissions (scopes) attached to the role.
121
+ * For details, see Permissions.
109
122
  */
110
123
  permissions?: pulumi.Input<pulumi.Input<inputs.RolePermission>[]>;
111
124
  }
package/role.js CHANGED
@@ -6,7 +6,9 @@ exports.Role = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With this resource, you can create and manage collections of permissions that can be assigned to users, which are otherwise known as roles. Permissions (scopes) are created on auth0_resource_server, then associated with roles and optionally, users using this resource.
9
+ * With this resource, you can create and manage collections of permissions that can be assigned to users, which are
10
+ * otherwise known as roles. Permissions (scopes) are created on auth0_resource_server, then associated with roles and
11
+ * optionally, users using this resource.
10
12
  *
11
13
  * ## Example Usage
12
14
  *
@@ -14,34 +16,42 @@ const utilities = require("./utilities");
14
16
  * import * as pulumi from "@pulumi/pulumi";
15
17
  * import * as auth0 from "@pulumi/auth0";
16
18
  *
17
- * const myResourceServer = new auth0.ResourceServer("my_resource_server", {
18
- * enforcePolicies: true,
19
+ * const myResourceServer = new auth0.ResourceServer("myResourceServer", {
19
20
  * identifier: "my-resource-server-identifier",
21
+ * signingAlg: "RS256",
22
+ * tokenLifetime: 86400,
23
+ * skipConsentForVerifiableFirstPartyClients: true,
24
+ * enforcePolicies: true,
20
25
  * scopes: [{
21
- * description: "read something",
22
26
  * value: "read:something",
27
+ * description: "read something",
23
28
  * }],
24
- * signingAlg: "RS256",
25
- * skipConsentForVerifiableFirstPartyClients: true,
26
- * tokenLifetime: 86400,
27
29
  * });
28
- * const myRole = new auth0.Role("my_role", {
30
+ * const myRole = new auth0.Role("myRole", {
29
31
  * description: "Role Description...",
30
32
  * permissions: [{
31
- * name: "read:something",
32
33
  * resourceServerIdentifier: myResourceServer.identifier,
34
+ * name: "read:something",
33
35
  * }],
34
36
  * });
35
- * const myUser = new auth0.User("my_user", {
37
+ * const myUser = new auth0.User("myUser", {
36
38
  * connectionName: "Username-Password-Authentication",
39
+ * userId: "auth0|1234567890",
37
40
  * email: "test@test.com",
41
+ * password: `passpass$12$12`,
38
42
  * nickname: "testnick",
39
- * password: "passpass$12$12",
40
- * roles: [myRole.id],
41
- * userId: "auth0|1234567890",
42
43
  * username: "testnick",
44
+ * roles: [myRole.id],
43
45
  * });
44
46
  * ```
47
+ *
48
+ * ## Import
49
+ *
50
+ * Existing roles can be imported using their id, e.g.
51
+ *
52
+ * ```sh
53
+ * $ pulumi import auth0:index/role:Role my_role XXXXXXXXXXXXXXXXXXXXXXX
54
+ * ```
45
55
  */
46
56
  class Role extends pulumi.CustomResource {
47
57
  constructor(name, argsOrState, opts) {
package/role.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"role.js","sourceRoot":"","sources":["../role.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAiD3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;SACzE;aAAM;YACH,MAAM,IAAI,GAAG,WAAmC,CAAC;YACjD,cAAc,CAAC,aAAa,CAAC,GAAG,MAAA,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC,mCAAI,mBAAmB,CAAC;YAC7F,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CA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CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBAmEC;AArDG,gBAAgB;AACO,iBAAY,GAAG,uBAAuB,CAAC"}
package/rule.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules. You can create global variable for use with rules by using the auth0.RuleConfig resource.
3
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
4
+ * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules.
5
+ * You can create global variable for use with rules by using the auth0.RuleConfig resource.
4
6
  *
5
7
  * ## Example Usage
6
8
  *
@@ -20,6 +22,14 @@ import * as pulumi from "@pulumi/pulumi";
20
22
  * value: "bar",
21
23
  * });
22
24
  * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * Existing rules can be imported using their id, e.g.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import auth0:index/rule:Rule my_rule rul_XXXXXXXXXXXXX
32
+ * ```
23
33
  */
24
34
  export declare class Rule extends pulumi.CustomResource {
25
35
  /**
package/rule.js CHANGED
@@ -6,7 +6,9 @@ exports.Rule = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules. You can create global variable for use with rules by using the auth0.RuleConfig resource.
9
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
10
+ * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage rules.
11
+ * You can create global variable for use with rules by using the auth0.RuleConfig resource.
10
12
  *
11
13
  * ## Example Usage
12
14
  *
@@ -26,6 +28,14 @@ const utilities = require("./utilities");
26
28
  * value: "bar",
27
29
  * });
28
30
  * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * Existing rules can be imported using their id, e.g.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import auth0:index/rule:Rule my_rule rul_XXXXXXXXXXXXX
38
+ * ```
29
39
  */
30
40
  class Rule extends pulumi.CustomResource {
31
41
  constructor(name, argsOrState, opts) {
package/rule.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"rule.js","sourceRoot":"","sources":["../rule.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,IAAK,SAAQ,MAAM,CAAC,cAAc;IAqD3C,YAAY,IAAY,EAAE,WAAkC,EAAE,IAAmC;QAC7F,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAoC,CAAC;YACnD,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YAC1D,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC/D;aAAM;YACH,MAAM,IAAI,GAAG,WAAmC,CAAC;YACjD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;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YACtD,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;YACxD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACzD,CAAC;IAzED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAiB,EAAE,IAAmC;QAC/G,OAAO,IAAI,IAAI,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC3D,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC,YAAY,CAAC;IACrD,CAAC;;AA1BL,oBA2EC;AA7DG,gBAAgB;AACO,iBAAY,GAAG,uBAAuB,CAAC"}
package/ruleConfig.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
3
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
4
+ * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables
5
+ * that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
4
6
  *
5
7
  * ## Example Usage
6
8
  *
@@ -20,6 +22,14 @@ import * as pulumi from "@pulumi/pulumi";
20
22
  * value: "bar",
21
23
  * });
22
24
  * ```
25
+ *
26
+ * ## Import
27
+ *
28
+ * Existing rule configs can be imported using their key name, e.g.
29
+ *
30
+ * ```sh
31
+ * $ pulumi import auth0:index/ruleConfig:RuleConfig my_rule_config foo
32
+ * ```
23
33
  */
24
34
  export declare class RuleConfig extends pulumi.CustomResource {
25
35
  /**
package/ruleConfig.js CHANGED
@@ -6,7 +6,9 @@ exports.RuleConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("./utilities");
8
8
  /**
9
- * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
9
+ * With Auth0, you can create custom Javascript snippets that run in a secure, isolated sandbox as part of your
10
+ * authentication pipeline, which are otherwise known as rules. This resource allows you to create and manage variables
11
+ * that are available to all rules via Auth0's global configuration object. Used in conjunction with configured rules.
10
12
  *
11
13
  * ## Example Usage
12
14
  *
@@ -26,6 +28,14 @@ const utilities = require("./utilities");
26
28
  * value: "bar",
27
29
  * });
28
30
  * ```
31
+ *
32
+ * ## Import
33
+ *
34
+ * Existing rule configs can be imported using their key name, e.g.
35
+ *
36
+ * ```sh
37
+ * $ pulumi import auth0:index/ruleConfig:RuleConfig my_rule_config foo
38
+ * ```
29
39
  */
30
40
  class RuleConfig extends pulumi.CustomResource {
31
41
  constructor(name, argsOrState, opts) {
package/ruleConfig.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ruleConfig.js","sourceRoot":"","sources":["../ruleConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MA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1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import { input as inputs, output as outputs } from "./types";
3
3
  /**
4
- * With this resource, you can manage Auth0 tenants, including setting logos and support contact information, setting error pages, and configuring default tenant behaviors.
4
+ * With this resource, you can manage Auth0 tenants, including setting logos and support contact information, setting error
5
+ * pages, and configuring default tenant behaviors.
5
6
  *
6
- * > Auth0 does not currently support creating tenants through the Management API. Therefore this resource can only manage an existing tenant created through the Auth0 dashboard.
7
+ * > Auth0 does not currently support creating tenants through the Management API. Therefore, this resource can only
8
+ * manage an existing tenant created through the Auth0 dashboard.
7
9
  *
8
- * Auth0 does not currently support adding/removing extensions on tenants through their API. The Auth0 dashboard must be used to add/remove extensions.
10
+ * Auth0 does not currently support adding/removing extensions on tenants through their API. The Auth0 dashboard must be
11
+ * used to add/remove extensions.
9
12
  *
10
13
  * ## Example Usage
11
14
  *
12
15
  * ```typescript
13
16
  * import * as pulumi from "@pulumi/pulumi";
14
17
  * import * as auth0 from "@pulumi/auth0";
15
- * import * as fs from "fs";
18
+ * import * from "fs";
16
19
  *
17
20
  * const tenant = new auth0.Tenant("tenant", {
18
- * allowedLogoutUrls: ["http://mysite/logout"],
19
21
  * changePassword: {
20
22
  * enabled: true,
21
- * html: fs.readFileSync("./password_reset.html", "utf-8"),
23
+ * html: fs.readFileSync("./password_reset.html"),
24
+ * },
25
+ * guardianMfaPage: {
26
+ * enabled: true,
27
+ * html: fs.readFileSync("./guardian_multifactor.html"),
22
28
  * },
23
29
  * defaultAudience: "<client_id>",
24
30
  * defaultDirectory: "Connection-Name",
25
31
  * errorPage: {
26
- * html: fs.readFileSync("./error.html", "utf-8"),
32
+ * html: fs.readFileSync("./error.html"),
27
33
  * showLogLink: true,
28
34
  * url: "http://mysite/errors",
29
35
  * },
30
36
  * friendlyName: "Tenant Name",
31
- * guardianMfaPage: {
32
- * enabled: true,
33
- * html: fs.readFileSync("./guardian_multifactor.html", "utf-8"),
34
- * },
35
37
  * pictureUrl: "http://mysite/logo.png",
36
- * sandboxVersion: "8",
37
- * sessionLifetime: 46000,
38
38
  * supportEmail: "support@mysite",
39
39
  * supportUrl: "http://mysite/support",
40
+ * allowedLogoutUrls: ["http://mysite/logout"],
41
+ * sessionLifetime: 46000,
42
+ * sandboxVersion: "8",
40
43
  * });
41
44
  * ```
45
+ *
46
+ * ## Import
47
+ *
48
+ * As this is not a resource identifiable by an ID within the Auth0 Management API, tenant can be imported using a random string. We recommend [Version 4 UUID](https://www.uuidgenerator.net/version4) e.g.
49
+ *
50
+ * ```sh
51
+ * $ pulumi import auth0:index/tenant:Tenant tenant 82f4f21b-017a-319d-92e7-2291c1ca36c4
52
+ * ```
42
53
  */
43
54
  export declare class Tenant extends pulumi.CustomResource {
44
55
  /**