auth0-deploy-cli 8.4.3 → 8.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/CHANGELOG.md +28 -1
  2. package/lib/context/defaults.js +7 -0
  3. package/lib/context/defaults.js.map +1 -1
  4. package/lib/index.d.ts +1 -0
  5. package/lib/index.js +6 -4
  6. package/lib/index.js.map +1 -1
  7. package/lib/tools/auth0/handlers/connections.js +1 -1
  8. package/lib/tools/auth0/handlers/connections.js.map +1 -1
  9. package/lib/tools/auth0/handlers/databases.d.ts +100 -0
  10. package/lib/tools/auth0/handlers/databases.js +72 -0
  11. package/lib/tools/auth0/handlers/databases.js.map +1 -1
  12. package/lib/tools/auth0/handlers/emailProvider.js +3 -3
  13. package/lib/tools/auth0/handlers/emailProvider.js.map +1 -1
  14. package/lib/tools/constants.d.ts +1 -0
  15. package/lib/tools/constants.js +5 -0
  16. package/lib/tools/constants.js.map +1 -1
  17. package/lib/tools/index.d.ts +1 -0
  18. package/package.json +3 -3
  19. package/.nyc_output/10fa88b6-c10a-45ce-8cb3-2a8dba4f95d2.json +0 -1
  20. package/.nyc_output/c42a459f-fc58-412c-a675-01cb9f92dcc9.json +0 -1
  21. package/.nyc_output/e49c3dcb-08e8-4563-ba45-9b005a768a65.json +0 -1
  22. package/.nyc_output/processinfo/10fa88b6-c10a-45ce-8cb3-2a8dba4f95d2.json +0 -1
  23. package/.nyc_output/processinfo/c42a459f-fc58-412c-a675-01cb9f92dcc9.json +0 -1
  24. package/.nyc_output/processinfo/e49c3dcb-08e8-4563-ba45-9b005a768a65.json +0 -1
  25. package/.nyc_output/processinfo/index.json +0 -1
  26. package/coverage/lcov-report/base.css +0 -224
  27. package/coverage/lcov-report/block-navigation.js +0 -87
  28. package/coverage/lcov-report/favicon.png +0 -0
  29. package/coverage/lcov-report/index.html +0 -251
  30. package/coverage/lcov-report/prettify.css +0 -1
  31. package/coverage/lcov-report/prettify.js +0 -2
  32. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  33. package/coverage/lcov-report/sorter.js +0 -196
  34. package/coverage/lcov.info +0 -9786
  35. package/docs/authenticating-with-tenant.md +0 -34
  36. package/docs/available-resource-config-formats.md +0 -19
  37. package/docs/configuring-the-deploy-cli.md +0 -180
  38. package/docs/excluding-from-management.md +0 -95
  39. package/docs/how-to-contribute.md +0 -49
  40. package/docs/keyword-replacement.md +0 -83
  41. package/docs/multi-environment-workflow.md +0 -98
  42. package/docs/resource-specific-documentation.md +0 -284
  43. package/docs/terraform-provider.md +0 -20
  44. package/docs/using-as-cli.md +0 -89
  45. package/docs/using-as-node-module.md +0 -114
  46. package/docs/v8_MIGRATION_GUIDE.md +0 -46
  47. package/examples/directory/README.md +0 -167
  48. package/examples/directory/actions/action-example/code.js +0 -4
  49. package/examples/directory/actions/action-example.json +0 -24
  50. package/examples/directory/clients/My SPA.json +0 -40
  51. package/examples/directory/config.json.example +0 -20
  52. package/examples/directory/connections/facebook.json +0 -60
  53. package/examples/directory/database-connections/users/change_email.js +0 -4
  54. package/examples/directory/database-connections/users/change_password.js +0 -4
  55. package/examples/directory/database-connections/users/create.js +0 -4
  56. package/examples/directory/database-connections/users/database.json +0 -20
  57. package/examples/directory/database-connections/users/delete.js +0 -4
  58. package/examples/directory/database-connections/users/get_user.js +0 -4
  59. package/examples/directory/database-connections/users/login.js +0 -4
  60. package/examples/directory/database-connections/users/verify.js +0 -4
  61. package/examples/directory/emails/blocked_account.html +0 -5
  62. package/examples/directory/emails/blocked_account.json +0 -10
  63. package/examples/directory/emails/enrollment_email.html +0 -5
  64. package/examples/directory/emails/enrollment_email.json +0 -8
  65. package/examples/directory/emails/mfa_oob_code.html +0 -5
  66. package/examples/directory/emails/mfa_oob_code.json +0 -8
  67. package/examples/directory/emails/provider.json +0 -10
  68. package/examples/directory/emails/reset_email.html +0 -5
  69. package/examples/directory/emails/reset_email.json +0 -10
  70. package/examples/directory/emails/stolen_credentials.html +0 -5
  71. package/examples/directory/emails/stolen_credentials.json +0 -8
  72. package/examples/directory/emails/verify_email.html +0 -5
  73. package/examples/directory/emails/verify_email.json +0 -10
  74. package/examples/directory/emails/verify_email_by_code.html +0 -5
  75. package/examples/directory/emails/verify_email_by_code.json +0 -8
  76. package/examples/directory/emails/welcome_email.html +0 -5
  77. package/examples/directory/emails/welcome_email.json +0 -8
  78. package/examples/directory/grants/m2m_myapp_api.json +0 -7
  79. package/examples/directory/guardian/factors/email.json +0 -4
  80. package/examples/directory/guardian/factors/otp.json +0 -4
  81. package/examples/directory/guardian/factors/push-notification.json +0 -4
  82. package/examples/directory/guardian/factors/sms.json +0 -4
  83. package/examples/directory/guardian/phoneFactorMessageTypes.json +0 -6
  84. package/examples/directory/guardian/phoneFactorSelectedProvider.json +0 -3
  85. package/examples/directory/guardian/policies.json +0 -5
  86. package/examples/directory/guardian/providers/sms-twilio.json +0 -7
  87. package/examples/directory/guardian/templates/sms.json +0 -5
  88. package/examples/directory/hooks/client-credentials-exchange.js +0 -22
  89. package/examples/directory/hooks/client-credentials-exchange.json +0 -12
  90. package/examples/directory/pages/login.html +0 -6
  91. package/examples/directory/pages/login.json +0 -4
  92. package/examples/directory/pages/password_reset.html +0 -6
  93. package/examples/directory/pages/password_reset.json +0 -4
  94. package/examples/directory/prompts/custom-text.json +0 -9
  95. package/examples/directory/prompts/prompts.json +0 -6
  96. package/examples/directory/prompts/screenRenderSettings/login-id_login-id.json +0 -33
  97. package/examples/directory/prompts/screenRenderSettings/signup-id_signup-id.json +0 -20
  98. package/examples/directory/resource-servers/My API.json +0 -19
  99. package/examples/directory/roles/Admin.json +0 -14
  100. package/examples/directory/roles/User.json +0 -10
  101. package/examples/directory/rules/Enrich-Identity-Token.js +0 -10
  102. package/examples/directory/rules/Enrich-Identity-Token.json +0 -7
  103. package/examples/directory/rules-configs/SOME_SECRET.json +0 -4
  104. package/examples/directory/tenant.json +0 -8
  105. package/examples/directory/triggers/triggers.json +0 -18
  106. package/examples/yaml/README.md +0 -111
  107. package/examples/yaml/actions/action-example/code.js +0 -4
  108. package/examples/yaml/config.json.example +0 -20
  109. package/examples/yaml/databases/users/change_email.js +0 -4
  110. package/examples/yaml/databases/users/change_password.js +0 -4
  111. package/examples/yaml/databases/users/create.js +0 -4
  112. package/examples/yaml/databases/users/delete.js +0 -4
  113. package/examples/yaml/databases/users/get_user.js +0 -4
  114. package/examples/yaml/databases/users/login.js +0 -4
  115. package/examples/yaml/databases/users/verify.js +0 -4
  116. package/examples/yaml/emails/change_email.html +0 -5
  117. package/examples/yaml/hooks/client-credentials-exchange.js +0 -22
  118. package/examples/yaml/pages/error_page.html +0 -6
  119. package/examples/yaml/pages/guardian_multifactor.html +0 -6
  120. package/examples/yaml/pages/login.html +0 -6
  121. package/examples/yaml/pages/password_reset.html +0 -6
  122. package/examples/yaml/prompts/screenRenderSettings/login-id_login-id.json +0 -33
  123. package/examples/yaml/prompts/screenRenderSettings/signup-id_signup-id.json +0 -20
  124. package/examples/yaml/rules/enrich_tokens.js +0 -10
  125. package/examples/yaml/tenant.yaml +0 -202
