Skip to content

Commit 8acb6fd

Browse files
authored
Merge pull request #54 from stevezau/guardian_support
Add support for guardian settings
2 parents 7e57f4f + b484706 commit 8acb6fd

30 files changed

+763
-142
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ lib/
66
/npm-debug.log
77
config.json
88
.env
9+
.idea

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ Supported Features
1313
- Clients / Applications
1414
- Resource Servers (API's)
1515
- Pages
16-
- Email Templates and Provider
16+
- Email Templates and Provider
17+
- Guardian Settings
1718
- Configuration options
1819
- Defined Directory Structure
1920
- YAML Configuration
@@ -36,12 +37,13 @@ The `auth0-deploy-cli` tool was refactored bringing the following updates.
3637
- Email Provider
3738
- Client Grants
3839
- Rule Configs
40+
- Guardian config
3941
- Better support for pages
4042
- Tenant level settings
4143
- Added support to be called programmatically
4244
- Improved logging
4345
- To simplify the tool the slack hook was removed. You can invoke the tool programmatically to support calling your own hooks
44-
- Support referencing clients by their name vs client_id ()automatic mapping during export/import)
46+
- Support referencing clients by their name vs client_id (automatic mapping during export/import)
4547
- Simplified to support future Auth0 object types
4648

4749

examples/directory/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@ repository =>
4747
rules-configs
4848
env_param1.json
4949
some_secret1.json
50+
guardian
51+
factors
52+
sms.json
53+
email.json
54+
otp.json
55+
push-notification.json
56+
provider
57+
sms-twilio.json
58+
templates
59+
sms.json
5060
```
5161

5262
## Example Export
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "email",
3+
"enabled": true
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "otp",
3+
"enabled": true
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "push-notification",
3+
"enabled": true
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "sms",
3+
"enabled": true
4+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "sms",
3+
"provider": "twilio",
4+
"auth_token": "test",
5+
"sid": "test",
6+
"messaging_service_sid": "test"
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
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+
}

examples/yaml/tenant.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
tenant:
44
# Any tenant settings can go here https://auth0.com/docs/api/management/v2#!/Tenants/get_settings
5-
friendly_name: 'Steve Demo'
5+
friendly_name: 'Auth0 Deploy Example'
66

77
pages:
88
- name: "login"
@@ -118,3 +118,30 @@ clientGrants:
118118
audience: "https://##ENV##.myapp.com/api/v1"
119119
scope:
120120
- "update:account"
121+
122+
123+
guardianFactors:
124+
- name: sms
125+
enabled: true
126+
- name: push-notification
127+
enabled: true
128+
- name: otp
129+
enabled: true
130+
- name: email
131+
enabled: false
132+
- name: duo
133+
enabled: false
134+
135+
guardianFactorProviders:
136+
- name: sms
137+
provider: twilio
138+
auth_token: "some_token"
139+
sid: "some_sid"
140+
messaging_service_sid: "some_message_sid"
141+
142+
guardianFactorTemplates:
143+
- name: sms
144+
enrollment_message: >-
145+
{{code}} is your verification code for {{tenant.friendly_name}}. Please
146+
enter this code to verify your enrollment.
147+
verification_message: '{{code}} is your verification code for {{tenant.friendly_name}}'

0 commit comments

Comments
 (0)