forked from maybe-finance/maybe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtenant.yaml
360 lines (332 loc) · 8.57 KB
/
tenant.yaml
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
rules:
- name: mfaAuth
script: ./rules/mfaAuth.js
stage: login_success
enabled: true
order: 1
- name: verifyUserOnPasswordReset
script: ./rules/verifyUserOnPasswordReset.js
stage: login_success
enabled: true
order: 2
- name: assignRolesOnLogin
script: ./rules/assignRolesOnLogin.js
stage: login_success
enabled: true
order: 3
- name: updateUserMetadata
script: ./rules/updateUserMetadata.js
stage: login_success
enabled: true
order: 4
- name: enhanceIdToken
script: ./rules/enhanceIdToken.js
stage: login_success
enabled: true
order: 5
rulesConfigs:
- key: "ADMIN_ROLE_ID"
value: '##ADMIN_ROLE_ID##'
- key: "BETA_TESTER_ROLE_ID"
value: '##BETA_TESTER_ROLE_ID##'
hooks: []
pages:
- name: guardian_multifactor
enabled: false
html: ./pages/guardian_multifactor.html
- name: login
enabled: true
html: ./pages/login.html
- name: password_reset
enabled: true
html: ./pages/password_reset.html
resourceServers:
- name: maybe-finance-api
identifier: https://maybe-finance-api/v1
allow_offline_access: true
signing_alg: RS256
skip_consent_for_verifiable_first_party_clients: true
token_lifetime: 86400 # 24 hours
token_lifetime_for_web: 7200
clients:
- name: Maybe
app_type: spa
allowed_clients: []
callbacks: @@CLIENT_BASE_URLS@@
allowed_logout_urls: @@CLIENT_LOGOUT_URLS@@
allowed_origins: @@CLIENT_BASE_URLS@@
web_origins: @@CLIENT_BASE_URLS@@
client_aliases: []
cross_origin_auth: false
custom_login_page_on: true
grant_types:
- authorization_code
- implicit
- refresh_token
- password
- http://auth0.com/oauth/grant-type/password-realm
is_first_party: true
is_token_endpoint_ip_header_trusted: false
jwt_configuration:
alg: RS256
lifetime_in_seconds: 36000
secret_encoded: false
native_social_login:
apple:
enabled: false
facebook:
enabled: false
oidc_conformant: true
refresh_token:
expiration_type: expiring
leeway: 0
token_lifetime: 2592000 # 30 days
idle_token_lifetime: 1296000 # 15 days
infinite_token_lifetime: false
infinite_idle_token_lifetime: false
rotation_type: rotating
sso_disabled: false
token_endpoint_auth_method: none
- name: Maybe Admin
allowed_clients: []
app_type: regular_web
callbacks: @@SERVER_CALLBACK_URLS@@
allowed_logout_urls: @@SERVER_BASE_URLS@@
allowed_origins: @@SERVER_BASE_URLS@@
web_origins: @@SERVER_BASE_URLS@@
client_aliases: []
cross_origin_auth: false
custom_login_page_on: true
grant_types:
- authorization_code
- implicit
- refresh_token
- client_credentials
- password
is_first_party: true
is_token_endpoint_ip_header_trusted: false
jwt_configuration:
alg: RS256
lifetime_in_seconds: 36000
secret_encoded: false
native_social_login:
apple:
enabled: false
facebook:
enabled: false
oidc_conformant: true
refresh_token:
expiration_type: non-expiring
leeway: 0
infinite_token_lifetime: true
infinite_idle_token_lifetime: true
token_lifetime: 31557600
idle_token_lifetime: 2592000
rotation_type: non-rotating
sso_disabled: false
token_endpoint_auth_method: client_secret_post
- name: auth0-deploy-cli-extension
app_type: non_interactive
cross_origin_auth: false
custom_login_page_on: true
grant_types:
- client_credentials
is_first_party: true
is_token_endpoint_ip_header_trusted: false
jwt_configuration:
alg: RS256
lifetime_in_seconds: 36000
secret_encoded: false
oidc_conformant: true
refresh_token:
expiration_type: non-expiring
leeway: 0
infinite_token_lifetime: true
infinite_idle_token_lifetime: true
token_lifetime: 31557600
idle_token_lifetime: 2592000
rotation_type: non-rotating
sso_disabled: false
token_endpoint_auth_method: client_secret_post
- name: server-m2m-cli
allowed_clients: []
allowed_origins: []
app_type: non_interactive
callbacks: []
client_aliases: []
cross_origin_auth: false
custom_login_page_on: true
grant_types:
- client_credentials
is_first_party: true
is_token_endpoint_ip_header_trusted: false
jwt_configuration:
alg: RS256
lifetime_in_seconds: 36000
secret_encoded: false
native_social_login:
apple:
enabled: false
facebook:
enabled: false
oidc_conformant: true
refresh_token:
expiration_type: non-expiring
leeway: 0
infinite_token_lifetime: true
infinite_idle_token_lifetime: true
token_lifetime: 31557600
idle_token_lifetime: 2592000
rotation_type: non-rotating
sso_disabled: false
token_endpoint_auth_method: client_secret_post
databases:
- name: Username-Password-Authentication
strategy: auth0
enabled_clients:
- auth0-deploy-cli-extension
- Maybe
- Maybe Admin
is_domain_connection: false
options:
mfa:
active: true
return_enroll_settings: true
passwordPolicy: good
strategy_version: 2
brute_force_protection: true
realms:
- Username-Password-Authentication
connections:
- name: google-oauth2
strategy: google-oauth2
enabled_clients:
- auth0-deploy-cli-extension
- Maybe
- Maybe Admin
- server-m2m-cli
is_domain_connection: false
options:
email: true
scope:
- email
- profile
profile: true
- name: apple
strategy: apple
enabled_clients:
- auth0-deploy-cli-extension
- Maybe
- Maybe Admin
- server-m2m-cli
is_domain_connection: false
options:
client_id: co.maybe.webapp
app_secret: @@APPLE_SIGN_IN_SECRET_KEY@@
team_id: 8TQ4KDWF2S
kid: 47WD7B27JK
email: true
name: true
scope:
- email
- name
tenant:
enabled_locales:
- en
# https://auth0.com/docs/authorization/flows/call-your-api-using-resource-owner-password-flow#configure-tenant
default_directory: Username-Password-Authentication
default_audience: https://maybe-finance-api/v1
flags:
new_universal_login_experience_enabled: true
universal_login: true
revoke_refresh_token_grant: false
disable_clickjack_protection_headers: false
friendly_name: Maybe Finance
picture_url: >-
https://assets.maybe.co/images/maybe.svg
universal_login:
colors:
page_background: '#242629'
primary: '#3bc9db'
support_email: [email protected]
emailProvider:
name: smtp
credentials:
smtp_host: smtp.postmarkapp.com
smtp_port: 587
smtp_user: REPLACE_THIS
smtp_pass: '##POSTMARK_SMTP_PASS##'
default_from_address: [email protected]
enabled: true
emailTemplates:
- template: reset_email
body: ./emailTemplates/reset_email.html
enabled: true
from: [email protected]
subject: Reset your password
syntax: liquid
urlLifetimeInSeconds: 86400
- template: verify_email
body: ./emailTemplates/verify_email.html
enabled: true
from: '[email protected]'
resultUrl: '{{ application.callback_domain }}'
subject: 'Verify your email for Maybe Finance'
syntax: liquid
urlLifetimeInSeconds: 432000
clientGrants:
- client_id: server-m2m-cli
audience: https://##AUTH0_DOMAIN##/api/v2/
scope:
- read:users
- update:users
- delete:users
- read:users_app_metadata
- update:users_app_metadata
- delete:users_app_metadata
- create:users_app_metadata
guardianFactors:
- name: duo
enabled: false
- name: email
enabled: true
- name: otp
enabled: true
- name: push-notification
enabled: false
- name: recovery-code
enabled: true
- name: sms
enabled: false
- name: webauthn-platform
enabled: false
- name: webauthn-roaming
enabled: false
guardianFactorProviders: []
guardianFactorTemplates: []
guardianPolicies:
policies: []
guardianPhoneFactorSelectedProvider:
provider: auth0
guardianPhoneFactorMessageTypes:
message_types: []
roles:
- name: Admin
description: Maybe Employee Admin
permissions: []
- name: CIUser
description: Identifies our CI users for e2e testing
permissions: []
branding:
colors:
page_background: '#242629'
primary: '#3bc9db'
logo_url: >-
https://assets.maybe.co/images/maybe.svg
prompts:
universal_login_experience: new
identifier_first: false
migrations: {}
actions: []
triggers: {}
organizations: []