@@ -1,167 +0,0 @@
1
- # Auth0 Deploy CLI via Directory Structure
2
-
3
- This README will document how to use the Directory Option of the Auth0-deploy-cli tool. Please refer to the [README.md](README.md) for more information on the Auth0 Deploy CLI.
4
-
5
- # Overview
6
- The directory option supports exporting and importing the Auth0 tenant configuration into a pre-defined directory structure.
7
-
8
- There is more extensive documentation online for how the files are expected to be laid out to work with the source control configuration utilities [here](https://auth0.com/docs/extensions/github-deploy).
9
-
10
- Here is a simple overview:
11
-
12
- ```
13
- repository =>
14
- clients
15
- client1.json
16
- client2.json
17
- connections
18
- connection1.json
19
- database-connections
20
- connection1
21
- database.json
22
- create.js
23
- delete.js
24
- get_user.js
25
- login.js
26
- verify.js
27
- emails
28
- provider.json
29
- verify_email.json
30
- verify_email.html
31
- welcome_email.json
32
- welcome_email.html
33
- grants
34
- grant1.json
35
- pages
36
- login.html
37
- login.json
38
- password_reset.html
39
- password_reset.json
40
- resource-servers
41
- resource_server1.json
42
- resource_server2.json
43
- guardian
44
- factors
45
- sms.json
46
- email.json
47
- otp.json
48
- push-notification.json
49
- provider
50
- sms-twilio.json
51
- templates
52
- sms.json
53
- phoneFactorMessageTypes.json
54
- phoneFactorSelectedProvider.json
55
- policies.json
56
- actions
57
- action1
58
- code.js
59
- current_version.js
60
- action1.json
61
- triggers
62
- triggers.json
63
- ```
64
-
65
- ## Example Export
66
- You can export your current tenant configuration. For example the following command will export your tenant configuration.
67
-
68
- `a0deploy export -c config.json -f directory -o path/to/export`
69
-
70
- > NOTE: The config value `AUTH0_EXPORT_IDENTIFIERS: true` (or `--export_ids` option) can be used to export the identifier fields to the Auth0 objects. This means you won't be able to import these objects as the tool cannot find the existing objects by their id.
71
-
72
- > NOTE: Some of the settings cannot be exported for example emailProvider credentials, rulesConfigs values and others. After export you may need to update the `tenant.yaml` values if you experience schema errors on import.
73
-
74
-
75
- ## Example Import
76
- Included in this GitHub directory is an example structure.
77
-
78
- ### Instructions
79
-
80
- 1. Copy config.json.example and fill out details
81
- 2. Run deploy
82
- ```bash
83
- a0deploy import -c config.json -i .
84
- ```
85
-
86
- # Usage
87
-
88
- ## Config
89
- The config will need the client ID and secret from your newly created client (the client is named `auth0-deploy-cli-extension` if you used the extension).
90
-
91
- You can either set environment variables (ie in your terminal) or place the values in a config file anywhere on the filesystem.
92
-
93
- > NOTE: By default the tool will also merge in your current environment variables and override the config.json which have the same top key. You can disable this via the command line with the `--no-env` option.
94
-
95
- Here is the example of a config.json:
96
-
97
- ```json
98
- {
99
- "AUTH0_DOMAIN": "<your auth0 domain (e.g. fabrikam-dev.auth0.com) >",
100
- "AUTH0_CLIENT_SECRET": "<your deploy client secret>",
101
- "AUTH0_CLIENT_ID": "<your deploy client ID>",
102
- "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
103
- "YOUR_ARRAY_KEY": [
104
- "http://localhost:8080",
105
- "https://somedomain.com"
106
- ],
107
- "YOUR_STRING_KEY": "some environment specific string"
108
- },
109
- "AUTH0_ALLOW_DELETE": false,
110
- "INCLUDED_PROPS": {
111
- "clients": [ "client_secret" ]
112
- },
113
- "EXCLUDED_PROPS": {
114
- "connections": [ "options.client_secret" ]
115
- },
116
- "AUTH0_EXCLUDED_RULES": [ "auth0-account-link-extension" ],
117
- "AUTH0_EXCLUDED_CLIENTS": [ "auth0-account-link" ],
118
- "AUTH0_EXCLUDED_RESOURCE_SERVERS": [ "SSO Dashboard API" ],
119
- "AUTH0_EXCLUDED_DEFAULTS": ["emailProvider"]
120
- }
121
- ```
122
-
123
- ## Environment Variables and AUTH0_KEYWORD_REPLACE_MAPPINGS
124
- The `auth0-deploy-cli` supports environment variables replacements, also known as mappings. This means you can deploy the same Auth0 Tenant configuration across your environments (i.e. dev, uat, staging, and prod). The tool will automatically inject the right values for each environment (i.e callback urls).
125
-
126
- Environment variables can be set on the terminal and within the `config.json`. At run time the variables defined in your terminal and `config.json` will be merged. You can disable this via the command line with the `--no-env` option. The terminal variables will take priority over `config.json`
127
-
128
- There are two ways to use the keyword mappings in your Auth0 Tenant configuration files. You can inject values using `@@key@@` or `##key##`.
129
-
130
- Use the `@` symbols to inject the full, literal value regardless of type (string, number, object, array).
131
-
132
- Use the `#` symbols for string interpolation.
133
-
134
- For example, you could specify a different JWT timeout in your dev environment then prod for testing and a different environment URL:
135
-
136
- Client.json:
137
- ```json
138
- {
139
- ...
140
- "callbacks": [
141
- "##ENVIRONMENT_URL##/auth/callback"
142
- ],
143
- "jwt_configuration": {
144
- "lifetime_in_seconds": @@JWT_TIMEOUT@@,
145
- "secret_encoded": true
146
- }
147
- ...
148
- }
149
- ```
150
-
151
- Dev Config.json:
152
- ```json
153
- "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
154
- "ENVIRONMENT_URL": "http://dev.fabrikam.com",
155
- "JWT_TIMEOUT": 120,
156
- ...
157
- }
158
- ```
159
-
160
- Prod Config.json:
161
- ```json
162
- "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
163
- "ENVIRONMENT_URL": "http://fabrikam.com",
164
- "JWT_TIMEOUT": 3600,
165
- ...
166
- }
167
- ```
@@ -1,4 +0,0 @@
1
- /** @type {PostLoginAction} */
2
- module.exports = async (event, context) => {
3
- return {};
4
- };
@@ -1,24 +0,0 @@
1
- {
2
- "name": "action-example",
3
- "code": "directory/actions/action-example/code.js",
4
- "status": "built",
5
- "dependencies": [
6
- {
7
- "name": "lodash",
8
- "version": "4.17.21"
9
- }
10
- ],
11
- "secrets": [
12
- {
13
- "name": "MY_SECRET",
14
- "value": "_VALUE_NOT_SHOWN_"
15
- }
16
- ],
17
- "supported_triggers": [
18
- {
19
- "id": "post-login",
20
- "version": "v1"
21
- }
22
- ],
23
- "deployed": true
24
- }
@@ -1,40 +0,0 @@
1
- {
2
- "allowed_clients": [],
3
- "allowed_logout_urls": [
4
- "https://##ENV##.myapp.com/logout"
5
- ],
6
- "allowed_origins": [
7
- "https://##ENV##.myapp.com/"
8
- ],
9
- "app_type": "spa",
10
- "callback_url_template": false,
11
- "callbacks": [
12
- "https://##ENV##.myapp.com/callback"
13
- ],
14
- "cross_origin_auth": false,
15
- "custom_login_page_on": true,
16
- "description": "My SPA Application",
17
- "global": false,
18
- "grant_types": [
19
- "authorization_code",
20
- "implicit",
21
- "refresh_token"
22
- ],
23
- "is_first_party": true,
24
- "is_token_endpoint_ip_header_trusted": false,
25
- "jwt_configuration": {
26
- "alg": "RS256",
27
- "lifetime_in_seconds": 36000,
28
- "secret_encoded": false
29
- },
30
- "logo_uri": "https://myapp.com/logo.png",
31
- "name": "My SPA",
32
- "oidc_conformant": true,
33
- "sso": true,
34
- "sso_disabled": false,
35
- "tenant": "##AUTH0_TENANT_NAME##",
36
- "token_endpoint_auth_method": "none",
37
- "web_origins": [
38
- "https://##ENV##.myapp.com"
39
- ]
40
- }
@@ -1,20 +0,0 @@
1
- {
2
- "AUTH0_DOMAIN": "<YOUR_TENANT>.auth0.com",
3
- "AUTH0_CLIENT_ID": "<client_id>",
4
- "AUTH0_CLIENT_SECRET": "<client_secret>",
5
- "AUTH0_KEYWORD_REPLACE_MAPPINGS": {
6
- "AUTH0_TENANT_NAME": "<NAME>",
7
- "ENV": "DEV"
8
- },
9
- "AUTH0_ALLOW_DELETE": false,
10
- "INCLUDED_PROPS": {
11
- "clients": [ "client_secret" ]
12
- },
13
- "AUTH0_EXCLUDED_RULES": [
14
- "rule-1-name",
15
- "rule-2-name"
16
- ],
17
- "EXCLUDED_PROPS": {
18
- "connections": [ "options.client_secret" ]
19
- }
20
- }
@@ -1,60 +0,0 @@
1
- {
2
- "options": {
3
- "scope": "email,user_birthday,user_hometown,user_location,user_friends,user_likes",
4
- "client_id": "123456789",
5
- "public_profile": false,
6
- "email": true,
7
- "user_birthday": true,
8
- "user_website": false,
9
- "user_hometown": true,
10
- "user_location": true,
11
- "user_work_history": false,
12
- "user_education_history": false,
13
- "user_about_me": false,
14
- "ads_management": false,
15
- "ads_read": false,
16
- "manage_pages": false,
17
- "pages_show_list": false,
18
- "pages_manage_cta": false,
19
- "pages_messaging": false,
20
- "pages_messaging_phone_number": false,
21
- "pages_messaging_subscriptions": false,
22
- "publish_actions": false,
23
- "publish_pages": false,
24
- "read_audience_network_insights": false,
25
- "read_custom_friendlists": false,
26
- "read_insights": false,
27
- "read_page_mailboxes": false,
28
- "rsvp_event": false,
29
- "user_actions-books": false,
30
- "user_actions-fitness": false,
31
- "user_actions-music": false,
32
- "user_actions-news": false,
33
- "user_actions-video": false,
34
- "user_events": false,
35
- "user_friends": true,
36
- "user_games_activity": false,
37
- "user_likes": true,
38
- "user_managed_groups": false,
39
- "user_tagged_places": false,
40
- "user_photos": false,
41
- "user_posts": false,
42
- "user_relationships": false,
43
- "user_relationship_details": false,
44
- "user_religion_politics": false,
45
- "user_status": false,
46
- "user_videos": false,
47
- "manage_notifications": false,
48
- "read_stream": false,
49
- "read_mailbox": false,
50
- "user_groups": false,
51
- "client_secret": "SOME_SECRET",
52
- "publish_video": false
53
- },
54
- "strategy": "facebook",
55
- "name": "facebook",
56
- "is_domain_connection": false,
57
- "enabled_clients": [
58
- "My SPA"
59
- ]
60
- }
@@ -1,4 +0,0 @@
1
- function changeEmail(email, callback) {
2
- const msg = 'Please implement the change email script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,4 +0,0 @@
1
- function changePassword (email, newPassword, callback) {
2
- const msg = 'Please implement the change password script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,4 +0,0 @@
1
- function login(user, callback) {
2
- const msg = 'Please implement the create script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,20 +0,0 @@
1
- {
2
- "options": {
3
- "requires_username": false,
4
- "strategy_version": 2,
5
- "enabledDatabaseCustomization": true,
6
- "customScripts": {
7
- "login": "./login.js",
8
- "get_user": "./get_user.js"
9
- },
10
- "import_mode": true
11
- },
12
- "strategy": "auth0",
13
- "name": "users",
14
- "realms": [
15
- "users"
16
- ],
17
- "enabled_clients": [
18
- "My SPA"
19
- ]
20
- }
@@ -1,4 +0,0 @@
1
- function remove (id, callback) {
2
- const msg = 'Please implement the delete script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,4 +0,0 @@
1
- function getUser(email, callback) {
2
- const msg = 'Please implement the get user script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,4 +0,0 @@
1
- function login(email, password, callback) {
2
- const msg = 'Please implement the login script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,4 +0,0 @@
1
- function login(email, callback) {
2
- const msg = 'Please implement the verify script for this database connection';
3
- return callback(new Error(msg));
4
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,10 +0,0 @@
1
- {
2
- "template": "blocked_account",
3
- "from": "",
4
- "subject": "",
5
- "resultUrl": "",
6
- "syntax": "liquid",
7
- "body": "./blocked_account.html",
8
- "urlLifetimeInSeconds": 432000,
9
- "enabled": true
10
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,8 +0,0 @@
1
- {
2
- "template": "enrollment_email",
3
- "from": "",
4
- "subject": "",
5
- "syntax": "liquid",
6
- "body": "./enrollment_email.html",
7
- "enabled": true
8
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,8 +0,0 @@
1
- {
2
- "template": "mfa_oob_code",
3
- "from": "",
4
- "subject": "",
5
- "syntax": "liquid",
6
- "body": "./mfa_oob_code.html",
7
- "enabled": true
8
- }
@@ -1,10 +0,0 @@
1
- {
2
- "name": "smtp",
3
- "enabled": true,
4
- "credentials": {
5
- "smtp_host": "smtp.server.com",
6
- "smtp_port": 25,
7
- "smtp_user": "smtp_user",
8
- "smtp_pass": "smtp_secret_password"
9
- }
10
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,10 +0,0 @@
1
- {
2
- "template": "reset_email",
3
- "from": "",
4
- "subject": "",
5
- "resultUrl": "",
6
- "syntax": "liquid",
7
- "body": "./reset_email.html",
8
- "urlLifetimeInSeconds": 432000,
9
- "enabled": true
10
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,8 +0,0 @@
1
- {
2
- "template": "stolen_credentials",
3
- "from": "",
4
- "subject": "",
5
- "syntax": "liquid",
6
- "body": "./stolen_credentials.html",
7
- "enabled": true
8
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,10 +0,0 @@
1
- {
2
- "template": "verify_email",
3
- "from": "",
4
- "subject": "",
5
- "resultUrl": "",
6
- "body": "./verify_email.html",
7
- "urlLifetimeInSeconds": 432000,
8
- "syntax": "liquid",
9
- "enabled": true
10
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,8 +0,0 @@
1
- {
2
- "template": "verify_email_by_code",
3
- "from": "",
4
- "subject": "",
5
- "syntax": "liquid",
6
- "body": "./verify_email_by_code.html",
7
- "enabled": true
8
- }
@@ -1,5 +0,0 @@
1
- <html>
2
- <body>
3
- Example Email
4
- </body>
5
- </html>
@@ -1,8 +0,0 @@
1
- {
2
- "template": "welcome_email",
3
- "from": "",
4
- "subject": "",
5
- "body": "./welcome_email.html",
6
- "syntax": "liquid",
7
- "enabled": true
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "client_id": "My M2M",
3
- "audience": "https://##ENV##.myapp.com/api/v1",
4
- "scope": [
5
- "update:account"
6
- ]
7
- }
@@ -1,4 +0,0 @@
1
- {
2
- "name": "email",
3
- "enabled": true
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "name": "otp",
3
- "enabled": true
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "name": "push-notification",
3
- "enabled": true
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "name": "sms",
3
- "enabled": true
4
- }
@@ -1,6 +0,0 @@
1
- {
2
- "message-types": [
3
- "sms",
4
- "voice"
5
- ]
6
- }
@@ -1,3 +0,0 @@
1
- {
2
- "provider": "twilio"
3
- }
@@ -1,5 +0,0 @@
1
- {
2
- "policies": [
3
- "all-applications"
4
- ]
5
- }
@@ -1,7 +0,0 @@
1
- {
2
- "name": "sms",
3
- "provider": "twilio",
4
- "auth_token": "test",
5
- "sid": "test",
6
- "messaging_service_sid": "test"
7
- }
@@ -1,5 +0,0 @@
1
- {
2
- "name": "sms",
3
- "enrollment_message": "{{code}} is your verification code for {{tenant.friendly_name}}. Please enter this code to verify your enrollment.",
4
- "verification_message": "{{code}} is your verification code for {{tenant.friendly_name}}"
5
- }
@@ -1,22 +0,0 @@
1
- /**
2
- @param {object} client - information about the client
3
- @param {string} client.name - name of client
4
- @param {string} client.id - client id
5
- @param {string} client.tenant - Auth0 tenant name
6
- @param {object} client.metadata - client metadata
7
- @param {array|undefined} scope - array of strings representing the scope claim or undefined
8
- @param {string} audience - token's audience claim
9
- @param {object} context - additional authorization context
10
- @param {object} context.webtask - webtask context
11
- @param {function} cb - function (error, accessTokenClaims)
12
- */
13
- module.exports = function(client, scope, audience, context, cb) {
14
- var access_token = {};
15
- access_token.scope = scope;
16
-
17
- // Modify scopes or add extra claims
18
- // access_token['https://example.com/claim'] = 'bar';
19
- // access_token.scope.push('extra');
20
-
21
- cb(null, access_token);
22
- };
@@ -1,12 +0,0 @@
1
- {
2
- "triggerId": "credentials-exchange",
3
- "name": "cce hook",
4
- "script": "./client-credentials-exchange.js",
5
- "enabled": true,
6
- "secrets": {
7
- "api-key": "my custom api key"
8
- },
9
- "dependencies": {
10
- "bcrypt": "3.0.6"
11
- }
12
- }
@@ -1,6 +0,0 @@
1
- <html>
2
- <body>
3
- <h1>This is just an example, go update your login page :)</h1>
4
- <h2>Env is @@ENV@@</h2>
5
- </body>
6
- </html>
@@ -1,4 +0,0 @@
1
- {
2
- "name": "login",
3
- "enabled": true
4
- }