@pulumi/auth0 2.14.0-alpha.1663280530 → 2.14.0-alpha.1666810964
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 +25 -72
- package/action.js +2 -50
- package/action.js.map +1 -1
- package/attackProtection.d.ts +9 -8
- package/attackProtection.js +4 -4
- package/attackProtection.js.map +1 -1
- package/branding.d.ts +31 -30
- package/branding.js +14 -8
- package/branding.js.map +1 -1
- package/brandingTheme.d.ts +156 -0
- package/brandingTheme.js +165 -0
- package/brandingTheme.js.map +1 -0
- package/client.d.ts +145 -126
- package/client.js +26 -22
- package/client.js.map +1 -1
- package/clientGrant.d.ts +12 -13
- package/clientGrant.js +3 -4
- package/clientGrant.js.map +1 -1
- package/config/vars.d.ts +22 -0
- package/config/vars.js +6 -0
- package/config/vars.js.map +1 -1
- package/connection.d.ts +256 -41
- package/connection.js +236 -4
- package/connection.js.map +1 -1
- package/customDomain.d.ts +42 -18
- package/customDomain.js +6 -3
- package/customDomain.js.map +1 -1
- package/customDomainVerification.d.ts +15 -9
- package/customDomainVerification.js +4 -4
- package/customDomainVerification.js.map +1 -1
- package/email.d.ts +37 -18
- package/email.js +23 -5
- package/email.js.map +1 -1
- package/emailTemplate.d.ts +29 -32
- package/emailTemplate.js +2 -5
- package/emailTemplate.js.map +1 -1
- package/getClient.d.ts +111 -6
- package/getClient.js +3 -1
- package/getClient.js.map +1 -1
- package/getGlobalClient.d.ts +98 -31
- package/getGlobalClient.js +3 -11
- package/getGlobalClient.js.map +1 -1
- package/getTenant.d.ts +3 -3
- package/getTenant.js +1 -1
- package/globalClient.d.ts +333 -2
- package/globalClient.js +7 -3
- package/globalClient.js.map +1 -1
- package/guardian.d.ts +32 -56
- package/guardian.js +3 -4
- package/guardian.js.map +1 -1
- package/hook.d.ts +12 -18
- package/hook.js +9 -10
- package/hook.js.map +1 -1
- package/index.d.ts +91 -30
- package/index.js +94 -101
- package/index.js.map +1 -1
- package/logStream.d.ts +34 -18
- package/logStream.js +17 -2
- package/logStream.js.map +1 -1
- package/organization.d.ts +22 -55
- package/organization.js +8 -17
- package/organization.js.map +1 -1
- package/organizationConnection.d.ts +7 -5
- package/organizationConnection.js +7 -5
- package/organizationConnection.js.map +1 -1
- package/organizationMember.d.ts +27 -15
- package/organizationMember.js +18 -6
- package/organizationMember.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +2 -2
- package/prompt.d.ts +12 -12
- package/prompt.js +4 -4
- package/promptCustomText.d.ts +8 -9
- package/promptCustomText.js +2 -3
- package/promptCustomText.js.map +1 -1
- package/provider.d.ts +41 -0
- package/provider.js +1 -0
- package/provider.js.map +1 -1
- package/resourceServer.d.ts +47 -46
- package/resourceServer.js +4 -1
- package/resourceServer.js.map +1 -1
- package/role.d.ts +13 -17
- package/role.js +2 -4
- package/role.js.map +1 -1
- package/rule.d.ts +19 -25
- package/rule.js +6 -12
- package/rule.js.map +1 -1
- package/ruleConfig.d.ts +12 -14
- package/ruleConfig.js +9 -9
- package/ruleConfig.js.map +1 -1
- package/tenant.d.ts +91 -80
- package/tenant.js +35 -25
- package/tenant.js.map +1 -1
- package/triggerBinding.d.ts +19 -26
- package/triggerBinding.js +11 -16
- package/triggerBinding.js.map +1 -1
- package/types/index.js.map +1 -1
- package/types/input.d.ts +488 -425
- package/types/output.d.ts +500 -435
- package/user.d.ts +87 -44
- package/user.js +6 -6
- package/user.js.map +1 -1
- package/utilities.js +13 -1
- package/utilities.js.map +1 -1
package/client.js
CHANGED
|
@@ -6,7 +6,7 @@ exports.Client = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* With this resource, you can set up applications that use Auth0 for authentication and configure allowed callback URLs and secrets for these applications.
|
|
9
|
+
* With this resource, you can set up applications that use Auth0 for authentication and configure allowed callback URLs and secrets for these applications.
|
|
10
10
|
*
|
|
11
11
|
* ## Example Usage
|
|
12
12
|
*
|
|
@@ -16,15 +16,10 @@ const utilities = require("./utilities");
|
|
|
16
16
|
*
|
|
17
17
|
* const myClient = new auth0.Client("my_client", {
|
|
18
18
|
* addons: {
|
|
19
|
-
* firebase: {
|
|
20
|
-
* client_email: "john.doe@example.com",
|
|
21
|
-
* lifetime_in_seconds: 1,
|
|
22
|
-
* private_key: "wer",
|
|
23
|
-
* private_key_id: "qwreerwerwe",
|
|
24
|
-
* },
|
|
25
19
|
* samlp: {
|
|
26
20
|
* audience: "https://example.com/saml",
|
|
27
21
|
* createUpnClaim: false,
|
|
22
|
+
* issuer: "https://example.com",
|
|
28
23
|
* mapIdentities: false,
|
|
29
24
|
* mapUnknownClaimsAsIs: false,
|
|
30
25
|
* mappings: {
|
|
@@ -34,10 +29,25 @@ const utilities = require("./utilities");
|
|
|
34
29
|
* nameIdentifierFormat: "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent",
|
|
35
30
|
* nameIdentifierProbes: ["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],
|
|
36
31
|
* passthroughClaimsWithNoMapping: false,
|
|
37
|
-
* signingCert:
|
|
32
|
+
* signingCert: `-----BEGIN PUBLIC KEY-----
|
|
33
|
+
* MIGf...bpP/t3
|
|
34
|
+
* +JGNGIRMj1hF1rnb6QIDAQAB
|
|
35
|
+
* -----END PUBLIC KEY-----
|
|
36
|
+
* `,
|
|
37
|
+
* signingKey: [{
|
|
38
|
+
* cert: `-----BEGIN PUBLIC KEY-----
|
|
39
|
+
* MIGf...bpP/t3
|
|
40
|
+
* +JGNGIRMj1hF1rnb6QIDAQAB
|
|
41
|
+
* -----END PUBLIC KEY-----
|
|
42
|
+
* `,
|
|
43
|
+
* key: `-----BEGIN PRIVATE KEY-----
|
|
44
|
+
* MIGf...bpP/t3
|
|
45
|
+
* +JGNGIRMj1hF1rnb6QIDAQAB
|
|
46
|
+
* -----END PUBLIC KEY-----
|
|
47
|
+
* `,
|
|
48
|
+
* }],
|
|
38
49
|
* },
|
|
39
50
|
* },
|
|
40
|
-
* allowedClients: ["https://allowed.example.com"],
|
|
41
51
|
* allowedLogoutUrls: ["https://example.com"],
|
|
42
52
|
* allowedOrigins: ["https://example.com"],
|
|
43
53
|
* appType: "non_interactive",
|
|
@@ -45,10 +55,6 @@ const utilities = require("./utilities");
|
|
|
45
55
|
* clientMetadata: {
|
|
46
56
|
* foo: "zoo",
|
|
47
57
|
* },
|
|
48
|
-
* clientSecretRotationTrigger: {
|
|
49
|
-
* triggered_at: "2018-01-02T23:12:01Z",
|
|
50
|
-
* triggered_by: "auth0",
|
|
51
|
-
* },
|
|
52
58
|
* customLoginPageOn: true,
|
|
53
59
|
* description: "Test Applications Long Description",
|
|
54
60
|
* grantTypes: [
|
|
@@ -58,7 +64,6 @@ const utilities = require("./utilities");
|
|
|
58
64
|
* "password",
|
|
59
65
|
* "refresh_token",
|
|
60
66
|
* ],
|
|
61
|
-
* initiateLoginUri: "https://example.com/login",
|
|
62
67
|
* isFirstParty: true,
|
|
63
68
|
* isTokenEndpointIpHeaderTrusted: true,
|
|
64
69
|
* jwtConfiguration: {
|
|
@@ -76,16 +81,11 @@ const utilities = require("./utilities");
|
|
|
76
81
|
* },
|
|
77
82
|
* },
|
|
78
83
|
* oidcConformant: false,
|
|
79
|
-
* organizationRequireBehavior: "no_prompt",
|
|
80
|
-
* organizationUsage: "deny",
|
|
81
84
|
* refreshToken: {
|
|
82
85
|
* expirationType: "expiring",
|
|
83
|
-
*
|
|
84
|
-
* infiniteIdleTokenLifetime: true,
|
|
85
|
-
* infiniteTokenLifetime: false,
|
|
86
|
-
* leeway: 15,
|
|
86
|
+
* leeway: 0,
|
|
87
87
|
* rotationType: "rotating",
|
|
88
|
-
* tokenLifetime:
|
|
88
|
+
* tokenLifetime: 2592000,
|
|
89
89
|
* },
|
|
90
90
|
* tokenEndpointAuthMethod: "client_secret_post",
|
|
91
91
|
* webOrigins: ["https://example.com"],
|
|
@@ -94,7 +94,7 @@ const utilities = require("./utilities");
|
|
|
94
94
|
*
|
|
95
95
|
* ## Import
|
|
96
96
|
*
|
|
97
|
-
* A client can be imported using the client's ID
|
|
97
|
+
* A client can be imported using the client's ID. # Example
|
|
98
98
|
*
|
|
99
99
|
* ```sh
|
|
100
100
|
* $ pulumi import auth0:index/client:Client my_client AaiyAPdpYdesoKnqjj8HJqRn4T5titww
|
|
@@ -113,6 +113,7 @@ class Client extends pulumi.CustomResource {
|
|
|
113
113
|
resourceInputs["allowedOrigins"] = state ? state.allowedOrigins : undefined;
|
|
114
114
|
resourceInputs["appType"] = state ? state.appType : undefined;
|
|
115
115
|
resourceInputs["callbacks"] = state ? state.callbacks : undefined;
|
|
116
|
+
resourceInputs["clientAliases"] = state ? state.clientAliases : undefined;
|
|
116
117
|
resourceInputs["clientId"] = state ? state.clientId : undefined;
|
|
117
118
|
resourceInputs["clientMetadata"] = state ? state.clientMetadata : undefined;
|
|
118
119
|
resourceInputs["clientSecret"] = state ? state.clientSecret : undefined;
|
|
@@ -151,6 +152,7 @@ class Client extends pulumi.CustomResource {
|
|
|
151
152
|
resourceInputs["allowedOrigins"] = args ? args.allowedOrigins : undefined;
|
|
152
153
|
resourceInputs["appType"] = args ? args.appType : undefined;
|
|
153
154
|
resourceInputs["callbacks"] = args ? args.callbacks : undefined;
|
|
155
|
+
resourceInputs["clientAliases"] = args ? args.clientAliases : undefined;
|
|
154
156
|
resourceInputs["clientMetadata"] = args ? args.clientMetadata : undefined;
|
|
155
157
|
resourceInputs["clientSecretRotationTrigger"] = args ? args.clientSecretRotationTrigger : undefined;
|
|
156
158
|
resourceInputs["crossOriginAuth"] = args ? args.crossOriginAuth : undefined;
|
|
@@ -182,6 +184,8 @@ class Client extends pulumi.CustomResource {
|
|
|
182
184
|
resourceInputs["signingKeys"] = undefined /*out*/;
|
|
183
185
|
}
|
|
184
186
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
187
|
+
const secretOpts = { additionalSecretOutputs: ["clientSecret", "signingKeys"] };
|
|
188
|
+
opts = pulumi.mergeOptions(opts, secretOpts);
|
|
185
189
|
super(Client.__pulumiType, name, resourceInputs, opts);
|
|
186
190
|
}
|
|
187
191
|
/**
|
package/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8FG;AACH,MAAa,MAAO,SAAQ,MAAM,CAAC,cAAc;IAsL7C,YAAY,IAAY,EAAE,WAAsC,EAAE,IAAmC;;QACjG,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAsC,CAAC;YACrD,cAAc,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAClF,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5E,cAAc,CAAC,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c,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACrD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,MAAM,UAAU,GAAG,EAAE,uBAAuB,EAAE,CAAC,cAAc,EAAE,aAAa,CAAC,EAAE,CAAC;QAChF,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;QAC7C,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC3D,CAAC;IAzQD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAmB,EAAE,IAAmC;QACjH,OAAO,IAAI,MAAM,CAAC,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,wBA2QC;AA7PG,gBAAgB;AACO,mBAAY,GAAG,2BAA2B,CAAC"}
|
package/clientGrant.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import * as pulumi from "@pulumi/pulumi";
|
|
2
2
|
/**
|
|
3
|
-
* Auth0 uses various grant types, or methods by which you grant limited access to your resources to another entity without
|
|
4
|
-
* exposing credentials. The OAuth 2.0 protocol supports several types of grants, which allow different types of access.
|
|
5
|
-
* This resource allows you to create and manage client grants used with configured Auth0 clients.
|
|
3
|
+
* Auth0 uses various grant types, or methods by which you grant limited access to your resources to another entity without exposing credentials. The OAuth 2.0 protocol supports several types of grants, which allow different types of access. This resource allows you to create and manage client grants used with configured Auth0 clients.
|
|
6
4
|
*
|
|
7
5
|
* ## Example Usage
|
|
8
6
|
*
|
|
@@ -10,6 +8,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
10
8
|
* import * as pulumi from "@pulumi/pulumi";
|
|
11
9
|
* import * as auth0 from "@pulumi/auth0";
|
|
12
10
|
*
|
|
11
|
+
* // The following example grants a client the "create:foo" permission (scope).
|
|
13
12
|
* const myClient = new auth0.Client("myClient", {});
|
|
14
13
|
* const myResourceServer = new auth0.ResourceServer("myResourceServer", {
|
|
15
14
|
* identifier: "https://api.example.com/client-grant",
|
|
@@ -33,7 +32,7 @@ import * as pulumi from "@pulumi/pulumi";
|
|
|
33
32
|
*
|
|
34
33
|
* ## Import
|
|
35
34
|
*
|
|
36
|
-
* Client grants can be imported using the grant ID
|
|
35
|
+
* Client grants can be imported using the grant ID. # Application -> APIs -> Expand the required API # Example
|
|
37
36
|
*
|
|
38
37
|
* ```sh
|
|
39
38
|
* $ pulumi import auth0:index/clientGrant:ClientGrant my_client_grant cgr_XXXXXXXXXXXXXXXX
|
|
@@ -56,15 +55,15 @@ export declare class ClientGrant extends pulumi.CustomResource {
|
|
|
56
55
|
*/
|
|
57
56
|
static isInstance(obj: any): obj is ClientGrant;
|
|
58
57
|
/**
|
|
59
|
-
*
|
|
58
|
+
* Audience or API Identifier for this grant.
|
|
60
59
|
*/
|
|
61
60
|
readonly audience: pulumi.Output<string>;
|
|
62
61
|
/**
|
|
63
|
-
*
|
|
62
|
+
* ID of the client for this grant.
|
|
64
63
|
*/
|
|
65
64
|
readonly clientId: pulumi.Output<string>;
|
|
66
65
|
/**
|
|
67
|
-
*
|
|
66
|
+
* Permissions (scopes) included in this grant.
|
|
68
67
|
*/
|
|
69
68
|
readonly scopes: pulumi.Output<string[]>;
|
|
70
69
|
/**
|
|
@@ -81,15 +80,15 @@ export declare class ClientGrant extends pulumi.CustomResource {
|
|
|
81
80
|
*/
|
|
82
81
|
export interface ClientGrantState {
|
|
83
82
|
/**
|
|
84
|
-
*
|
|
83
|
+
* Audience or API Identifier for this grant.
|
|
85
84
|
*/
|
|
86
85
|
audience?: pulumi.Input<string>;
|
|
87
86
|
/**
|
|
88
|
-
*
|
|
87
|
+
* ID of the client for this grant.
|
|
89
88
|
*/
|
|
90
89
|
clientId?: pulumi.Input<string>;
|
|
91
90
|
/**
|
|
92
|
-
*
|
|
91
|
+
* Permissions (scopes) included in this grant.
|
|
93
92
|
*/
|
|
94
93
|
scopes?: pulumi.Input<pulumi.Input<string>[]>;
|
|
95
94
|
}
|
|
@@ -98,15 +97,15 @@ export interface ClientGrantState {
|
|
|
98
97
|
*/
|
|
99
98
|
export interface ClientGrantArgs {
|
|
100
99
|
/**
|
|
101
|
-
*
|
|
100
|
+
* Audience or API Identifier for this grant.
|
|
102
101
|
*/
|
|
103
102
|
audience: pulumi.Input<string>;
|
|
104
103
|
/**
|
|
105
|
-
*
|
|
104
|
+
* ID of the client for this grant.
|
|
106
105
|
*/
|
|
107
106
|
clientId: pulumi.Input<string>;
|
|
108
107
|
/**
|
|
109
|
-
*
|
|
108
|
+
* Permissions (scopes) included in this grant.
|
|
110
109
|
*/
|
|
111
110
|
scopes: pulumi.Input<pulumi.Input<string>[]>;
|
|
112
111
|
}
|
package/clientGrant.js
CHANGED
|
@@ -6,9 +6,7 @@ exports.ClientGrant = void 0;
|
|
|
6
6
|
const pulumi = require("@pulumi/pulumi");
|
|
7
7
|
const utilities = require("./utilities");
|
|
8
8
|
/**
|
|
9
|
-
* Auth0 uses various grant types, or methods by which you grant limited access to your resources to another entity without
|
|
10
|
-
* exposing credentials. The OAuth 2.0 protocol supports several types of grants, which allow different types of access.
|
|
11
|
-
* This resource allows you to create and manage client grants used with configured Auth0 clients.
|
|
9
|
+
* Auth0 uses various grant types, or methods by which you grant limited access to your resources to another entity without exposing credentials. The OAuth 2.0 protocol supports several types of grants, which allow different types of access. This resource allows you to create and manage client grants used with configured Auth0 clients.
|
|
12
10
|
*
|
|
13
11
|
* ## Example Usage
|
|
14
12
|
*
|
|
@@ -16,6 +14,7 @@ const utilities = require("./utilities");
|
|
|
16
14
|
* import * as pulumi from "@pulumi/pulumi";
|
|
17
15
|
* import * as auth0 from "@pulumi/auth0";
|
|
18
16
|
*
|
|
17
|
+
* // The following example grants a client the "create:foo" permission (scope).
|
|
19
18
|
* const myClient = new auth0.Client("myClient", {});
|
|
20
19
|
* const myResourceServer = new auth0.ResourceServer("myResourceServer", {
|
|
21
20
|
* identifier: "https://api.example.com/client-grant",
|
|
@@ -39,7 +38,7 @@ const utilities = require("./utilities");
|
|
|
39
38
|
*
|
|
40
39
|
* ## Import
|
|
41
40
|
*
|
|
42
|
-
* Client grants can be imported using the grant ID
|
|
41
|
+
* Client grants can be imported using the grant ID. # Application -> APIs -> Expand the required API # Example
|
|
43
42
|
*
|
|
44
43
|
* ```sh
|
|
45
44
|
* $ pulumi import auth0:index/clientGrant:ClientGrant my_client_grant cgr_XXXXXXXXXXXXXXXX
|
package/clientGrant.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientGrant.js","sourceRoot":"","sources":["../clientGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC
|
|
1
|
+
{"version":3,"file":"clientGrant.js","sourceRoot":"","sources":["../clientGrant.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,WAAY,SAAQ,MAAM,CAAC,cAAc;IAiDlD,YAAY,IAAY,EAAE,WAAgD,EAAE,IAAmC;QAC3G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT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AS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAzED;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAwB,EAAE,IAAmC;QACtH,OAAO,IAAI,WAAW,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAClE,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,WAAW,CAAC,YAAY,CAAC;IAC5D,CAAC;;AA1BL,kCA2EC;AA7DG,gBAAgB;AACO,wBAAY,GAAG,qCAAqC,CAAC"}
|
package/config/vars.d.ts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Your Auth0 [management api access
|
|
3
|
+
* token](https://auth0.com/docs/security/tokens/access-tokens/management-api-access-tokens). It can also be sourced from
|
|
4
|
+
* the `AUTH0_API_TOKEN` environment variable. It can be used instead of `client_id` + `client_secret`. If both are
|
|
5
|
+
* specified, `api_token` will be used over `client_id` + `client_secret` fields.
|
|
6
|
+
*/
|
|
1
7
|
export declare const apiToken: string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Your Auth0 audience when using a custom domain. It can also be sourced from the `AUTH0_AUDIENCE` environment variable.
|
|
10
|
+
*/
|
|
11
|
+
export declare const audience: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Your Auth0 client ID. It can also be sourced from the `AUTH0_CLIENT_ID` environment variable.
|
|
14
|
+
*/
|
|
2
15
|
export declare const clientId: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Your Auth0 client secret. It can also be sourced from the `AUTH0_CLIENT_SECRET` environment variable.
|
|
18
|
+
*/
|
|
3
19
|
export declare const clientSecret: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Indicates whether to turn on debug mode.
|
|
22
|
+
*/
|
|
4
23
|
export declare const debug: boolean | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Your Auth0 domain name. It can also be sourced from the `AUTH0_DOMAIN` environment variable.
|
|
26
|
+
*/
|
|
5
27
|
export declare const domain: string | undefined;
|
package/config/vars.js
CHANGED
|
@@ -11,6 +11,12 @@ Object.defineProperty(exports, "apiToken", {
|
|
|
11
11
|
},
|
|
12
12
|
enumerable: true,
|
|
13
13
|
});
|
|
14
|
+
Object.defineProperty(exports, "audience", {
|
|
15
|
+
get() {
|
|
16
|
+
return __config.get("audience");
|
|
17
|
+
},
|
|
18
|
+
enumerable: true,
|
|
19
|
+
});
|
|
14
20
|
Object.defineProperty(exports, "clientId", {
|
|
15
21
|
get() {
|
|
16
22
|
return __config.get("clientId");
|
package/config/vars.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vars.js","sourceRoot":"","sources":["../../config/vars.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;AAEjF,yCAAyC;AACzC,0CAA0C;AAG1C,MAAM,QAAQ,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAS5C,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE;IACvC,GAAG;Q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