@pulumi/auth0 3.8.1 → 3.8.2
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/emailProvider.d.ts +71 -3
- package/emailProvider.js +68 -0
- package/emailProvider.js.map +1 -1
- package/package.json +2 -2
- package/triggerAction.d.ts +3 -3
- package/triggerActions.d.ts +3 -3
package/emailProvider.d.ts
CHANGED
|
@@ -4,6 +4,74 @@ import * as outputs from "./types/output";
|
|
|
4
4
|
/**
|
|
5
5
|
* With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice.
|
|
6
6
|
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
12
|
+
*
|
|
13
|
+
* // This is an example on how to set up the email provider with Amazon SES.
|
|
14
|
+
* const amazonSesEmailProvider = new auth0.EmailProvider("amazon_ses_email_provider", {
|
|
15
|
+
* name: "ses",
|
|
16
|
+
* enabled: true,
|
|
17
|
+
* defaultFromAddress: "accounts@example.com",
|
|
18
|
+
* credentials: {
|
|
19
|
+
* accessKeyId: "AKIAXXXXXXXXXXXXXXXX",
|
|
20
|
+
* secretAccessKey: "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
21
|
+
* region: "us-east-1",
|
|
22
|
+
* },
|
|
23
|
+
* });
|
|
24
|
+
* // This is an example on how to set up the email provider with SMTP.
|
|
25
|
+
* const smtpEmailProvider = new auth0.EmailProvider("smtp_email_provider", {
|
|
26
|
+
* name: "smtp",
|
|
27
|
+
* enabled: true,
|
|
28
|
+
* defaultFromAddress: "accounts@example.com",
|
|
29
|
+
* credentials: {
|
|
30
|
+
* smtpHost: "your.smtp.host.com",
|
|
31
|
+
* smtpPort: 583,
|
|
32
|
+
* smtpUser: "SMTP Username",
|
|
33
|
+
* smtpPass: "SMTP Password",
|
|
34
|
+
* },
|
|
35
|
+
* });
|
|
36
|
+
* // This is an example on how to set up the email provider with Sendgrid.
|
|
37
|
+
* const sendgridEmailProvider = new auth0.EmailProvider("sendgrid_email_provider", {
|
|
38
|
+
* name: "sendgrid",
|
|
39
|
+
* enabled: true,
|
|
40
|
+
* defaultFromAddress: "accounts@example.com",
|
|
41
|
+
* credentials: {
|
|
42
|
+
* apiKey: "secretAPIKey",
|
|
43
|
+
* },
|
|
44
|
+
* });
|
|
45
|
+
* // This is an example on how to set up the email provider with Azure CS.
|
|
46
|
+
* const azureCsEmailProvider = new auth0.EmailProvider("azure_cs_email_provider", {
|
|
47
|
+
* name: "azure_cs",
|
|
48
|
+
* enabled: true,
|
|
49
|
+
* defaultFromAddress: "accounts@example.com",
|
|
50
|
+
* credentials: {
|
|
51
|
+
* azureCsConnectionString: "azure_cs_connection_string",
|
|
52
|
+
* },
|
|
53
|
+
* });
|
|
54
|
+
* // This is an example on how to set up the email provider with MS365.
|
|
55
|
+
* const ms365EmailProvider = new auth0.EmailProvider("ms365_email_provider", {
|
|
56
|
+
* name: "ms365",
|
|
57
|
+
* enabled: true,
|
|
58
|
+
* defaultFromAddress: "accounts@example.com",
|
|
59
|
+
* credentials: {
|
|
60
|
+
* ms365TenantId: "ms365_tenant_id",
|
|
61
|
+
* ms365ClientId: "ms365_client_id",
|
|
62
|
+
* ms365ClientSecret: "ms365_client_secret",
|
|
63
|
+
* },
|
|
64
|
+
* });
|
|
65
|
+
* // This is an example on how to set up the email provider with a custom action.
|
|
66
|
+
* // Make sure a corresponding action exists with custom-email-provider as supported triggers
|
|
67
|
+
* const customEmailProvider = new auth0.EmailProvider("custom_email_provider", {
|
|
68
|
+
* name: "custom",
|
|
69
|
+
* enabled: true,
|
|
70
|
+
* defaultFromAddress: "accounts@example.com",
|
|
71
|
+
* credentials: {},
|
|
72
|
+
* });
|
|
73
|
+
* ```
|
|
74
|
+
*
|
|
7
75
|
* ## Import
|
|
8
76
|
*
|
|
9
77
|
* As this is not a resource identifiable by an ID within the Auth0 Management API,
|
|
@@ -51,7 +119,7 @@ export declare class EmailProvider extends pulumi.CustomResource {
|
|
|
51
119
|
*/
|
|
52
120
|
readonly enabled: pulumi.Output<boolean | undefined>;
|
|
53
121
|
/**
|
|
54
|
-
* Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.
|
|
122
|
+
* Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.
|
|
55
123
|
*/
|
|
56
124
|
readonly name: pulumi.Output<string>;
|
|
57
125
|
/**
|
|
@@ -84,7 +152,7 @@ export interface EmailProviderState {
|
|
|
84
152
|
*/
|
|
85
153
|
enabled?: pulumi.Input<boolean>;
|
|
86
154
|
/**
|
|
87
|
-
* Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.
|
|
155
|
+
* Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.
|
|
88
156
|
*/
|
|
89
157
|
name?: pulumi.Input<string>;
|
|
90
158
|
/**
|
|
@@ -109,7 +177,7 @@ export interface EmailProviderArgs {
|
|
|
109
177
|
*/
|
|
110
178
|
enabled?: pulumi.Input<boolean>;
|
|
111
179
|
/**
|
|
112
|
-
* Name of the email provider. Options include `azureCs`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.
|
|
180
|
+
* Name of the email provider. Options include `azureCs`, `custom`, `mailgun`, `mandrill`, `ms365`, `sendgrid`, `ses`, `smtp` and `sparkpost`.
|
|
113
181
|
*/
|
|
114
182
|
name?: pulumi.Input<string>;
|
|
115
183
|
/**
|
package/emailProvider.js
CHANGED
|
@@ -8,6 +8,74 @@ const utilities = require("./utilities");
|
|
|
8
8
|
/**
|
|
9
9
|
* With Auth0, you can have standard welcome, password reset, and account verification email-based workflows built right into Auth0. This resource allows you to configure email providers, so you can route all emails that are part of Auth0's authentication workflows through the supported high-volume email service of your choice.
|
|
10
10
|
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as auth0 from "@pulumi/auth0";
|
|
16
|
+
*
|
|
17
|
+
* // This is an example on how to set up the email provider with Amazon SES.
|
|
18
|
+
* const amazonSesEmailProvider = new auth0.EmailProvider("amazon_ses_email_provider", {
|
|
19
|
+
* name: "ses",
|
|
20
|
+
* enabled: true,
|
|
21
|
+
* defaultFromAddress: "accounts@example.com",
|
|
22
|
+
* credentials: {
|
|
23
|
+
* accessKeyId: "AKIAXXXXXXXXXXXXXXXX",
|
|
24
|
+
* secretAccessKey: "7e8c2148xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
|
|
25
|
+
* region: "us-east-1",
|
|
26
|
+
* },
|
|
27
|
+
* });
|
|
28
|
+
* // This is an example on how to set up the email provider with SMTP.
|
|
29
|
+
* const smtpEmailProvider = new auth0.EmailProvider("smtp_email_provider", {
|
|
30
|
+
* name: "smtp",
|
|
31
|
+
* enabled: true,
|
|
32
|
+
* defaultFromAddress: "accounts@example.com",
|
|
33
|
+
* credentials: {
|
|
34
|
+
* smtpHost: "your.smtp.host.com",
|
|
35
|
+
* smtpPort: 583,
|
|
36
|
+
* smtpUser: "SMTP Username",
|
|
37
|
+
* smtpPass: "SMTP Password",
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* // This is an example on how to set up the email provider with Sendgrid.
|
|
41
|
+
* const sendgridEmailProvider = new auth0.EmailProvider("sendgrid_email_provider", {
|
|
42
|
+
* name: "sendgrid",
|
|
43
|
+
* enabled: true,
|
|
44
|
+
* defaultFromAddress: "accounts@example.com",
|
|
45
|
+
* credentials: {
|
|
46
|
+
* apiKey: "secretAPIKey",
|
|
47
|
+
* },
|
|
48
|
+
* });
|
|
49
|
+
* // This is an example on how to set up the email provider with Azure CS.
|
|
50
|
+
* const azureCsEmailProvider = new auth0.EmailProvider("azure_cs_email_provider", {
|
|
51
|
+
* name: "azure_cs",
|
|
52
|
+
* enabled: true,
|
|
53
|
+
* defaultFromAddress: "accounts@example.com",
|
|
54
|
+
* credentials: {
|
|
55
|
+
* azureCsConnectionString: "azure_cs_connection_string",
|
|
56
|
+
* },
|
|
57
|
+
* });
|
|
58
|
+
* // This is an example on how to set up the email provider with MS365.
|
|
59
|
+
* const ms365EmailProvider = new auth0.EmailProvider("ms365_email_provider", {
|
|
60
|
+
* name: "ms365",
|
|
61
|
+
* enabled: true,
|
|
62
|
+
* defaultFromAddress: "accounts@example.com",
|
|
63
|
+
* credentials: {
|
|
64
|
+
* ms365TenantId: "ms365_tenant_id",
|
|
65
|
+
* ms365ClientId: "ms365_client_id",
|
|
66
|
+
* ms365ClientSecret: "ms365_client_secret",
|
|
67
|
+
* },
|
|
68
|
+
* });
|
|
69
|
+
* // This is an example on how to set up the email provider with a custom action.
|
|
70
|
+
* // Make sure a corresponding action exists with custom-email-provider as supported triggers
|
|
71
|
+
* const customEmailProvider = new auth0.EmailProvider("custom_email_provider", {
|
|
72
|
+
* name: "custom",
|
|
73
|
+
* enabled: true,
|
|
74
|
+
* defaultFromAddress: "accounts@example.com",
|
|
75
|
+
* credentials: {},
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
11
79
|
* ## Import
|
|
12
80
|
*
|
|
13
81
|
* As this is not a resource identifiable by an ID within the Auth0 Management API,
|
package/emailProvider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emailProvider.js","sourceRoot":"","sources":["../emailProvider.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,y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C,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAClE,CAAC;;AAnFL,sCAoFC;AAtEG,gBAAgB;AACO,0BAAY,GAAG,yCAAyC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pulumi/auth0",
|
|
3
|
-
"version": "3.8.
|
|
3
|
+
"version": "3.8.2",
|
|
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.8.
|
|
26
|
+
"version": "3.8.2"
|
|
27
27
|
}
|
|
28
28
|
}
|
package/triggerAction.d.ts
CHANGED
|
@@ -73,7 +73,7 @@ export declare class TriggerAction extends pulumi.CustomResource {
|
|
|
73
73
|
*/
|
|
74
74
|
readonly displayName: pulumi.Output<string>;
|
|
75
75
|
/**
|
|
76
|
-
* The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge
|
|
76
|
+
* The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.
|
|
77
77
|
*/
|
|
78
78
|
readonly trigger: pulumi.Output<string>;
|
|
79
79
|
/**
|
|
@@ -98,7 +98,7 @@ export interface TriggerActionState {
|
|
|
98
98
|
*/
|
|
99
99
|
displayName?: pulumi.Input<string>;
|
|
100
100
|
/**
|
|
101
|
-
* The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge
|
|
101
|
+
* The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.
|
|
102
102
|
*/
|
|
103
103
|
trigger?: pulumi.Input<string>;
|
|
104
104
|
}
|
|
@@ -115,7 +115,7 @@ export interface TriggerActionArgs {
|
|
|
115
115
|
*/
|
|
116
116
|
displayName?: pulumi.Input<string>;
|
|
117
117
|
/**
|
|
118
|
-
* The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge
|
|
118
|
+
* The ID of the trigger to bind with. Available options: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.
|
|
119
119
|
*/
|
|
120
120
|
trigger: pulumi.Input<string>;
|
|
121
121
|
}
|
package/triggerActions.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ export declare class TriggerActions extends pulumi.CustomResource {
|
|
|
86
86
|
*/
|
|
87
87
|
readonly actions: pulumi.Output<outputs.TriggerActionsAction[]>;
|
|
88
88
|
/**
|
|
89
|
-
* The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge
|
|
89
|
+
* The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.
|
|
90
90
|
*/
|
|
91
91
|
readonly trigger: pulumi.Output<string>;
|
|
92
92
|
/**
|
|
@@ -107,7 +107,7 @@ export interface TriggerActionsState {
|
|
|
107
107
|
*/
|
|
108
108
|
actions?: pulumi.Input<pulumi.Input<inputs.TriggerActionsAction>[]>;
|
|
109
109
|
/**
|
|
110
|
-
* The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge
|
|
110
|
+
* The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.
|
|
111
111
|
*/
|
|
112
112
|
trigger?: pulumi.Input<string>;
|
|
113
113
|
}
|
|
@@ -120,7 +120,7 @@ export interface TriggerActionsArgs {
|
|
|
120
120
|
*/
|
|
121
121
|
actions: pulumi.Input<pulumi.Input<inputs.TriggerActionsAction>[]>;
|
|
122
122
|
/**
|
|
123
|
-
* The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge
|
|
123
|
+
* The ID of the trigger to bind with. Options include: `post-login`, `credentials-exchange`, `pre-user-registration`, `post-user-registration`, `post-change-password`, `send-phone-message`, `password-reset-post-challenge`.
|
|
124
124
|
*/
|
|
125
125
|
trigger: pulumi.Input<string>;
|
|
126
126
|
}
|