Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

Commit

Permalink
Added docs for new guardian resource
Browse files Browse the repository at this point in the history
  • Loading branch information
apamildner committed Apr 12, 2021
1 parent ec3d229 commit b5c0cb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth0/resource_auth0_guardian.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func newGuardian() *schema.Resource {
},
"options": {
Type: schema.TypeList,
Optional: false,
Optional: true,
MaxItems: 1,
MinItems: 1,
Elem: &schema.Resource{
Expand Down
4 changes: 1 addition & 3 deletions docs/resources/guardian.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ the options available for MFA.
resource "auth0_guardian" "default" {
policy = "all-applications"
phone {
enabled = false
provider = "auth0"
message_types = ["sms"]
options {
Expand All @@ -38,7 +37,6 @@ Arguments accepted by this resource include:

`phone` supports the following arguments:

* `enabled` - (Required) String. API User for your email service.
* `provider` - (Required) String, Case-sensitive. Provider to use, one of `auth0`, `twilio` or `phone-message-hook`.
* `message_types` - (Required) List(String). Message types to use, array of `phone` and or `voice`. Adding both to array should enable the user to choose.
* `secret_access_key` - (Optional) String, Case-sensitive. AWS Secret Key. Will always be encrypted in our database. Used only for AWS.
Expand All @@ -60,4 +58,4 @@ Arguments accepted by this resource include:
* `messaging_service_sid`(Optional) String.

### Phone message hook
No options. Custom code has to be written in a phone message hook. See [phone message hook docs](https://auth0.com/docs/hooks/extensibility-points/send-phone-message).
Options has to be empty. Custom code has to be written in a phone message hook. See [phone message hook docs](https://auth0.com/docs/hooks/extensibility-points/send-phone-message).
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/alexkappa/terraform-provider-auth0

go 1.15

require (
github.com/hashicorp/go-multierror v1.1.1
github.com/hashicorp/terraform-plugin-sdk v1.16.1
gopkg.in/auth0.v5 v5.14.0
)

replace gopkg.in/auth0.v5 v5.14.0 => github.com/apamildner/auth0 v1.3.1-0.20210409135858-7381173280f4

0 comments on commit b5c0cb7

Please sign in to comment.