@pulumi/auth0 2.16.0 → 2.17.0-alpha.1677662776
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/connection.d.ts +8 -12
- package/connection.js +2 -4
- package/connection.js.map +1 -1
- package/getAttackProtection.d.ts +36 -0
- package/getAttackProtection.js +25 -0
- package/getAttackProtection.js.map +1 -0
- package/getBranding.d.ts +44 -0
- package/getBranding.js +25 -0
- package/getBranding.js.map +1 -0
- package/getBrandingTheme.d.ts +33 -0
- package/getBrandingTheme.js +25 -0
- package/getBrandingTheme.js.map +1 -0
- package/getClient.d.ts +2 -2
- package/getClient.js +2 -2
- package/getConnection.d.ts +115 -0
- package/getConnection.js +55 -0
- package/getConnection.js.map +1 -0
- package/getGlobalClient.d.ts +1 -1
- package/getGlobalClient.js +1 -1
- package/getOrganization.d.ts +96 -0
- package/getOrganization.js +55 -0
- package/getOrganization.js.map +1 -0
- package/getResourceServer.d.ts +131 -0
- package/getResourceServer.js +55 -0
- package/getResourceServer.js.map +1 -0
- package/getRole.d.ts +89 -0
- package/getRole.js +55 -0
- package/getRole.js.map +1 -0
- package/getTenant.d.ts +73 -0
- package/getTenant.js.map +1 -1
- package/getUser.d.ts +130 -0
- package/getUser.js +47 -0
- package/getUser.js.map +1 -0
- package/index.d.ts +21 -0
- package/index.js +22 -1
- package/index.js.map +1 -1
- package/organizationMember.d.ts +1 -1
- package/organizationMember.js +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/promptCustomText.d.ts +12 -12
- package/promptCustomText.js +6 -6
- package/role.d.ts +1 -1
- package/role.js +1 -1
- package/types/input.d.ts +3 -1
- package/types/output.d.ts +336 -1
- package/user.d.ts +1 -1
- package/user.js +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getOrganizationOutput = exports.getOrganization = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source to retrieve a specific Auth0 organization by `organizationId` or `name`.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
*
|
|
17
|
+
* const some-organization-by-name = auth0.getOrganization({
|
|
18
|
+
* name: "my-org",
|
|
19
|
+
* });
|
|
20
|
+
* const some-organization-by-id = auth0.getOrganization({
|
|
21
|
+
* organizationId: "org_abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function getOrganization(args, opts) {
|
|
26
|
+
args = args || {};
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
+
return pulumi.runtime.invoke("auth0:index/getOrganization:getOrganization", {
|
|
29
|
+
"name": args.name,
|
|
30
|
+
"organizationId": args.organizationId,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.getOrganization = getOrganization;
|
|
34
|
+
/**
|
|
35
|
+
* Data source to retrieve a specific Auth0 organization by `organizationId` or `name`.
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
42
|
+
*
|
|
43
|
+
* const some-organization-by-name = auth0.getOrganization({
|
|
44
|
+
* name: "my-org",
|
|
45
|
+
* });
|
|
46
|
+
* const some-organization-by-id = auth0.getOrganization({
|
|
47
|
+
* organizationId: "org_abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function getOrganizationOutput(args, opts) {
|
|
52
|
+
return pulumi.output(args).apply((a) => getOrganization(a, opts));
|
|
53
|
+
}
|
|
54
|
+
exports.getOrganizationOutput = getOrganizationOutput;
|
|
55
|
+
//# sourceMappingURL=getOrganization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getOrganization.js","sourceRoot":"","sources":["../getOrganization.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6CAA6C,EAAE;QACxE,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,gBAAgB,EAAE,IAAI,CAAC,cAAc;KACxC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0CAQC;AA8CD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,qBAAqB,CAAC,IAAgC,EAAE,IAA2B;IAC/F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC1E,CAAC;AAFD,sDAEC"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source to retrieve a specific Auth0 resource server by `resourceServerId` or `identifier`.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
11
|
+
*
|
|
12
|
+
* const some-resource-server-by-identifier = auth0.getResourceServer({
|
|
13
|
+
* identifier: "https://my-api.com/v1",
|
|
14
|
+
* });
|
|
15
|
+
* const some-resource-server-by-id = auth0.getResourceServer({
|
|
16
|
+
* resourceServerId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function getResourceServer(args?: GetResourceServerArgs, opts?: pulumi.InvokeOptions): Promise<GetResourceServerResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getResourceServer.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetResourceServerArgs {
|
|
25
|
+
/**
|
|
26
|
+
* The unique identifier for the resource server. If not provided, `resourceServerId` must be set.
|
|
27
|
+
*/
|
|
28
|
+
identifier?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the resource server. If not provided, `identifier` must be set.
|
|
31
|
+
*/
|
|
32
|
+
resourceServerId?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getResourceServer.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetResourceServerResult {
|
|
38
|
+
/**
|
|
39
|
+
* Indicates whether refresh tokens can be issued for this resource server.
|
|
40
|
+
*/
|
|
41
|
+
readonly allowOfflineAccess: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* If this setting is enabled, RBAC authorization policies will be enforced for this API. Role and permission assignments will be evaluated during the login transaction.
|
|
44
|
+
*/
|
|
45
|
+
readonly enforcePolicies: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The provider-assigned unique ID for this managed resource.
|
|
48
|
+
*/
|
|
49
|
+
readonly id: string;
|
|
50
|
+
/**
|
|
51
|
+
* The unique identifier for the resource server. If not provided, `resourceServerId` must be set.
|
|
52
|
+
*/
|
|
53
|
+
readonly identifier?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Friendly name for the resource server. Cannot include `<` or `>` characters.
|
|
56
|
+
*/
|
|
57
|
+
readonly name: string;
|
|
58
|
+
/**
|
|
59
|
+
* Used to store additional metadata.
|
|
60
|
+
*/
|
|
61
|
+
readonly options: {
|
|
62
|
+
[key: string]: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The ID of the resource server. If not provided, `identifier` must be set.
|
|
66
|
+
*/
|
|
67
|
+
readonly resourceServerId?: string;
|
|
68
|
+
/**
|
|
69
|
+
* List of permissions (scopes) used by this resource server.
|
|
70
|
+
*/
|
|
71
|
+
readonly scopes: outputs.GetResourceServerScope[];
|
|
72
|
+
/**
|
|
73
|
+
* Algorithm used to sign JWTs. Options include `HS256` and `RS256`.
|
|
74
|
+
*/
|
|
75
|
+
readonly signingAlg: string;
|
|
76
|
+
/**
|
|
77
|
+
* Secret used to sign tokens when using symmetric algorithms (HS256).
|
|
78
|
+
*/
|
|
79
|
+
readonly signingSecret: string;
|
|
80
|
+
/**
|
|
81
|
+
* Indicates whether to skip user consent for applications flagged as first party.
|
|
82
|
+
*/
|
|
83
|
+
readonly skipConsentForVerifiableFirstPartyClients: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Dialect of access tokens that should be issued for this resource server. Options include `accessToken` or `accessTokenAuthz`. If this setting is set to `accessTokenAuthz`, the Permissions claim will be added to the access token. Only available if RBAC (`enforcePolicies`) is enabled for this API.
|
|
86
|
+
*/
|
|
87
|
+
readonly tokenDialect: string;
|
|
88
|
+
/**
|
|
89
|
+
* Number of seconds during which access tokens issued for this resource server from the token endpoint remain valid.
|
|
90
|
+
*/
|
|
91
|
+
readonly tokenLifetime: number;
|
|
92
|
+
/**
|
|
93
|
+
* Number of seconds during which access tokens issued for this resource server via implicit or hybrid flows remain valid. Cannot be greater than the `tokenLifetime` value.
|
|
94
|
+
*/
|
|
95
|
+
readonly tokenLifetimeForWeb: number;
|
|
96
|
+
/**
|
|
97
|
+
* URL from which to retrieve JWKs for this resource server. Used for verifying the JWT sent to Auth0 for token introspection.
|
|
98
|
+
*/
|
|
99
|
+
readonly verificationLocation: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Data source to retrieve a specific Auth0 resource server by `resourceServerId` or `identifier`.
|
|
103
|
+
*
|
|
104
|
+
* ## Example Usage
|
|
105
|
+
*
|
|
106
|
+
* ```typescript
|
|
107
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
108
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
109
|
+
*
|
|
110
|
+
* const some-resource-server-by-identifier = auth0.getResourceServer({
|
|
111
|
+
* identifier: "https://my-api.com/v1",
|
|
112
|
+
* });
|
|
113
|
+
* const some-resource-server-by-id = auth0.getResourceServer({
|
|
114
|
+
* resourceServerId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
115
|
+
* });
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
export declare function getResourceServerOutput(args?: GetResourceServerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetResourceServerResult>;
|
|
119
|
+
/**
|
|
120
|
+
* A collection of arguments for invoking getResourceServer.
|
|
121
|
+
*/
|
|
122
|
+
export interface GetResourceServerOutputArgs {
|
|
123
|
+
/**
|
|
124
|
+
* The unique identifier for the resource server. If not provided, `resourceServerId` must be set.
|
|
125
|
+
*/
|
|
126
|
+
identifier?: pulumi.Input<string>;
|
|
127
|
+
/**
|
|
128
|
+
* The ID of the resource server. If not provided, `identifier` must be set.
|
|
129
|
+
*/
|
|
130
|
+
resourceServerId?: pulumi.Input<string>;
|
|
131
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getResourceServerOutput = exports.getResourceServer = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source to retrieve a specific Auth0 resource server by `resourceServerId` or `identifier`.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
*
|
|
17
|
+
* const some-resource-server-by-identifier = auth0.getResourceServer({
|
|
18
|
+
* identifier: "https://my-api.com/v1",
|
|
19
|
+
* });
|
|
20
|
+
* const some-resource-server-by-id = auth0.getResourceServer({
|
|
21
|
+
* resourceServerId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function getResourceServer(args, opts) {
|
|
26
|
+
args = args || {};
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
+
return pulumi.runtime.invoke("auth0:index/getResourceServer:getResourceServer", {
|
|
29
|
+
"identifier": args.identifier,
|
|
30
|
+
"resourceServerId": args.resourceServerId,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.getResourceServer = getResourceServer;
|
|
34
|
+
/**
|
|
35
|
+
* Data source to retrieve a specific Auth0 resource server by `resourceServerId` or `identifier`.
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
42
|
+
*
|
|
43
|
+
* const some-resource-server-by-identifier = auth0.getResourceServer({
|
|
44
|
+
* identifier: "https://my-api.com/v1",
|
|
45
|
+
* });
|
|
46
|
+
* const some-resource-server-by-id = auth0.getResourceServer({
|
|
47
|
+
* resourceServerId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function getResourceServerOutput(args, opts) {
|
|
52
|
+
return pulumi.output(args).apply((a) => getResourceServer(a, opts));
|
|
53
|
+
}
|
|
54
|
+
exports.getResourceServerOutput = getResourceServerOutput;
|
|
55
|
+
//# sourceMappingURL=getResourceServer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getResourceServer.js","sourceRoot":"","sources":["../getResourceServer.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,iBAAiB,CAAC,IAA4B,EAAE,IAA2B;IACvF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iDAAiD,EAAE;QAC5E,YAAY,EAAE,IAAI,CAAC,UAAU;QAC7B,kBAAkB,EAAE,IAAI,CAAC,gBAAgB;KAC5C,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,8CAQC;AAiFD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,uBAAuB,CAAC,IAAkC,EAAE,IAA2B;IACnG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5E,CAAC;AAFD,0DAEC"}
|
package/getRole.d.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
3
|
+
/**
|
|
4
|
+
* Data source to retrieve a specific Auth0 role by `roleId` or `name`.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* ```typescript
|
|
9
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
10
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
11
|
+
*
|
|
12
|
+
* const some-role-by-name = auth0.getRole({
|
|
13
|
+
* name: "my-role",
|
|
14
|
+
* });
|
|
15
|
+
* const some-role-by-id = auth0.getRole({
|
|
16
|
+
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare function getRole(args?: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetRoleResult>;
|
|
21
|
+
/**
|
|
22
|
+
* A collection of arguments for invoking getRole.
|
|
23
|
+
*/
|
|
24
|
+
export interface GetRoleArgs {
|
|
25
|
+
/**
|
|
26
|
+
* The name of the role. If not provided, `roleId` must be set.
|
|
27
|
+
*/
|
|
28
|
+
name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the role. If not provided, `name` must be set.
|
|
31
|
+
*/
|
|
32
|
+
roleId?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A collection of values returned by getRole.
|
|
36
|
+
*/
|
|
37
|
+
export interface GetRoleResult {
|
|
38
|
+
/**
|
|
39
|
+
* Description of the role.
|
|
40
|
+
*/
|
|
41
|
+
readonly description: string;
|
|
42
|
+
/**
|
|
43
|
+
* The provider-assigned unique ID for this managed resource.
|
|
44
|
+
*/
|
|
45
|
+
readonly id: string;
|
|
46
|
+
/**
|
|
47
|
+
* The name of the role. If not provided, `roleId` must be set.
|
|
48
|
+
*/
|
|
49
|
+
readonly name?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Configuration settings for permissions (scopes) attached to the role.
|
|
52
|
+
*/
|
|
53
|
+
readonly permissions: outputs.GetRolePermission[];
|
|
54
|
+
/**
|
|
55
|
+
* The ID of the role. If not provided, `name` must be set.
|
|
56
|
+
*/
|
|
57
|
+
readonly roleId?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Data source to retrieve a specific Auth0 role by `roleId` or `name`.
|
|
61
|
+
*
|
|
62
|
+
* ## Example Usage
|
|
63
|
+
*
|
|
64
|
+
* ```typescript
|
|
65
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
66
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
67
|
+
*
|
|
68
|
+
* const some-role-by-name = auth0.getRole({
|
|
69
|
+
* name: "my-role",
|
|
70
|
+
* });
|
|
71
|
+
* const some-role-by-id = auth0.getRole({
|
|
72
|
+
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
73
|
+
* });
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
export declare function getRoleOutput(args?: GetRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetRoleResult>;
|
|
77
|
+
/**
|
|
78
|
+
* A collection of arguments for invoking getRole.
|
|
79
|
+
*/
|
|
80
|
+
export interface GetRoleOutputArgs {
|
|
81
|
+
/**
|
|
82
|
+
* The name of the role. If not provided, `roleId` must be set.
|
|
83
|
+
*/
|
|
84
|
+
name?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The ID of the role. If not provided, `name` must be set.
|
|
87
|
+
*/
|
|
88
|
+
roleId?: pulumi.Input<string>;
|
|
89
|
+
}
|
package/getRole.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getRoleOutput = exports.getRole = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source to retrieve a specific Auth0 role by `roleId` or `name`.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
*
|
|
17
|
+
* const some-role-by-name = auth0.getRole({
|
|
18
|
+
* name: "my-role",
|
|
19
|
+
* });
|
|
20
|
+
* const some-role-by-id = auth0.getRole({
|
|
21
|
+
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
function getRole(args, opts) {
|
|
26
|
+
args = args || {};
|
|
27
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
28
|
+
return pulumi.runtime.invoke("auth0:index/getRole:getRole", {
|
|
29
|
+
"name": args.name,
|
|
30
|
+
"roleId": args.roleId,
|
|
31
|
+
}, opts);
|
|
32
|
+
}
|
|
33
|
+
exports.getRole = getRole;
|
|
34
|
+
/**
|
|
35
|
+
* Data source to retrieve a specific Auth0 role by `roleId` or `name`.
|
|
36
|
+
*
|
|
37
|
+
* ## Example Usage
|
|
38
|
+
*
|
|
39
|
+
* ```typescript
|
|
40
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
41
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
42
|
+
*
|
|
43
|
+
* const some-role-by-name = auth0.getRole({
|
|
44
|
+
* name: "my-role",
|
|
45
|
+
* });
|
|
46
|
+
* const some-role-by-id = auth0.getRole({
|
|
47
|
+
* roleId: "abcdefghkijklmnopqrstuvwxyz0123456789",
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function getRoleOutput(args, opts) {
|
|
52
|
+
return pulumi.output(args).apply((a) => getRole(a, opts));
|
|
53
|
+
}
|
|
54
|
+
exports.getRoleOutput = getRoleOutput;
|
|
55
|
+
//# sourceMappingURL=getRole.js.map
|
package/getRole.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRole.js","sourceRoot":"","sources":["../getRole.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE;QACxD,MAAM,EAAE,IAAI,CAAC,IAAI;QACjB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAyCD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|
package/getTenant.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as outputs from "./types/output";
|
|
2
3
|
/**
|
|
3
4
|
* Use this data source to access information about the tenant this provider is configured to access.
|
|
4
5
|
*
|
|
@@ -16,16 +17,88 @@ export declare function getTenant(opts?: pulumi.InvokeOptions): Promise<GetTenan
|
|
|
16
17
|
* A collection of values returned by getTenant.
|
|
17
18
|
*/
|
|
18
19
|
export interface GetTenantResult {
|
|
20
|
+
/**
|
|
21
|
+
* URLs that Auth0 may redirect to after logout.
|
|
22
|
+
*/
|
|
23
|
+
readonly allowedLogoutUrls: string[];
|
|
24
|
+
/**
|
|
25
|
+
* Configuration settings for change password page.
|
|
26
|
+
*/
|
|
27
|
+
readonly changePasswords: outputs.GetTenantChangePassword[];
|
|
28
|
+
/**
|
|
29
|
+
* API Audience to use by default for API Authorization flows. This setting is equivalent to appending the audience to every authorization request made to the tenant for every application.
|
|
30
|
+
*/
|
|
31
|
+
readonly defaultAudience: string;
|
|
32
|
+
/**
|
|
33
|
+
* Name of the connection to be used for Password Grant exchanges. Options include `auth0-adldap`, `ad`, `auth0`, `email`, `sms`, `waad`, and `adfs`.
|
|
34
|
+
*/
|
|
35
|
+
readonly defaultDirectory: string;
|
|
36
|
+
/**
|
|
37
|
+
* The default absolute redirection URI. Must be HTTPS or an empty string.
|
|
38
|
+
*/
|
|
39
|
+
readonly defaultRedirectionUri: string;
|
|
19
40
|
/**
|
|
20
41
|
* Your Auth0 domain name.
|
|
21
42
|
*/
|
|
22
43
|
readonly domain: string;
|
|
44
|
+
/**
|
|
45
|
+
* Supported locales for the user interface. The first locale in the list will be used to set the default locale.
|
|
46
|
+
*/
|
|
47
|
+
readonly enabledLocales: string[];
|
|
48
|
+
/**
|
|
49
|
+
* Configuration settings for error pages.
|
|
50
|
+
*/
|
|
51
|
+
readonly errorPages: outputs.GetTenantErrorPage[];
|
|
52
|
+
/**
|
|
53
|
+
* Configuration settings for tenant flags.
|
|
54
|
+
*/
|
|
55
|
+
readonly flags: outputs.GetTenantFlag[];
|
|
56
|
+
/**
|
|
57
|
+
* Friendly name for the tenant.
|
|
58
|
+
*/
|
|
59
|
+
readonly friendlyName: string;
|
|
60
|
+
/**
|
|
61
|
+
* Configuration settings for the Guardian MFA page.
|
|
62
|
+
*/
|
|
63
|
+
readonly guardianMfaPages: outputs.GetTenantGuardianMfaPage[];
|
|
23
64
|
/**
|
|
24
65
|
* The provider-assigned unique ID for this managed resource.
|
|
25
66
|
*/
|
|
26
67
|
readonly id: string;
|
|
68
|
+
/**
|
|
69
|
+
* Number of hours during which a session can be inactive before the user must log in again.
|
|
70
|
+
*/
|
|
71
|
+
readonly idleSessionLifetime: number;
|
|
27
72
|
/**
|
|
28
73
|
* The identifier value of the built-in Management API resource server, which can be used as an audience when configuring client grants.
|
|
29
74
|
*/
|
|
30
75
|
readonly managementApiIdentifier: string;
|
|
76
|
+
/**
|
|
77
|
+
* URL of logo to be shown for the tenant. Recommended size is 150px x 150px. If no URL is provided, the Auth0 logo will be used.
|
|
78
|
+
*/
|
|
79
|
+
readonly pictureUrl: string;
|
|
80
|
+
/**
|
|
81
|
+
* Selected sandbox version for the extensibility environment, which allows you to use custom scripts to extend parts of Auth0's functionality.
|
|
82
|
+
*/
|
|
83
|
+
readonly sandboxVersion: string;
|
|
84
|
+
/**
|
|
85
|
+
* Alters behavior of tenant's session cookie. Contains a single `mode` property.
|
|
86
|
+
*/
|
|
87
|
+
readonly sessionCookies: outputs.GetTenantSessionCooky[];
|
|
88
|
+
/**
|
|
89
|
+
* Number of hours during which a session will stay valid.
|
|
90
|
+
*/
|
|
91
|
+
readonly sessionLifetime: number;
|
|
92
|
+
/**
|
|
93
|
+
* Support email address for authenticating users.
|
|
94
|
+
*/
|
|
95
|
+
readonly supportEmail: string;
|
|
96
|
+
/**
|
|
97
|
+
* Support URL for authenticating users.
|
|
98
|
+
*/
|
|
99
|
+
readonly supportUrl: string;
|
|
100
|
+
/**
|
|
101
|
+
* Configuration settings for Universal Login.
|
|
102
|
+
*/
|
|
103
|
+
readonly universalLogins: outputs.GetTenantUniversalLogin[];
|
|
31
104
|
}
|
package/getTenant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTenant.js","sourceRoot":"","sources":["../getTenant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"getTenant.js","sourceRoot":"","sources":["../getTenant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;GAWG;AACH,SAAgB,SAAS,CAAC,IAA2B;IAEjD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,iCAAiC,EAAE,EAC/D,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AALD,8BAKC"}
|
package/getUser.d.ts
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Data source to retrieve a specific Auth0 user by `userId`.
|
|
4
|
+
*
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
10
|
+
*
|
|
11
|
+
* const myUser = auth0.getUser({
|
|
12
|
+
* userId: "auth0|34fdr23fdsfdfsf",
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
|
|
17
|
+
/**
|
|
18
|
+
* A collection of arguments for invoking getUser.
|
|
19
|
+
*/
|
|
20
|
+
export interface GetUserArgs {
|
|
21
|
+
/**
|
|
22
|
+
* ID of the user.
|
|
23
|
+
*/
|
|
24
|
+
userId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A collection of values returned by getUser.
|
|
28
|
+
*/
|
|
29
|
+
export interface GetUserResult {
|
|
30
|
+
/**
|
|
31
|
+
* Custom fields that store info about the user that impact the user's core functionality, such as how an application functions or what the user can access. Examples include support plans and IDs for external accounts.
|
|
32
|
+
*/
|
|
33
|
+
readonly appMetadata: string;
|
|
34
|
+
/**
|
|
35
|
+
* Indicates whether the user is blocked or not.
|
|
36
|
+
*/
|
|
37
|
+
readonly blocked: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Name of the connection from which the user information was sourced.
|
|
40
|
+
*/
|
|
41
|
+
readonly connectionName: string;
|
|
42
|
+
/**
|
|
43
|
+
* Email address of the user.
|
|
44
|
+
*/
|
|
45
|
+
readonly email: string;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates whether the email address has been verified.
|
|
48
|
+
*/
|
|
49
|
+
readonly emailVerified: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Family name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: [Configure Identity Provider Connection for User Profile Updates](https://auth0.com/docs/manage-users/user-accounts/user-profiles/configure-connection-sync-with-auth0).
|
|
52
|
+
*/
|
|
53
|
+
readonly familyName: string;
|
|
54
|
+
/**
|
|
55
|
+
* Given name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: [Configure Identity Provider Connection for User Profile Updates](https://auth0.com/docs/manage-users/user-accounts/user-profiles/configure-connection-sync-with-auth0).
|
|
56
|
+
*/
|
|
57
|
+
readonly givenName: string;
|
|
58
|
+
/**
|
|
59
|
+
* The provider-assigned unique ID for this managed resource.
|
|
60
|
+
*/
|
|
61
|
+
readonly id: string;
|
|
62
|
+
/**
|
|
63
|
+
* Name of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: [Configure Identity Provider Connection for User Profile Updates](https://auth0.com/docs/manage-users/user-accounts/user-profiles/configure-connection-sync-with-auth0).
|
|
64
|
+
*/
|
|
65
|
+
readonly name: string;
|
|
66
|
+
/**
|
|
67
|
+
* Preferred nickname or alias of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: [Configure Identity Provider Connection for User Profile Updates](https://auth0.com/docs/manage-users/user-accounts/user-profiles/configure-connection-sync-with-auth0).
|
|
68
|
+
*/
|
|
69
|
+
readonly nickname: string;
|
|
70
|
+
/**
|
|
71
|
+
* Initial password for this user. Required for non-passwordless connections (SMS and email).
|
|
72
|
+
*/
|
|
73
|
+
readonly password: string;
|
|
74
|
+
/**
|
|
75
|
+
* Phone number for the user; follows the E.164 recommendation. Used for SMS connections.
|
|
76
|
+
*/
|
|
77
|
+
readonly phoneNumber: string;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates whether the phone number has been verified.
|
|
80
|
+
*/
|
|
81
|
+
readonly phoneVerified: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Picture of the user. This value can only be updated if the connection is a database connection (using the Auth0 store), a passwordless connection (email or sms) or has disabled 'Sync user profile attributes at each login'. For more information, see: [Configure Identity Provider Connection for User Profile Updates](https://auth0.com/docs/manage-users/user-accounts/user-profiles/configure-connection-sync-with-auth0).
|
|
84
|
+
*/
|
|
85
|
+
readonly picture: string;
|
|
86
|
+
/**
|
|
87
|
+
* Set of IDs of roles assigned to the user.
|
|
88
|
+
*/
|
|
89
|
+
readonly roles: string[];
|
|
90
|
+
/**
|
|
91
|
+
* ID of the user.
|
|
92
|
+
*/
|
|
93
|
+
readonly userId: string;
|
|
94
|
+
/**
|
|
95
|
+
* Custom fields that store info about the user that does not impact a user's core functionality. Examples include work address, home address, and user preferences.
|
|
96
|
+
*/
|
|
97
|
+
readonly userMetadata: string;
|
|
98
|
+
/**
|
|
99
|
+
* Username of the user. Only valid if the connection requires a username.
|
|
100
|
+
*/
|
|
101
|
+
readonly username: string;
|
|
102
|
+
/**
|
|
103
|
+
* Indicates whether the user will receive a verification email after creation. Overrides behavior of `emailVerified` parameter.
|
|
104
|
+
*/
|
|
105
|
+
readonly verifyEmail: boolean;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Data source to retrieve a specific Auth0 user by `userId`.
|
|
109
|
+
*
|
|
110
|
+
* ## Example Usage
|
|
111
|
+
*
|
|
112
|
+
* ```typescript
|
|
113
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
114
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
115
|
+
*
|
|
116
|
+
* const myUser = auth0.getUser({
|
|
117
|
+
* userId: "auth0|34fdr23fdsfdfsf",
|
|
118
|
+
* });
|
|
119
|
+
* ```
|
|
120
|
+
*/
|
|
121
|
+
export declare function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetUserResult>;
|
|
122
|
+
/**
|
|
123
|
+
* A collection of arguments for invoking getUser.
|
|
124
|
+
*/
|
|
125
|
+
export interface GetUserOutputArgs {
|
|
126
|
+
/**
|
|
127
|
+
* ID of the user.
|
|
128
|
+
*/
|
|
129
|
+
userId: pulumi.Input<string>;
|
|
130
|
+
}
|
package/getUser.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.getUserOutput = exports.getUser = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Data source to retrieve a specific Auth0 user by `userId`.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
*
|
|
17
|
+
* const myUser = auth0.getUser({
|
|
18
|
+
* userId: "auth0|34fdr23fdsfdfsf",
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
function getUser(args, opts) {
|
|
23
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
24
|
+
return pulumi.runtime.invoke("auth0:index/getUser:getUser", {
|
|
25
|
+
"userId": args.userId,
|
|
26
|
+
}, opts);
|
|
27
|
+
}
|
|
28
|
+
exports.getUser = getUser;
|
|
29
|
+
/**
|
|
30
|
+
* Data source to retrieve a specific Auth0 user by `userId`.
|
|
31
|
+
*
|
|
32
|
+
* ## Example Usage
|
|
33
|
+
*
|
|
34
|
+
* ```typescript
|
|
35
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
36
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
37
|
+
*
|
|
38
|
+
* const myUser = auth0.getUser({
|
|
39
|
+
* userId: "auth0|34fdr23fdsfdfsf",
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
function getUserOutput(args, opts) {
|
|
44
|
+
return pulumi.output(args).apply((a) => getUser(a, opts));
|
|
45
|
+
}
|
|
46
|
+
exports.getUserOutput = getUserOutput;
|
|
47
|
+
//# sourceMappingURL=getUser.js.map
|
package/getUser.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getUser.js","sourceRoot":"","sources":["../getUser.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;GAaG;AACH,SAAgB,OAAO,CAAC,IAAiB,EAAE,IAA2B;IAElE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,6BAA6B,EAAE;QACxD,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,0BAMC;AA6FD;;;;;;;;;;;;;GAaG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAC9E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
|