-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy pathtenant.yaml
More file actions
421 lines (383 loc) · 11.2 KB
/
Copy pathtenant.yaml
File metadata and controls
421 lines (383 loc) · 11.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# Auth0-Deploy-CLI Tenant YAML Configuration
tenant:
# Any tenant settings can go here https://auth0.com/docs/api/management/v2#!/Tenants/get_settings
friendly_name: 'Auth0 Deploy Example'
pages:
- name: "login"
html: "pages/login.html"
- name: "password_reset"
html: "pages/password_reset.html"
- name: "guardian_multifactor"
html: "pages/guardian_multifactor.html"
enabled: false
- name: "error_page"
html: "pages/error_page.html"
clients:
-
name: "My SPA"
app_type: "spa"
# Add other client settings https://auth0.com/docs/api/management/v2#!/Clients/post_clients
-
name: "My M2M"
app_type: "non_interactive"
# Add other client settings https://auth0.com/docs/api/management/v2#!/Clients/post_clients
-
name: "My Native app"
app_type: native
mobile:
android:
app_package_name: com.my.android.id
native_social_login:
google:
enabled: true
# Add other client settings https://auth0.com/docs/api/management/v2#!/Clients/post_clients
-
name: "My Resource Server Client"
app_type: "resource_server"
resource_server_identifier: "https://##ENV##.myapp.com/api/v1"
-
name: "My Okta OIN Client"
app_type: "regular_web"
-
name: "My Express App"
app_type: "regular_web"
express_configuration:
initiate_login_uri_template: "https://myapp.com/sso/start?org={organization_name}&conn={connection_name}"
user_attribute_profile_id: "My User Attribute Profile"
connection_profile_id: "Enterprise SSO Profile"
enable_client: true
enable_organization: true
okta_oin_client_id: "My Okta OIN Client"
admin_login_domain: "login.myapp.com"
databases:
- name: "users"
enabled_clients:
- "My SPA"
options:
enabledDatabaseCustomization: true
customScripts:
login: "databases/users/login.js"
create: "databases/users/create.js"
delete: "databases/users/delete.js"
get_user: "databases/users/get_user.js"
change_email: "databases/users/change_email.js"
change_password: "databases/users/change_password.js"
verify: "databases/users/verify.js"
attributes:
email:
unique: true # Default: true. Set to false to allow non-unique emails
identifier:
active: true
profile_required: true
verification_method: "link"
username:
identifier:
active: false # Set to true when email.unique is false
profile_required: false
connections:
- name: "myad-waad"
strategy: "waad"
enabled_clients:
- "My SPA"
options:
tenant_domain: 'office.com'
client_id: 'some_client_id'
client_secret: 'some_client_secret'
domain: 'office.com'
waad_protocol: 'openid-connect'
api_enable_users: true
basic_profile: true
ext_profile: true
ext_groups: true
# Add other connection settings (https://auth0.com/docs/api/management/v2#!/Connections/post_connections)
resourceServers:
-
name: "My API"
identifier: "https://##ENV##.myapp.com/api/v1"
scopes:
- value: "update:account"
description: "update account"
- value: "read:account"
description: "read account"
# client_id: "if linked to a resource server client (readonly)"
# Add other resource server settings (https://auth0.com/docs/api/management/v2#!/Resource_Servers/post_resource_servers)
phoneProviders:
- name: twilio
configuration:
sid: "twilio_sid"
default_from: "+1234567890"
delivery_methods:
- text
- voice
disabled: false
credentials:
auth_token: "some_auth_token"
emailProvider:
name: "smtp"
enabled: true
credentials:
smtp_host: "smtp.mailtrap.io"
smtp_port: 2525
smtp_user: "smtp_user"
smtp_pass: "smtp_secret_password"
emailTemplates:
- template: "verify_email"
enabled: true
syntax: "liquid"
from: "test@email.com"
subject: "something"
body: "emails/change_email.html"
- template: "welcome_email"
enabled: true
syntax: "liquid"
from: "test@email.com"
subject: "something"
body: "emails/change_email.html"
- template: "reset_email_by_code"
enabled: true
syntax: "liquid"
from: "test@email.com"
subject: "something"
body: "emails/change_email.html"
clientGrants:
- client_id: "My M2M"
audience: "https://##ENV##.myapp.com/api/v1"
scope:
- "update:account"
guardianFactors:
- name: sms
enabled: true
- name: push-notification
enabled: true
- name: otp
enabled: true
- name: email
enabled: false
- name: duo
enabled: false
guardianFactorProviders:
- name: sms
provider: twilio
auth_token: "some_token"
sid: "some_sid"
messaging_service_sid: "some_message_sid"
guardianFactorTemplates:
- name: sms
enrollment_message: >-
{{code}} is your verification code for {{tenant.friendly_name}}. Please
enter this code to verify your enrollment.
verification_message: '{{code}} is your verification code for {{tenant.friendly_name}}'
guardianPhoneFactorMessageTypes:
message_types:
- sms
- voice
guardianPhoneFactorSelectedProvider:
provider: twilio
guardianPolicies:
policies:
- all-applications
roles:
- name: Admin
description: App Admin
permissions:
- permission_name: 'update:account'
resource_server_identifier: 'https://##ENV##.myapp.com/api/v1'
- permission_name: 'read:account'
resource_server_identifier: 'https://##ENV##.myapp.com/api/v1'
- name: User
description: App User
permissions:
- permission_name: 'read:account'
resource_server_identifier: 'https://##ENV##.myapp.com/api/v1'
actions:
- name: action-example
code: ./actions/action-example/code.js
dependencies:
- name: lodash
version: 4.17.21
deployed: true
secrets:
- name: MY_SECRET
value: _VALUE_NOT_SHOWN_
status: built
supported_triggers:
- id: post-login
version: v1
triggers:
credentials-exchange: []
post-change-password: []
post-login:
- action_name: action-example
display_name: action-example-display-name
post-user-registration: []
pre-user-registration: []
send-phone-message: []
prompts:
customText:
en:
login-id:
login-id:
invalid-email-format: Email is not valid.
passkeys:
passkey-enrollment:
title: Create a passkey for ${clientName}
createButtonText: Create a passkey
continueButtonText: Continue without passkeys
passkeyBenefit1Title: No need to remember a password
passkeyBenefit2Title: Works on all of your devices
passkeyBenefit3Title: Keep your account safer
passkey-enrollment-local:
title: Create a passkey for ${clientName} on this device
createButtonText: Create a new passkey
continueButtonText: Continue without a new passkey
passkeyBenefit1Title: Sign in quickly with this device
passkeyBenefit2Title: No need to remember a password
enable_ulp_wcag_compliance: false
identifier_first: false
partials: {}
screenRenderers:
- signup-id:
signup-id: ./prompts/screenRenderSettings/signup-id_signup-id.json
- login-passwordless:
login-passwordless-email-code: ./prompts/screenRenderSettings/login-passwordless_login-passwordless-email-code.json
login-passwordless-sms-otp: ./prompts/screenRenderSettings/login-passwordless_login-passwordless-sms-otp.json
forms:
- name: New Kyc form
body: ./forms/New Kyc form.json
flows:
- name: Update KYC Name
body: ./flows/Update KYC Name.json
flowVaultConnections:
- name: 'New Auth0 M2M Con'
app_id: AUTH0
setup: '@@SETUP_CONFIG@@'
selfServiceProfiles:
- name: self-service profile 1
allowed_strategies:
- google-apps
- keycloak-samlp
- okta
branding:
colors:
primary: '#19aecc'
customText:
en:
get-started:
introduction: >-
Welcome! With <p>only a few steps</p> you'll be able to setup.
description: self-Service profile 1
user_attributes:
- name: email
description: Email of the User
is_optional: false
- name: name
description: Name of the User
is_optional: true
networkACLs:
- description: 'Allow Specific Countries'
active: true
priority: 2
rule:
action:
allow: true
scope: 'authentication'
match:
geo_country_codes: ['US', 'CA']
customDomains:
- domain: my_domain.com
type: auth0_managed_certs
tls_policy: 'recommended'
domain_metadata:
myKey: value
attackProtection:
botDetection:
bot_detection_level: medium
challenge_password_policy: when_risky
challenge_passwordless_policy: when_risky
challenge_password_reset_policy: when_risky
allowlist:
- 192.168.1.0/24
- 10.0.0.1
monitoring_mode_enabled: false
captcha:
active_provider_id: friendly_captcha
friendly_captcha:
site_key: ##CAPTCHA_FRIENDLY_CAPTCHA_SITE_KEY##
secret: ##CAPTCHA_FRIENDLY_CAPTCHA_SECRET##
recaptcha_v2:
site_key: ##CAPTCHA_RECAPTCHA_V2_SITE_KEY##
secret: ##CAPTCHA_RECAPTCHA_V2_SECRET##
recaptcha_enterprise:
site_key: ##CAPTCHA_RECAPTCHA_ENTERPRISE_SITE_KEY##
api_key: ##CAPTCHA_RECAPTCHA_ENTERPRISE_API_KEY##
project_id: ##CAPTCHA_RECAPTCHA_ENTERPRISE_PROJECT_ID##
hcaptcha:
site_key: ##CAPTCHA_HCAPTCHA_SITE_KEY##
secret: ##CAPTCHA_HCAPTCHA_SECRET##
arkose:
site_key: ##CAPTCHA_ARKOSE_SITE_KEY##
secret: ##CAPTCHA_ARKOSE_SECRET##
client_subdomain: my-client-subdomain
verify_subdomain: my-verify-subdomain
fail_open: false
breachedPasswordDetection:
enabled: true
shields:
- block
- admin_notification
admin_notification_frequency:
- immediately
method: standard
bruteForceProtection:
enabled: true
shields:
- block
- user_notification
mode: count_per_identifier_and_ip
allowlist: []
max_attempts: 10
suspiciousIpThrottling:
enabled: true
shields:
- block
- admin_notification
allowlist:
- 127.0.0.1
stage:
pre-login:
max_attempts: 100
rate: 864000
pre-user-registration:
max_attempts: 50
rate: 1200
connectionProfiles:
- name: "Enterprise SSO Profile"
organization:
show_as_button: "required"
assign_membership_on_login: "required"
connection_name_prefix_template: "org-{org_name}"
enabled_features:
- scim
- universal_logout
strategy_overrides:
samlp:
enabled_features:
- universal_logout
oidc:
enabled_features:
- scim
- universal_logout
- name: "Basic Connection Profile"
organization:
show_as_button: "optional"
assign_membership_on_login: "optional"
enabled_features:
- scim
userAttributeProfiles:
- name: "My User Attribute Profile"
description: "My User Attribute Profile Description"
user_attributes:
- name: "email"
description: "Email"
type: "email"
required: true