@pulumi/auth0 3.32.0 → 3.33.0-alpha.1763071542
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/action.d.ts +51 -0
- package/action.js +51 -0
- package/action.js.map +1 -1
- package/branding.d.ts +21 -0
- package/branding.js +21 -0
- package/branding.js.map +1 -1
- package/customDomainVerification.d.ts +29 -0
- package/customDomainVerification.js +29 -0
- package/customDomainVerification.js.map +1 -1
- package/package.json +2 -2
- package/rolePermission.d.ts +43 -0
- package/rolePermission.js +43 -0
- package/rolePermission.js.map +1 -1
- package/userPermission.d.ts +36 -0
- package/userPermission.js +36 -0
- package/userPermission.js.map +1 -1
- package/userPermissions.d.ts +44 -0
- package/userPermissions.js +44 -0
- package/userPermissions.js.map +1 -1
package/action.d.ts
CHANGED
|
@@ -12,6 +12,57 @@ import * as outputs from "./types/output";
|
|
|
12
12
|
* > Values provided in the sensitive values shall be stored in the raw state as plain text: secrets.
|
|
13
13
|
* Read more about sensitive data in state.
|
|
14
14
|
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
20
|
+
* import * as std from "@pulumi/std";
|
|
21
|
+
*
|
|
22
|
+
* const myAction = new auth0.Action("my_action", {
|
|
23
|
+
* name: std.index.format({
|
|
24
|
+
* input: "Test Action %s",
|
|
25
|
+
* args: [std.index.timestamp({}).result],
|
|
26
|
+
* }).result,
|
|
27
|
+
* runtime: "node22",
|
|
28
|
+
* deploy: true,
|
|
29
|
+
* code: `/**
|
|
30
|
+
* * Handler that will be called during the execution of a PostLogin flow.
|
|
31
|
+
* *
|
|
32
|
+
* * @param {Event} event - Details about the user and the context in which they are logging in.
|
|
33
|
+
* * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
|
|
34
|
+
* */
|
|
35
|
+
* exports.onExecutePostLogin = async (event, api) => {
|
|
36
|
+
* console.log(event);
|
|
37
|
+
* };
|
|
38
|
+
* `,
|
|
39
|
+
* supportedTriggers: {
|
|
40
|
+
* id: "post-login",
|
|
41
|
+
* version: "v3",
|
|
42
|
+
* },
|
|
43
|
+
* dependencies: [
|
|
44
|
+
* {
|
|
45
|
+
* name: "lodash",
|
|
46
|
+
* version: "latest",
|
|
47
|
+
* },
|
|
48
|
+
* {
|
|
49
|
+
* name: "request",
|
|
50
|
+
* version: "latest",
|
|
51
|
+
* },
|
|
52
|
+
* ],
|
|
53
|
+
* secrets: [
|
|
54
|
+
* {
|
|
55
|
+
* name: "FOO",
|
|
56
|
+
* value: "Foo",
|
|
57
|
+
* },
|
|
58
|
+
* {
|
|
59
|
+
* name: "BAR",
|
|
60
|
+
* value: "Bar",
|
|
61
|
+
* },
|
|
62
|
+
* ],
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
15
66
|
* ## Import
|
|
16
67
|
*
|
|
17
68
|
* This resource can be imported by specifying the action ID.
|
package/action.js
CHANGED
|
@@ -16,6 +16,57 @@ const utilities = require("./utilities");
|
|
|
16
16
|
* > Values provided in the sensitive values shall be stored in the raw state as plain text: secrets.
|
|
17
17
|
* Read more about sensitive data in state.
|
|
18
18
|
*
|
|
19
|
+
* ## Example Usage
|
|
20
|
+
*
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
23
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
24
|
+
* import * as std from "@pulumi/std";
|
|
25
|
+
*
|
|
26
|
+
* const myAction = new auth0.Action("my_action", {
|
|
27
|
+
* name: std.index.format({
|
|
28
|
+
* input: "Test Action %s",
|
|
29
|
+
* args: [std.index.timestamp({}).result],
|
|
30
|
+
* }).result,
|
|
31
|
+
* runtime: "node22",
|
|
32
|
+
* deploy: true,
|
|
33
|
+
* code: `/**
|
|
34
|
+
* * Handler that will be called during the execution of a PostLogin flow.
|
|
35
|
+
* *
|
|
36
|
+
* * @param {Event} event - Details about the user and the context in which they are logging in.
|
|
37
|
+
* * @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
|
|
38
|
+
* */
|
|
39
|
+
* exports.onExecutePostLogin = async (event, api) => {
|
|
40
|
+
* console.log(event);
|
|
41
|
+
* };
|
|
42
|
+
* `,
|
|
43
|
+
* supportedTriggers: {
|
|
44
|
+
* id: "post-login",
|
|
45
|
+
* version: "v3",
|
|
46
|
+
* },
|
|
47
|
+
* dependencies: [
|
|
48
|
+
* {
|
|
49
|
+
* name: "lodash",
|
|
50
|
+
* version: "latest",
|
|
51
|
+
* },
|
|
52
|
+
* {
|
|
53
|
+
* name: "request",
|
|
54
|
+
* version: "latest",
|
|
55
|
+
* },
|
|
56
|
+
* ],
|
|
57
|
+
* secrets: [
|
|
58
|
+
* {
|
|
59
|
+
* name: "FOO",
|
|
60
|
+
* value: "Foo",
|
|
61
|
+
* },
|
|
62
|
+
* {
|
|
63
|
+
* name: "BAR",
|
|
64
|
+
* value: "Bar",
|
|
65
|
+
* },
|
|
66
|
+
* ],
|
|
67
|
+
* });
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
19
70
|
* ## Import
|
|
20
71
|
*
|
|
21
72
|
* This resource can be imported by specifying the action ID.
|
package/action.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../action.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"action.js","sourceRoot":"","sources":["../action.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EG;AACH,MAAa,MAAO,SAAQ,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,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACvC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;aACvD;YACD,IAAI,IAAI,EAAE,iBAAiB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACpD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;aACpE;YACD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,EAAE,YAAY,CAAC;YACpD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,mBAAmB,CAAC,GAAG,IAAI,EAAE,iBAAiB,CAAC;YAC9D,cAAc,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACnD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;;AArGL,wBAsGC;AAxFG,gBAAgB;AACO,mBAAY,GAAG,2BAA2B,CAAC"}
|
package/branding.d.ts
CHANGED
|
@@ -4,6 +4,27 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* This resource allows you to manage branding within your Auth0 tenant. Auth0 can be customized with a look and feel that aligns with your organization's brand requirements and user expectations.
|
|
6
6
|
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
12
|
+
* import * as std from "@pulumi/std";
|
|
13
|
+
*
|
|
14
|
+
* const myBrand = new auth0.Branding("my_brand", {
|
|
15
|
+
* logoUrl: "https://mycompany.org/logo.png",
|
|
16
|
+
* colors: {
|
|
17
|
+
* primary: "#0059d6",
|
|
18
|
+
* pageBackground: "#000000",
|
|
19
|
+
* },
|
|
20
|
+
* universalLogin: {
|
|
21
|
+
* body: std.index.file({
|
|
22
|
+
* input: "universal_login_body.html",
|
|
23
|
+
* }).result,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
7
28
|
* ## Import
|
|
8
29
|
*
|
|
9
30
|
* As this is not a resource identifiable by an ID within the Auth0 Management API,
|
package/branding.js
CHANGED
|
@@ -8,6 +8,27 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* This resource allows you to manage branding within your Auth0 tenant. Auth0 can be customized with a look and feel that aligns with your organization's brand requirements and user expectations.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
* import * as std from "@pulumi/std";
|
|
17
|
+
*
|
|
18
|
+
* const myBrand = new auth0.Branding("my_brand", {
|
|
19
|
+
* logoUrl: "https://mycompany.org/logo.png",
|
|
20
|
+
* colors: {
|
|
21
|
+
* primary: "#0059d6",
|
|
22
|
+
* pageBackground: "#000000",
|
|
23
|
+
* },
|
|
24
|
+
* universalLogin: {
|
|
25
|
+
* body: std.index.file({
|
|
26
|
+
* input: "universal_login_body.html",
|
|
27
|
+
* }).result,
|
|
28
|
+
* },
|
|
29
|
+
* });
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
11
32
|
* ## Import
|
|
12
33
|
*
|
|
13
34
|
* As this is not a resource identifiable by an ID within the Auth0 Management API,
|
package/branding.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../branding.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"branding.js","sourceRoot":"","sources":["../branding.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,cAAc;IAC/C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqB,EAAE,IAAmC;QACnH,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/D,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,QAAQ,CAAC,YAAY,CAAC;IACzD,CAAC;IA+BD,YAAY,IAAY,EAAE,WAA0C,EAAE,IAAmC;QACrG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAwC,CAAC;YACvD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,EAAE,MAAM,CAAC;YACzC,cAAc,CAAC,YAAY,CAAC,GAAG,KAAK,EAAE,UAAU,CAAC;YACjD,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;YACrC,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,CAAC;SAC5D;aAAM;YACH,MAAM,IAAI,GAAG,WAAuC,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,gBAAgB,CAAC,GAAG,IAAI,EAAE,cAAc,CAAC;SAC3D;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;;AA7EL,4BA8EC;AAhEG,gBAAgB;AACO,qBAAY,GAAG,+BAA+B,CAAC"}
|
|
@@ -2,6 +2,35 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
2
2
|
/**
|
|
3
3
|
* With Auth0, you can use a custom domain to maintain a consistent user experience. This is a three-step process; you must configure the custom domain in Auth0, then create a DNS record for the domain, then verify the DNS record in Auth0. This resource allows for automating the verification part of the process.
|
|
4
4
|
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
10
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
11
|
+
* import * as std from "@pulumi/std";
|
|
12
|
+
*
|
|
13
|
+
* // Example of a custom domain managed through DigitalOcean and verified using this resource.
|
|
14
|
+
* const myCustomDomain = new auth0.CustomDomain("my_custom_domain", {
|
|
15
|
+
* domain: "login.example.com",
|
|
16
|
+
* type: "auth0_managed_certs",
|
|
17
|
+
* });
|
|
18
|
+
* const myDomainNameRecord = new digitalocean.index.Record("my_domain_name_record", {
|
|
19
|
+
* domain: "example.com",
|
|
20
|
+
* type: std.index.upper({
|
|
21
|
+
* input: myCustomDomain.verifications[0].methods?.[0]?.name,
|
|
22
|
+
* }).result,
|
|
23
|
+
* name: std.index.trimsuffix({
|
|
24
|
+
* input: myCustomDomain.verifications[0].methods?.[0]?.domain,
|
|
25
|
+
* suffix: ".example.com",
|
|
26
|
+
* }).result,
|
|
27
|
+
* value: myCustomDomain.verifications[0].methods?.[0]?.record,
|
|
28
|
+
* });
|
|
29
|
+
* const myCustomDomainVerification = new auth0.CustomDomainVerification("my_custom_domain_verification", {customDomainId: myCustomDomain.id}, {
|
|
30
|
+
* dependsOn: [myDomainNameRecord],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
5
34
|
* ## Import
|
|
6
35
|
*
|
|
7
36
|
* You can import this resource using the custom domain ID.
|
|
@@ -8,6 +8,35 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* With Auth0, you can use a custom domain to maintain a consistent user experience. This is a three-step process; you must configure the custom domain in Auth0, then create a DNS record for the domain, then verify the DNS record in Auth0. This resource allows for automating the verification part of the process.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
* import * as digitalocean from "@pulumi/digitalocean";
|
|
17
|
+
* import * as std from "@pulumi/std";
|
|
18
|
+
*
|
|
19
|
+
* // Example of a custom domain managed through DigitalOcean and verified using this resource.
|
|
20
|
+
* const myCustomDomain = new auth0.CustomDomain("my_custom_domain", {
|
|
21
|
+
* domain: "login.example.com",
|
|
22
|
+
* type: "auth0_managed_certs",
|
|
23
|
+
* });
|
|
24
|
+
* const myDomainNameRecord = new digitalocean.index.Record("my_domain_name_record", {
|
|
25
|
+
* domain: "example.com",
|
|
26
|
+
* type: std.index.upper({
|
|
27
|
+
* input: myCustomDomain.verifications[0].methods?.[0]?.name,
|
|
28
|
+
* }).result,
|
|
29
|
+
* name: std.index.trimsuffix({
|
|
30
|
+
* input: myCustomDomain.verifications[0].methods?.[0]?.domain,
|
|
31
|
+
* suffix: ".example.com",
|
|
32
|
+
* }).result,
|
|
33
|
+
* value: myCustomDomain.verifications[0].methods?.[0]?.record,
|
|
34
|
+
* });
|
|
35
|
+
* const myCustomDomainVerification = new auth0.CustomDomainVerification("my_custom_domain_verification", {customDomainId: myCustomDomain.id}, {
|
|
36
|
+
* dependsOn: [myDomainNameRecord],
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
11
40
|
* ## Import
|
|
12
41
|
*
|
|
13
42
|
* You can import this resource using the custom domain ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customDomainVerification.js","sourceRoot":"","sources":["../customDomainVerification.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"customDomainVerification.js","sourceRoot":"","sources":["../customDomainVerification.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,MAAa,wBAAyB,SAAQ,MAAM,CAAC,cAAc;IAC/D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAqC,EAAE,IAAmC;QACnI,OAAO,IAAI,wBAAwB,CAAC,IAAI,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,CAAC;QAChE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,wBAAwB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC7E,CAAC;;AAnEL,4DAoEC;AAtDG,gBAAgB;AACO,qCAAY,GAAG,+DAA+D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/auth0",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0-alpha.1763071542",
|
|
4
4
|
"description": "A Pulumi package for creating and managing auth0 cloud resources.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pulumi",
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"pulumi": {
|
|
24
24
|
"resource": true,
|
|
25
25
|
"name": "auth0",
|
|
26
|
-
"version": "3.
|
|
26
|
+
"version": "3.33.0-alpha.1763071542"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/rolePermission.d.ts
CHANGED
|
@@ -6,6 +6,49 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
6
6
|
* permissions assigned to a role. To avoid potential issues, it is recommended not to use this resource in conjunction
|
|
7
7
|
* with the `auth0.RolePermissions` resource when managing permissions for the same role id.
|
|
8
8
|
*
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
14
|
+
* import * as std from "@pulumi/std";
|
|
15
|
+
*
|
|
16
|
+
* // Example:
|
|
17
|
+
* const resourceServer = new auth0.ResourceServer("resource_server", {
|
|
18
|
+
* name: "test",
|
|
19
|
+
* identifier: "test.example.com",
|
|
20
|
+
* });
|
|
21
|
+
* const resourceServerScopes = new auth0.ResourceServerScopes("resource_server_scopes", {
|
|
22
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
23
|
+
* scopes: [
|
|
24
|
+
* {
|
|
25
|
+
* name: "store:create",
|
|
26
|
+
* },
|
|
27
|
+
* {
|
|
28
|
+
* name: "store:read",
|
|
29
|
+
* },
|
|
30
|
+
* {
|
|
31
|
+
* name: "store:update",
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* name: "store:delete",
|
|
35
|
+
* },
|
|
36
|
+
* ],
|
|
37
|
+
* });
|
|
38
|
+
* const myRole = new auth0.Role("my_role", {name: "My Role"});
|
|
39
|
+
* const scopesList = resourceServerScopes.scopes.apply(scopes => scopes.map(scope => (scope.name)));
|
|
40
|
+
* const myRolePerm: auth0.RolePermission[] = [];
|
|
41
|
+
* for (const range = {value: 0}; range.value < std.index.toset({
|
|
42
|
+
* input: scopesList,
|
|
43
|
+
* }).result; range.value++) {
|
|
44
|
+
* myRolePerm.push(new auth0.RolePermission(`my_role_perm-${range.value}`, {
|
|
45
|
+
* roleId: myRole.id,
|
|
46
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
47
|
+
* permission: range.value,
|
|
48
|
+
* }));
|
|
49
|
+
* }
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
9
52
|
* ## Import
|
|
10
53
|
*
|
|
11
54
|
* This resource can be imported by specifying the
|
package/rolePermission.js
CHANGED
|
@@ -12,6 +12,49 @@ const utilities = require("./utilities");
|
|
|
12
12
|
* permissions assigned to a role. To avoid potential issues, it is recommended not to use this resource in conjunction
|
|
13
13
|
* with the `auth0.RolePermissions` resource when managing permissions for the same role id.
|
|
14
14
|
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
20
|
+
* import * as std from "@pulumi/std";
|
|
21
|
+
*
|
|
22
|
+
* // Example:
|
|
23
|
+
* const resourceServer = new auth0.ResourceServer("resource_server", {
|
|
24
|
+
* name: "test",
|
|
25
|
+
* identifier: "test.example.com",
|
|
26
|
+
* });
|
|
27
|
+
* const resourceServerScopes = new auth0.ResourceServerScopes("resource_server_scopes", {
|
|
28
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
29
|
+
* scopes: [
|
|
30
|
+
* {
|
|
31
|
+
* name: "store:create",
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* name: "store:read",
|
|
35
|
+
* },
|
|
36
|
+
* {
|
|
37
|
+
* name: "store:update",
|
|
38
|
+
* },
|
|
39
|
+
* {
|
|
40
|
+
* name: "store:delete",
|
|
41
|
+
* },
|
|
42
|
+
* ],
|
|
43
|
+
* });
|
|
44
|
+
* const myRole = new auth0.Role("my_role", {name: "My Role"});
|
|
45
|
+
* const scopesList = resourceServerScopes.scopes.apply(scopes => scopes.map(scope => (scope.name)));
|
|
46
|
+
* const myRolePerm: auth0.RolePermission[] = [];
|
|
47
|
+
* for (const range = {value: 0}; range.value < std.index.toset({
|
|
48
|
+
* input: scopesList,
|
|
49
|
+
* }).result; range.value++) {
|
|
50
|
+
* myRolePerm.push(new auth0.RolePermission(`my_role_perm-${range.value}`, {
|
|
51
|
+
* roleId: myRole.id,
|
|
52
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
53
|
+
* permission: range.value,
|
|
54
|
+
* }));
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
15
58
|
* ## Import
|
|
16
59
|
*
|
|
17
60
|
* This resource can be imported by specifying the
|
package/rolePermission.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rolePermission.js","sourceRoot":"","sources":["../rolePermission.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"rolePermission.js","sourceRoot":"","sources":["../rolePermission.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFA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CAAC,GAAG,EAAE;gBAC7C,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;aAC7D;YACD,IAAI,IAAI,EAAE,wBAAwB,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBAC3D,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;aAC3E;YACD,IAAI,IAAI,EAAE,MAAM,KAAK,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,EAAE,wBAAwB,CAAC;YAC5E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC5D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAtFL,wCAuFC;AAzEG,gBAAgB;AACO,2BAAY,GAAG,2CAA2C,CAAC"}
|
package/userPermission.d.ts
CHANGED
|
@@ -8,6 +8,42 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
8
8
|
*
|
|
9
9
|
* ## Example Usage
|
|
10
10
|
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
14
|
+
*
|
|
15
|
+
* const resourceServer = new auth0.ResourceServer("resource_server", {
|
|
16
|
+
* name: "Example Resource Server (Managed by Terraform)",
|
|
17
|
+
* identifier: "https://api.example.com",
|
|
18
|
+
* scopes: [
|
|
19
|
+
* {
|
|
20
|
+
* value: "create:foo",
|
|
21
|
+
* description: "Create foos",
|
|
22
|
+
* },
|
|
23
|
+
* {
|
|
24
|
+
* value: "create:bar",
|
|
25
|
+
* description: "Create bars",
|
|
26
|
+
* },
|
|
27
|
+
* ],
|
|
28
|
+
* });
|
|
29
|
+
* const user = new auth0.User("user", {
|
|
30
|
+
* connectionName: "Username-Password-Authentication",
|
|
31
|
+
* userId: "12345",
|
|
32
|
+
* username: "unique_username",
|
|
33
|
+
* name: "Firstname Lastname",
|
|
34
|
+
* nickname: "some.nickname",
|
|
35
|
+
* email: "test@test.com",
|
|
36
|
+
* emailVerified: true,
|
|
37
|
+
* password: "passpass$12$12",
|
|
38
|
+
* picture: "https://www.example.com/a-valid-picture-url.jpg",
|
|
39
|
+
* });
|
|
40
|
+
* const userPermissionRead = new auth0.UserPermission("user_permission_read", {
|
|
41
|
+
* userId: user.id,
|
|
42
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
43
|
+
* permission: resourceServer.scopes[0],
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
11
47
|
* ## Import
|
|
12
48
|
*
|
|
13
49
|
* This resource can be imported by specifying the
|
package/userPermission.js
CHANGED
|
@@ -14,6 +14,42 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
20
|
+
*
|
|
21
|
+
* const resourceServer = new auth0.ResourceServer("resource_server", {
|
|
22
|
+
* name: "Example Resource Server (Managed by Terraform)",
|
|
23
|
+
* identifier: "https://api.example.com",
|
|
24
|
+
* scopes: [
|
|
25
|
+
* {
|
|
26
|
+
* value: "create:foo",
|
|
27
|
+
* description: "Create foos",
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* value: "create:bar",
|
|
31
|
+
* description: "Create bars",
|
|
32
|
+
* },
|
|
33
|
+
* ],
|
|
34
|
+
* });
|
|
35
|
+
* const user = new auth0.User("user", {
|
|
36
|
+
* connectionName: "Username-Password-Authentication",
|
|
37
|
+
* userId: "12345",
|
|
38
|
+
* username: "unique_username",
|
|
39
|
+
* name: "Firstname Lastname",
|
|
40
|
+
* nickname: "some.nickname",
|
|
41
|
+
* email: "test@test.com",
|
|
42
|
+
* emailVerified: true,
|
|
43
|
+
* password: "passpass$12$12",
|
|
44
|
+
* picture: "https://www.example.com/a-valid-picture-url.jpg",
|
|
45
|
+
* });
|
|
46
|
+
* const userPermissionRead = new auth0.UserPermission("user_permission_read", {
|
|
47
|
+
* userId: user.id,
|
|
48
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
49
|
+
* permission: resourceServer.scopes[0],
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
52
|
+
*
|
|
17
53
|
* ## Import
|
|
18
54
|
*
|
|
19
55
|
* This resource can be imported by specifying the
|
package/userPermission.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userPermission.js","sourceRoot":"","sources":["../userPermission.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"userPermission.js","sourceRoot":"","sources":["../userPermission.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACz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AC,IAAI,CAAC,GAAG,EAAE;gBACzC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;aACzD;YACD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC;YAChD,cAAc,CAAC,0BAA0B,CAAC,GAAG,IAAI,EAAE,wBAAwB,CAAC;YAC5E,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAClD,cAAc,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC5D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AAtFL,wCAuFC;AAzEG,gBAAgB;AACO,2BAAY,GAAG,2CAA2C,CAAC"}
|
package/userPermissions.d.ts
CHANGED
|
@@ -10,6 +10,50 @@ import * as outputs from "./types/output";
|
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
*
|
|
17
|
+
* const resourceServer = new auth0.ResourceServer("resource_server", {
|
|
18
|
+
* name: "Example Resource Server (Managed by Terraform)",
|
|
19
|
+
* identifier: "https://api.example.com",
|
|
20
|
+
* scopes: [
|
|
21
|
+
* {
|
|
22
|
+
* value: "create:foo",
|
|
23
|
+
* description: "Create foos",
|
|
24
|
+
* },
|
|
25
|
+
* {
|
|
26
|
+
* value: "read:foo",
|
|
27
|
+
* description: "Read foos",
|
|
28
|
+
* },
|
|
29
|
+
* ],
|
|
30
|
+
* });
|
|
31
|
+
* const user = new auth0.User("user", {
|
|
32
|
+
* connectionName: "Username-Password-Authentication",
|
|
33
|
+
* userId: "12345",
|
|
34
|
+
* username: "unique_username",
|
|
35
|
+
* name: "Firstname Lastname",
|
|
36
|
+
* nickname: "some.nickname",
|
|
37
|
+
* email: "test@test.com",
|
|
38
|
+
* emailVerified: true,
|
|
39
|
+
* password: "passpass$12$12",
|
|
40
|
+
* picture: "https://www.example.com/a-valid-picture-url.jpg",
|
|
41
|
+
* });
|
|
42
|
+
* const allUserPermissions = new auth0.UserPermissions("all_user_permissions", {
|
|
43
|
+
* userId: user.id,
|
|
44
|
+
* permissions: [
|
|
45
|
+
* {
|
|
46
|
+
* name: resourceServer.scopes[0],
|
|
47
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
48
|
+
* },
|
|
49
|
+
* {
|
|
50
|
+
* name: resourceServer.scopes[1],
|
|
51
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
52
|
+
* },
|
|
53
|
+
* ],
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
13
57
|
* ## Import
|
|
14
58
|
*
|
|
15
59
|
* This resource can be imported by specifying the user ID
|
package/userPermissions.js
CHANGED
|
@@ -14,6 +14,50 @@ const utilities = require("./utilities");
|
|
|
14
14
|
*
|
|
15
15
|
* ## Example Usage
|
|
16
16
|
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
20
|
+
*
|
|
21
|
+
* const resourceServer = new auth0.ResourceServer("resource_server", {
|
|
22
|
+
* name: "Example Resource Server (Managed by Terraform)",
|
|
23
|
+
* identifier: "https://api.example.com",
|
|
24
|
+
* scopes: [
|
|
25
|
+
* {
|
|
26
|
+
* value: "create:foo",
|
|
27
|
+
* description: "Create foos",
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* value: "read:foo",
|
|
31
|
+
* description: "Read foos",
|
|
32
|
+
* },
|
|
33
|
+
* ],
|
|
34
|
+
* });
|
|
35
|
+
* const user = new auth0.User("user", {
|
|
36
|
+
* connectionName: "Username-Password-Authentication",
|
|
37
|
+
* userId: "12345",
|
|
38
|
+
* username: "unique_username",
|
|
39
|
+
* name: "Firstname Lastname",
|
|
40
|
+
* nickname: "some.nickname",
|
|
41
|
+
* email: "test@test.com",
|
|
42
|
+
* emailVerified: true,
|
|
43
|
+
* password: "passpass$12$12",
|
|
44
|
+
* picture: "https://www.example.com/a-valid-picture-url.jpg",
|
|
45
|
+
* });
|
|
46
|
+
* const allUserPermissions = new auth0.UserPermissions("all_user_permissions", {
|
|
47
|
+
* userId: user.id,
|
|
48
|
+
* permissions: [
|
|
49
|
+
* {
|
|
50
|
+
* name: resourceServer.scopes[0],
|
|
51
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
52
|
+
* },
|
|
53
|
+
* {
|
|
54
|
+
* name: resourceServer.scopes[1],
|
|
55
|
+
* resourceServerIdentifier: resourceServer.identifier,
|
|
56
|
+
* },
|
|
57
|
+
* ],
|
|
58
|
+
* });
|
|
59
|
+
* ```
|
|
60
|
+
*
|
|
17
61
|
* ## Import
|
|
18
62
|
*
|
|
19
63
|
* This resource can be imported by specifying the user ID
|
package/userPermissions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userPermissions.js","sourceRoot":"","sources":["../userPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"userPermissions.js","sourceRoot":"","sources":["../userPermissions.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;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