From f09d9d0df13005ec483649363b7f93fea788bfd8 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea Date: Wed, 4 Jan 2023 08:31:35 +0100 Subject: [PATCH] Redesign how mfa types get enabled within the guardian resource --- docs/resources/guardian.md | 30 +- examples/resources/auth0_guardian/resource.tf | 10 +- internal/provider/resource_auth0_guardian.go | 153 +- .../provider/resource_auth0_guardian_test.go | 226 +-- internal/provider/structure_auth0_guardian.go | 421 +++-- test/data/recordings/TestAccGuardian.yaml | 1624 +++-------------- test/data/recordings/TestAccGuardianDUO.yaml | 440 +---- .../data/recordings/TestAccGuardianPhone.yaml | 1250 ++++--------- test/data/recordings/TestAccGuardianPush.yaml | 592 +++--- .../TestAccGuardianWebAuthnPlatform.yaml | 434 +---- .../TestAccGuardianWebAuthnRoaming.yaml | 470 +---- 11 files changed, 1569 insertions(+), 4081 deletions(-) diff --git a/docs/resources/guardian.md b/docs/resources/guardian.md index 533e4efcd..5b98898bf 100644 --- a/docs/resources/guardian.md +++ b/docs/resources/guardian.md @@ -17,13 +17,17 @@ resource "auth0_guardian" "my_guardian" { otp = true recovery_code = true - webauthn_platform {} # This will enable it. Removing this block will disable it. + webauthn_platform { + enabled = true + } webauthn_roaming { + enabled = true user_verification = "required" } phone { + enabled = true provider = "auth0" message_types = ["sms", "voice"] @@ -34,6 +38,9 @@ resource "auth0_guardian" "my_guardian" { } push { + enabled = true + provider = "sns" + amazon_sns { aws_access_key_id = "test1" aws_region = "us-west-1" @@ -50,6 +57,7 @@ resource "auth0_guardian" "my_guardian" { } duo { + enabled = true integration_key = "someKey" secret_key = "someSecret" hostname = "api-hostname" @@ -84,6 +92,10 @@ resource "auth0_guardian" "my_guardian" { Required: +- `enabled` (Boolean) Indicates whether Duo MFA is enabled. + +Optional: + - `hostname` (String) Duo API Hostname, see the Duo documentation for more details on Duo setup. - `integration_key` (String) Duo client ID, see the Duo documentation for more details on Duo setup. - `secret_key` (String, Sensitive) Duo client secret, see the Duo documentation for more details on Duo setup. @@ -94,12 +106,13 @@ Required: Required: -- `message_types` (List of String) Message types to use, array of `sms` and/or `voice`. Adding both to the array should enable the user to choose. -- `provider` (String) Provider to use, one of `auth0`, `twilio` or `phone-message-hook`. +- `enabled` (Boolean) Indicates whether Phone MFA is enabled. Optional: +- `message_types` (List of String) Message types to use, array of `sms` and/or `voice`. Adding both to the array should enable the user to choose. - `options` (Block List, Max: 1) Options for the various providers. (see [below for nested schema](#nestedblock--phone--options)) +- `provider` (String) Provider to use, one of `auth0`, `twilio` or `phone-message-hook`. ### Nested Schema for `phone.options` @@ -120,12 +133,13 @@ Optional: Required: -- `provider` (String) Provider to use, one of `guardian`, `sns`. +- `enabled` (Boolean) Indicates whether Push MFA is enabled. Optional: - `amazon_sns` (Block List, Max: 1) Configuration for Amazon SNS. (see [below for nested schema](#nestedblock--push--amazon_sns)) - `custom_app` (Block List, Max: 1) Configuration for the Guardian Custom App. (see [below for nested schema](#nestedblock--push--custom_app)) +- `provider` (String) Provider to use, one of `guardian`, `sns`. ### Nested Schema for `push.amazon_sns` @@ -153,6 +167,10 @@ Optional: ### Nested Schema for `webauthn_platform` +Required: + +- `enabled` (Boolean) Indicates whether WebAuthn with FIDO Device Biometrics MFA is enabled. + Optional: - `override_relying_party` (Boolean) The Relying Party is the domain for which the WebAuthn keys will be issued, set to `true` if you are customizing the identifier. @@ -162,6 +180,10 @@ Optional: ### Nested Schema for `webauthn_roaming` +Required: + +- `enabled` (Boolean) Indicates whether WebAuthn with FIDO Security Keys MFA is enabled. + Optional: - `override_relying_party` (Boolean) The Relying Party is the domain for which the WebAuthn keys will be issued, set to `true` if you are customizing the identifier. diff --git a/examples/resources/auth0_guardian/resource.tf b/examples/resources/auth0_guardian/resource.tf index 49af7547b..f59768f88 100644 --- a/examples/resources/auth0_guardian/resource.tf +++ b/examples/resources/auth0_guardian/resource.tf @@ -4,13 +4,17 @@ resource "auth0_guardian" "my_guardian" { otp = true recovery_code = true - webauthn_platform {} # This will enable it. Removing this block will disable it. + webauthn_platform { + enabled = true + } webauthn_roaming { + enabled = true user_verification = "required" } phone { + enabled = true provider = "auth0" message_types = ["sms", "voice"] @@ -21,6 +25,9 @@ resource "auth0_guardian" "my_guardian" { } push { + enabled = true + provider = "sns" + amazon_sns { aws_access_key_id = "test1" aws_region = "us-west-1" @@ -37,6 +44,7 @@ resource "auth0_guardian" "my_guardian" { } duo { + enabled = true integration_key = "someKey" secret_key = "someSecret" hostname = "api-hostname" diff --git a/internal/provider/resource_auth0_guardian.go b/internal/provider/resource_auth0_guardian.go index 3848cb0ff..64a9d0856 100644 --- a/internal/provider/resource_auth0_guardian.go +++ b/internal/provider/resource_auth0_guardian.go @@ -39,12 +39,18 @@ func newGuardian() *schema.Resource { "webauthn_roaming": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for the WebAuthn with FIDO Security Keys MFA. " + "If this block is present, WebAuthn with FIDO Security Keys MFA will be enabled, " + "and disabled otherwise.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "enabled": { + Type: schema.TypeBool, + Required: true, + Description: "Indicates whether WebAuthn with FIDO Security Keys MFA is enabled.", + }, "user_verification": { Type: schema.TypeString, Optional: true, @@ -79,12 +85,18 @@ func newGuardian() *schema.Resource { "webauthn_platform": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for the WebAuthn with FIDO Device Biometrics MFA. " + "If this block is present, WebAuthn with FIDO Device Biometrics MFA will be enabled, " + "and disabled otherwise.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "enabled": { + Type: schema.TypeBool, + Required: true, + Description: "Indicates whether WebAuthn with FIDO Device Biometrics MFA is enabled.", + }, "override_relying_party": { Type: schema.TypeBool, Optional: true, @@ -105,14 +117,20 @@ func newGuardian() *schema.Resource { "phone": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for the phone MFA. If this block is present, " + "Phone MFA will be enabled, and disabled otherwise.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "enabled": { + Type: schema.TypeBool, + Required: true, + Description: "Indicates whether Phone MFA is enabled.", + }, "provider": { Type: schema.TypeString, - Required: true, + Optional: true, ValidateFunc: validation.StringInSlice( []string{ "auth0", @@ -121,14 +139,16 @@ func newGuardian() *schema.Resource { }, false, ), - Description: "Provider to use, one of `auth0`, `twilio` or `phone-message-hook`.", + RequiredWith: []string{"phone.0.message_types"}, + Description: "Provider to use, one of `auth0`, `twilio` or `phone-message-hook`.", }, "message_types": { Type: schema.TypeList, - Required: true, + Optional: true, Elem: &schema.Schema{ Type: schema.TypeString, }, + RequiredWith: []string{"phone.0.provider"}, Description: "Message types to use, array of `sms` and/or `voice`. " + "Adding both to the array should enable the user to choose.", }, @@ -202,26 +222,35 @@ func newGuardian() *schema.Resource { "duo": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for the Duo MFA. If this block is present, " + "Duo MFA will be enabled, and disabled otherwise.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ - "integration_key": { - Type: schema.TypeString, + "enabled": { + Type: schema.TypeBool, Required: true, - Description: "Duo client ID, see the Duo documentation for more details on Duo setup.", + Description: "Indicates whether Duo MFA is enabled.", + }, + "integration_key": { + Type: schema.TypeString, + Optional: true, + RequiredWith: []string{"duo.0.secret_key", "duo.0.hostname"}, + Description: "Duo client ID, see the Duo documentation for more details on Duo setup.", }, "secret_key": { - Type: schema.TypeString, - Required: true, - Sensitive: true, - Description: "Duo client secret, see the Duo documentation for more details on Duo setup.", + Type: schema.TypeString, + Optional: true, + Sensitive: true, + RequiredWith: []string{"duo.0.integration_key", "duo.0.hostname"}, + Description: "Duo client secret, see the Duo documentation for more details on Duo setup.", }, "hostname": { - Type: schema.TypeString, - Required: true, - Description: "Duo API Hostname, see the Duo documentation for more details on Duo setup.", + Type: schema.TypeString, + Optional: true, + RequiredWith: []string{"duo.0.integration_key", "duo.0.secret_key"}, + Description: "Duo API Hostname, see the Duo documentation for more details on Duo setup.", }, }, }, @@ -229,22 +258,30 @@ func newGuardian() *schema.Resource { "push": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for the Push MFA. If this block is present, " + "Push MFA will be enabled, and disabled otherwise.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ + "enabled": { + Type: schema.TypeBool, + Required: true, + Description: "Indicates whether Push MFA is enabled.", + }, "provider": { Type: schema.TypeString, - Required: true, + Optional: true, ValidateFunc: validation.StringInSlice([]string{"guardian", "sns"}, false), Description: "Provider to use, one of `guardian`, `sns`.", }, "amazon_sns": { - Type: schema.TypeList, - Optional: true, - MaxItems: 1, - Description: "Configuration for Amazon SNS.", + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + RequiredWith: []string{"push.0.provider"}, + Description: "Configuration for Amazon SNS.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "aws_access_key_id": { @@ -277,10 +314,12 @@ func newGuardian() *schema.Resource { }, }, "custom_app": { - Type: schema.TypeList, - Optional: true, - MaxItems: 1, - Description: "Configuration for the Guardian Custom App.", + Type: schema.TypeList, + Optional: true, + Computed: true, + MaxItems: 1, + RequiredWith: []string{"push.0.provider"}, + Description: "Configuration for the Guardian Custom App.", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "app_name": { @@ -339,60 +378,40 @@ func readGuardian(ctx context.Context, d *schema.ResourceData, m interface{}) di case "recovery-code": result = multierror.Append(result, d.Set("recovery_code", factor.GetEnabled())) case "sms": - result = multierror.Append(result, d.Set("phone", nil)) - - if factor.GetEnabled() { - phone, err := flattenPhone(api) - if err != nil { - return diag.FromErr(err) - } - - result = multierror.Append(result, d.Set("phone", phone)) + phone, err := flattenPhone(factor.GetEnabled(), api) + if err != nil { + return diag.FromErr(err) } - case "webauthn-roaming": - result = multierror.Append(result, d.Set("webauthn_roaming", nil)) - - if factor.GetEnabled() { - webAuthnRoaming, err := flattenWebAuthnRoaming(api) - if err != nil { - return diag.FromErr(err) - } - result = multierror.Append(result, d.Set("webauthn_roaming", webAuthnRoaming)) + result = multierror.Append(result, d.Set("phone", phone)) + case "webauthn-roaming": + webAuthnRoaming, err := flattenWebAuthnRoaming(factor.GetEnabled(), api) + if err != nil { + return diag.FromErr(err) } - case "webauthn-platform": - result = multierror.Append(result, d.Set("webauthn_platform", nil)) - - if factor.GetEnabled() { - webAuthnPlatform, err := flattenWebAuthnPlatform(api) - if err != nil { - return diag.FromErr(err) - } - result = multierror.Append(result, d.Set("webauthn_platform", webAuthnPlatform)) + result = multierror.Append(result, d.Set("webauthn_roaming", webAuthnRoaming)) + case "webauthn-platform": + webAuthnPlatform, err := flattenWebAuthnPlatform(factor.GetEnabled(), api) + if err != nil { + return diag.FromErr(err) } - case "duo": - result = multierror.Append(result, d.Set("duo", nil)) - - if factor.GetEnabled() { - duo, err := flattenDUO(api) - if err != nil { - return diag.FromErr(err) - } - result = multierror.Append(result, d.Set("duo", duo)) + result = multierror.Append(result, d.Set("webauthn_platform", webAuthnPlatform)) + case "duo": + duo, err := flattenDUO(factor.GetEnabled(), api) + if err != nil { + return diag.FromErr(err) } - case "push": - result = multierror.Append(result, d.Set("push", nil)) - if factor.GetEnabled() { - push, err := flattenPush(api) - if err != nil { - return diag.FromErr(err) - } - - result = multierror.Append(result, d.Set("push", push)) + result = multierror.Append(result, d.Set("duo", duo)) + case "push-notification": + push, err := flattenPush(d, factor.GetEnabled(), api) + if err != nil { + return diag.FromErr(err) } + + result = multierror.Append(result, d.Set("push", push)) } } diff --git a/internal/provider/resource_auth0_guardian_test.go b/internal/provider/resource_auth0_guardian_test.go index 0b997e17f..6ea4e0aba 100644 --- a/internal/provider/resource_auth0_guardian_test.go +++ b/internal/provider/resource_auth0_guardian_test.go @@ -61,13 +61,6 @@ func TestAccGuardian(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "true"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), ), }, { @@ -75,54 +68,26 @@ func TestAccGuardian(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), ), }, { Config: testAccGuardianOTPCreate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "true"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), ), }, { Config: testAccGuardianOTPDelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), ), }, { Config: testAccGuardianRecoveryCodeCreate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "true"), ), }, @@ -130,13 +95,6 @@ func TestAccGuardian(t *testing.T) { Config: testAccGuardianRecoveryCodeDelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), ), }, @@ -148,6 +106,7 @@ const testAccGuardianPhoneWithCustomProviderAndNoOptions = ` resource "auth0_guardian" "foo" { policy = "all-applications" phone { + enabled = true provider = "phone-message-hook" message_types = ["sms"] } @@ -158,6 +117,7 @@ const testAccGuardianPhoneWithCustomProviderAndEmptyOptions = ` resource "auth0_guardian" "foo" { policy = "all-applications" phone { + enabled = true provider = "phone-message-hook" message_types = ["sms"] options {} @@ -169,6 +129,7 @@ const testAccGuardianPhoneWithAuth0Provider = ` resource "auth0_guardian" "foo" { policy = "all-applications" phone { + enabled = true provider = "auth0" message_types = ["voice"] options { @@ -183,6 +144,7 @@ const testAccGuardianPhoneWithTwilioProvider = ` resource "auth0_guardian" "foo" { policy = "all-applications" phone { + enabled = true provider = "twilio" message_types = ["sms"] options { @@ -200,6 +162,9 @@ resource "auth0_guardian" "foo" { const testAccGuardianPhoneDelete = ` resource "auth0_guardian" "foo" { policy = "all-applications" + phone { + enabled = false + } } ` @@ -213,13 +178,8 @@ func TestAccGuardianPhone(t *testing.T) { Config: testAccGuardianPhoneWithCustomProviderAndNoOptions, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.message_types.0", "sms"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.provider", "phone-message-hook"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.options.#", "1"), @@ -229,13 +189,8 @@ func TestAccGuardianPhone(t *testing.T) { Config: testAccGuardianPhoneWithCustomProviderAndEmptyOptions, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.message_types.0", "sms"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.provider", "phone-message-hook"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.options.#", "1"), @@ -245,14 +200,8 @@ func TestAccGuardianPhone(t *testing.T) { Config: testAccGuardianPhoneWithAuth0Provider, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.message_types.0", "voice"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.provider", "auth0"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.options.#", "1"), @@ -264,14 +213,8 @@ func TestAccGuardianPhone(t *testing.T) { Config: testAccGuardianPhoneWithTwilioProvider, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.message_types.0", "sms"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.provider", "twilio"), resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.options.#", "1"), @@ -287,14 +230,11 @@ func TestAccGuardianPhone(t *testing.T) { Config: testAccGuardianPhoneDelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.enabled", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.message_types.#", "0"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.provider", ""), + resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.0.options.#", "0"), ), }, }, @@ -304,7 +244,9 @@ func TestAccGuardianPhone(t *testing.T) { const testAccConfigureWebAuthnRoamingCreate = ` resource "auth0_guardian" "foo" { policy = "all-applications" - webauthn_roaming {} + webauthn_roaming { + enabled = true + } } ` @@ -312,6 +254,7 @@ const testAccConfigureWebAuthnRoamingUpdate = ` resource "auth0_guardian" "foo" { policy = "all-applications" webauthn_roaming { + enabled = true user_verification = "required" } } @@ -320,6 +263,9 @@ resource "auth0_guardian" "foo" { const testAccConfigureWebAuthnRoamingDelete = ` resource "auth0_guardian" "foo" { policy = "all-applications" + webauthn_roaming { + enabled = false + } } ` @@ -333,28 +279,16 @@ func TestAccGuardianWebAuthnRoaming(t *testing.T) { Config: testAccConfigureWebAuthnRoamingCreate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.0.enabled", "true"), ), }, { Config: testAccConfigureWebAuthnRoamingUpdate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.0.user_verification", "required"), ), }, @@ -362,14 +296,8 @@ func TestAccGuardianWebAuthnRoaming(t *testing.T) { Config: testAccConfigureWebAuthnRoamingDelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.0.enabled", "false"), ), }, }, @@ -379,13 +307,18 @@ func TestAccGuardianWebAuthnRoaming(t *testing.T) { const testAccConfigureWebAuthnPlatformCreate = ` resource "auth0_guardian" "foo" { policy = "all-applications" - webauthn_platform {} + webauthn_platform { + enabled = true + } } ` const testAccConfigureWebAuthnPlatformDelete = ` resource "auth0_guardian" "foo" { policy = "all-applications" + webauthn_platform { + enabled = false + } } ` @@ -399,28 +332,16 @@ func TestAccGuardianWebAuthnPlatform(t *testing.T) { Config: testAccConfigureWebAuthnPlatformCreate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.0.enabled", "true"), ), }, { Config: testAccConfigureWebAuthnPlatformDelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.0.enabled", "false"), ), }, }, @@ -431,6 +352,7 @@ const testAccConfigureDUOCreate = ` resource "auth0_guardian" "foo" { policy = "all-applications" duo { + enabled = true integration_key = "someKey" secret_key = "someSecret" hostname = "api-hostname" @@ -441,6 +363,9 @@ resource "auth0_guardian" "foo" { const testAccConfigureDUODelete = ` resource "auth0_guardian" "foo" { policy = "all-applications" + duo { + enabled = false + } } ` @@ -454,14 +379,8 @@ func TestAccGuardianDUO(t *testing.T) { Config: testAccConfigureDUOCreate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.hostname", "api-hostname"), resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.secret_key", "someSecret"), resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.integration_key", "someKey"), @@ -471,14 +390,11 @@ func TestAccGuardianDUO(t *testing.T) { Config: testAccConfigureDUODelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.enabled", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.hostname", ""), + resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.secret_key", ""), + resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.0.integration_key", ""), ), }, }, @@ -489,6 +405,7 @@ const testAccConfigurePushCreate = ` resource "auth0_guardian" "foo" { policy = "all-applications" push { + enabled = true provider = "guardian" } } @@ -498,6 +415,7 @@ const testAccConfigurePushUpdateAmazonSNS = ` resource "auth0_guardian" "foo" { policy = "all-applications" push { + enabled = true provider = "sns" amazon_sns { @@ -515,6 +433,7 @@ const testAccConfigurePushUpdateCustomApp = ` resource "auth0_guardian" "foo" { policy = "all-applications" push { + enabled = true provider = "sns" amazon_sns { @@ -537,6 +456,9 @@ resource "auth0_guardian" "foo" { const testAccConfigurePushDelete = ` resource "auth0_guardian" "foo" { policy = "all-applications" + push { + enabled = false + } } ` @@ -550,14 +472,8 @@ func TestAccGuardianPush(t *testing.T) { Config: testAccConfigurePushCreate, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.provider", "guardian"), ), }, @@ -565,14 +481,8 @@ func TestAccGuardianPush(t *testing.T) { Config: testAccConfigurePushUpdateAmazonSNS, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.provider", "sns"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.#", "1"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.0.aws_access_key_id", "test1"), @@ -586,15 +496,15 @@ func TestAccGuardianPush(t *testing.T) { Config: testAccConfigurePushUpdateCustomApp, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.enabled", "true"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.provider", "sns"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.0.aws_access_key_id", "test1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.0.aws_region", "us-west-1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.0.aws_secret_access_key", "secretKey"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.0.sns_apns_platform_application_arn", "test_arn"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.amazon_sns.0.sns_gcm_platform_application_arn", "test_arn"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.custom_app.#", "1"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.custom_app.0.app_name", "CustomApp"), resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.custom_app.0.apple_app_link", "https://itunes.apple.com/us/app/my-app/id123121"), @@ -605,14 +515,8 @@ func TestAccGuardianPush(t *testing.T) { Config: testAccConfigurePushDelete, Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_guardian.foo", "policy", "all-applications"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "email", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "otp", "false"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "phone.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "duo.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_roaming.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "webauthn_platform.#", "0"), - resource.TestCheckResourceAttr("auth0_guardian.foo", "recovery_code", "false"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.#", "1"), + resource.TestCheckResourceAttr("auth0_guardian.foo", "push.0.enabled", "false"), ), }, }, diff --git a/internal/provider/structure_auth0_guardian.go b/internal/provider/structure_auth0_guardian.go index 21bf9797f..00db7c599 100644 --- a/internal/provider/structure_auth0_guardian.go +++ b/internal/provider/structure_auth0_guardian.go @@ -22,13 +22,18 @@ func flattenMultiFactorPolicy(api *management.Management) (string, error) { return flattenedPolicy, nil } -func flattenPhone(api *management.Management) ([]interface{}, error) { +func flattenPhone(enabled bool, api *management.Management) ([]interface{}, error) { + phoneData := make(map[string]interface{}) + phoneData["enabled"] = enabled + + if !enabled { + return []interface{}{phoneData}, nil + } + phoneMessageTypes, err := api.Guardian.MultiFactor.Phone.MessageTypes() if err != nil { return nil, err } - - phoneData := make(map[string]interface{}) phoneData["message_types"] = phoneMessageTypes.GetMessageTypes() phoneProvider, err := api.Guardian.MultiFactor.Phone.Provider() @@ -52,7 +57,6 @@ func flattenPhone(api *management.Management) ([]interface{}, error) { case "phone-message-hook": phoneProviderOptions = []interface{}{nil} } - phoneData["options"] = phoneProviderOptions return []interface{}{phoneData}, nil @@ -96,66 +100,78 @@ func flattenTwilioOptions(api *management.Management) ([]interface{}, error) { return []interface{}{m}, nil } -func flattenWebAuthnRoaming(api *management.Management) ([]interface{}, error) { +func flattenWebAuthnRoaming(enabled bool, api *management.Management) ([]interface{}, error) { + webAuthnRoamingData := make(map[string]interface{}) + webAuthnRoamingData["enabled"] = enabled + + if !enabled { + return []interface{}{webAuthnRoamingData}, nil + } + webAuthnSettings, err := api.Guardian.MultiFactor.WebAuthnRoaming.Read() if err != nil { return nil, err } - m := map[string]interface{}{ - "user_verification": webAuthnSettings.GetUserVerification(), - "override_relying_party": webAuthnSettings.GetOverrideRelyingParty(), - "relying_party_identifier": webAuthnSettings.GetRelyingPartyIdentifier(), - } + webAuthnRoamingData["user_verification"] = webAuthnSettings.GetUserVerification() + webAuthnRoamingData["override_relying_party"] = webAuthnSettings.GetOverrideRelyingParty() + webAuthnRoamingData["relying_party_identifier"] = webAuthnSettings.GetRelyingPartyIdentifier() - return []interface{}{m}, nil + return []interface{}{webAuthnRoamingData}, nil } -func flattenWebAuthnPlatform(api *management.Management) ([]interface{}, error) { +func flattenWebAuthnPlatform(enabled bool, api *management.Management) ([]interface{}, error) { + webAuthnPlatformData := make(map[string]interface{}) + webAuthnPlatformData["enabled"] = enabled + + if !enabled { + return []interface{}{webAuthnPlatformData}, nil + } + webAuthnSettings, err := api.Guardian.MultiFactor.WebAuthnPlatform.Read() if err != nil { return nil, err } - m := map[string]interface{}{ - "override_relying_party": webAuthnSettings.GetOverrideRelyingParty(), - "relying_party_identifier": webAuthnSettings.GetRelyingPartyIdentifier(), - } + webAuthnPlatformData["override_relying_party"] = webAuthnSettings.GetOverrideRelyingParty() + webAuthnPlatformData["relying_party_identifier"] = webAuthnSettings.GetRelyingPartyIdentifier() - return []interface{}{m}, nil + return []interface{}{webAuthnPlatformData}, nil } -func flattenDUO(api *management.Management) ([]interface{}, error) { +func flattenDUO(enabled bool, api *management.Management) ([]interface{}, error) { + duoData := make(map[string]interface{}) + duoData["enabled"] = enabled + + if !enabled { + return []interface{}{duoData}, nil + } + duoSettings, err := api.Guardian.MultiFactor.DUO.Read() if err != nil { return nil, err } - m := map[string]interface{}{ - "integration_key": duoSettings.GetIntegrationKey(), - "secret_key": duoSettings.GetSecretKey(), - "hostname": duoSettings.GetHostname(), - } + duoData["integration_key"] = duoSettings.GetIntegrationKey() + duoData["secret_key"] = duoSettings.GetSecretKey() + duoData["hostname"] = duoSettings.GetHostname() - return []interface{}{m}, nil + return []interface{}{duoData}, nil } -func flattenPush(api *management.Management) ([]interface{}, error) { - amazonSNS, err := api.Guardian.MultiFactor.Push.AmazonSNS() - if err != nil { - return nil, err +func flattenPush(d *schema.ResourceData, enabled bool, api *management.Management) ([]interface{}, error) { + pushData := make(map[string]interface{}) + pushData["enabled"] = enabled + + if !enabled { + return []interface{}{pushData}, nil } - pushData := make(map[string]interface{}) - pushData["amazon_sns"] = []interface{}{ - map[string]interface{}{ - "aws_access_key_id": amazonSNS.GetAccessKeyID(), - "aws_region": amazonSNS.GetRegion(), - "aws_secret_access_key": amazonSNS.GetSecretAccessKeyID(), - "sns_apns_platform_application_arn": amazonSNS.GetAPNSPlatformApplicationARN(), - "sns_gcm_platform_application_arn": amazonSNS.GetGCMPlatformApplicationARN(), - }, + pushProvider, err := api.Guardian.MultiFactor.Push.Provider() + if err != nil { + return nil, err } + pushData["provider"] = pushProvider.GetProvider() customApp, err := api.Guardian.MultiFactor.Push.CustomApp() if err != nil { @@ -170,78 +186,86 @@ func flattenPush(api *management.Management) ([]interface{}, error) { }, } + if pushProvider.GetProvider() == "sns" { + amazonSNS, err := api.Guardian.MultiFactor.Push.AmazonSNS() + if err != nil { + return nil, err + } + + pushData["amazon_sns"] = []interface{}{ + map[string]interface{}{ + "aws_access_key_id": amazonSNS.GetAccessKeyID(), + "aws_region": amazonSNS.GetRegion(), + "aws_secret_access_key": d.Get("push.0.amazon_sns.0.aws_secret_access_key"), // Does not get read back. + "sns_apns_platform_application_arn": amazonSNS.GetAPNSPlatformApplicationARN(), + "sns_gcm_platform_application_arn": amazonSNS.GetGCMPlatformApplicationARN(), + }, + } + } + return []interface{}{pushData}, nil } func updatePolicy(d *schema.ResourceData, api *management.Management) error { - if d.HasChange("policy") { - multiFactorPolicies := management.MultiFactorPolicies{} + if !d.HasChange("policy") { + return nil + } - policy := d.Get("policy").(string) - if policy != "never" { - multiFactorPolicies = append(multiFactorPolicies, policy) - } + multiFactorPolicies := management.MultiFactorPolicies{} - // If the policy is "never" then the slice needs to be empty. - return api.Guardian.MultiFactor.UpdatePolicy(&multiFactorPolicies) + policy := d.Get("policy").(string) + if policy != "never" { + multiFactorPolicies = append(multiFactorPolicies, policy) } - return nil + + // If the policy is "never" then the slice needs to be empty. + return api.Guardian.MultiFactor.UpdatePolicy(&multiFactorPolicies) } func updateEmailFactor(d *schema.ResourceData, api *management.Management) error { - if d.HasChange("email") { - enabled := d.Get("email").(bool) - return api.Guardian.MultiFactor.Email.Enable(enabled) + if !d.HasChange("email") { + return nil } - return nil + + enabled := d.Get("email").(bool) + return api.Guardian.MultiFactor.Email.Enable(enabled) } func updateOTPFactor(d *schema.ResourceData, api *management.Management) error { - if d.HasChange("otp") { - enabled := d.Get("otp").(bool) - return api.Guardian.MultiFactor.OTP.Enable(enabled) + if !d.HasChange("otp") { + return nil } - return nil + + enabled := d.Get("otp").(bool) + return api.Guardian.MultiFactor.OTP.Enable(enabled) } func updateRecoveryCodeFactor(d *schema.ResourceData, api *management.Management) error { - if d.HasChange("recovery_code") { - enabled := d.Get("recovery_code").(bool) - return api.Guardian.MultiFactor.RecoveryCode.Enable(enabled) + if !d.HasChange("recovery_code") { + return nil } - return nil + + enabled := d.Get("recovery_code").(bool) + return api.Guardian.MultiFactor.RecoveryCode.Enable(enabled) } func updatePhoneFactor(d *schema.ResourceData, api *management.Management) error { - if factorShouldBeUpdated(d, "phone") { - // Always enable phone factor before configuring it. - // Otherwise, we encounter an error with message_types. - if err := api.Guardian.MultiFactor.Phone.Enable(true); err != nil { - return err - } - - return configurePhone(d.GetRawConfig(), api) + if !d.HasChange("phone") { + return nil } - return api.Guardian.MultiFactor.Phone.Enable(false) -} - -// Determines if the factor should be updated. -// This depends on if it is in the state, -// if it is about to be added to the state. -func factorShouldBeUpdated(d *schema.ResourceData, factor string) bool { - _, ok := d.GetOk(factor) - return ok || hasBlockPresentInNewState(d, factor) -} + enabled := d.Get("phone.0.enabled").(bool) -func hasBlockPresentInNewState(d *schema.ResourceData, factor string) bool { - if d.HasChange(factor) { - _, n := d.GetChange(factor) - newState := n.([]interface{}) - return len(newState) > 0 + // Always enable phone factor before configuring it. + // Otherwise, we encounter an error with message_types. + if err := api.Guardian.MultiFactor.Phone.Enable(enabled); err != nil { + return err + } + if !enabled { + return nil } - return false + return configurePhone(d.GetRawConfig(), api) } func configurePhone(config cty.Value, api *management.Management) error { @@ -328,141 +352,172 @@ func updateTwilioOptions(options cty.Value, api *management.Management) error { } func updateWebAuthnRoaming(d *schema.ResourceData, api *management.Management) error { - if factorShouldBeUpdated(d, "webauthn_roaming") { - if err := api.Guardian.MultiFactor.WebAuthnRoaming.Enable(true); err != nil { - return err - } + if !d.HasChange("webauthn_roaming") { + return nil + } - var webAuthnSettings management.MultiFactorWebAuthnSettings + enabled := d.Get("webauthn_roaming.0.enabled").(bool) + if err := api.Guardian.MultiFactor.WebAuthnRoaming.Enable(enabled); err != nil { + return err + } + if !enabled { + return nil + } - d.GetRawConfig().GetAttr("webauthn_roaming").ForEachElement( - func(_ cty.Value, config cty.Value) (stop bool) { - webAuthnSettings.OverrideRelyingParty = value.Bool(config.GetAttr("override_relying_party")) - webAuthnSettings.RelyingPartyIdentifier = value.String(config.GetAttr("relying_party_identifier")) - webAuthnSettings.UserVerification = value.String(config.GetAttr("user_verification")) - return stop - }, - ) + var err error + d.GetRawConfig().GetAttr("webauthn_roaming").ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + webAuthnSettings := &management.MultiFactorWebAuthnSettings{ + UserVerification: value.String(config.GetAttr("user_verification")), + OverrideRelyingParty: value.Bool(config.GetAttr("override_relying_party")), + RelyingPartyIdentifier: value.String(config.GetAttr("relying_party_identifier")), + } - if webAuthnSettings == (management.MultiFactorWebAuthnSettings{}) { - return nil + if webAuthnSettings.String() != "{}" { + err = api.Guardian.MultiFactor.WebAuthnRoaming.Update(webAuthnSettings) } - return api.Guardian.MultiFactor.WebAuthnRoaming.Update(&webAuthnSettings) - } + return stop + }) - return api.Guardian.MultiFactor.WebAuthnRoaming.Enable(false) + return err } func updateWebAuthnPlatform(d *schema.ResourceData, api *management.Management) error { - if factorShouldBeUpdated(d, "webauthn_platform") { - if err := api.Guardian.MultiFactor.WebAuthnPlatform.Enable(true); err != nil { - return err - } + if !d.HasChange("webauthn_platform") { + return nil + } - var webAuthnSettings management.MultiFactorWebAuthnSettings + enabled := d.Get("webauthn_platform.0.enabled").(bool) + if err := api.Guardian.MultiFactor.WebAuthnPlatform.Enable(enabled); err != nil { + return err + } + if !enabled { + return nil + } - d.GetRawConfig().GetAttr("webauthn_platform").ForEachElement( - func(_ cty.Value, config cty.Value) (stop bool) { - webAuthnSettings.OverrideRelyingParty = value.Bool(config.GetAttr("override_relying_party")) - webAuthnSettings.RelyingPartyIdentifier = value.String(config.GetAttr("relying_party_identifier")) - return stop - }, - ) + var err error + d.GetRawConfig().GetAttr("webauthn_platform").ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + webAuthnSettings := &management.MultiFactorWebAuthnSettings{ + OverrideRelyingParty: value.Bool(config.GetAttr("override_relying_party")), + RelyingPartyIdentifier: value.String(config.GetAttr("relying_party_identifier")), + } - if webAuthnSettings == (management.MultiFactorWebAuthnSettings{}) { - return nil + if webAuthnSettings.String() != "{}" { + err = api.Guardian.MultiFactor.WebAuthnPlatform.Update(webAuthnSettings) } - return api.Guardian.MultiFactor.WebAuthnPlatform.Update(&webAuthnSettings) - } + return stop + }) - return api.Guardian.MultiFactor.WebAuthnPlatform.Enable(false) + return err } func updateDUO(d *schema.ResourceData, api *management.Management) error { - if factorShouldBeUpdated(d, "duo") { - if err := api.Guardian.MultiFactor.DUO.Enable(true); err != nil { - return err - } + if !d.HasChange("duo") { + return nil + } - var duoSettings management.MultiFactorDUOSettings + enabled := d.Get("duo.0.enabled").(bool) + if err := api.Guardian.MultiFactor.DUO.Enable(enabled); err != nil { + return err + } + if !enabled { + return nil + } - d.GetRawConfig().GetAttr("duo").ForEachElement( - func(_ cty.Value, config cty.Value) (stop bool) { - duoSettings.SecretKey = value.String(config.GetAttr("secret_key")) - duoSettings.Hostname = value.String(config.GetAttr("hostname")) - duoSettings.IntegrationKey = value.String(config.GetAttr("integration_key")) - return stop - }, - ) + var err error + d.GetRawConfig().GetAttr("duo").ForEachElement( + func(_ cty.Value, config cty.Value) (stop bool) { + duoSettings := &management.MultiFactorDUOSettings{ + SecretKey: value.String(config.GetAttr("secret_key")), + Hostname: value.String(config.GetAttr("hostname")), + IntegrationKey: value.String(config.GetAttr("integration_key")), + } - if duoSettings == (management.MultiFactorDUOSettings{}) { - return nil - } + if duoSettings.String() != "{}" { + err = api.Guardian.MultiFactor.DUO.Update(duoSettings) + } - return api.Guardian.MultiFactor.DUO.Update(&duoSettings) - } + return stop + }, + ) - return api.Guardian.MultiFactor.DUO.Enable(false) + return err } func updatePush(d *schema.ResourceData, api *management.Management) error { - if factorShouldBeUpdated(d, "push") { - if err := api.Guardian.MultiFactor.Push.Enable(true); err != nil { - return err + if !d.HasChange("push") { + return nil + } + + enabled := d.Get("push.0.enabled").(bool) + if err := api.Guardian.MultiFactor.Push.Enable(enabled); err != nil { + return err + } + if !enabled { + return nil + } + + var err error + d.GetRawConfig().GetAttr("push").ForEachElement(func(_ cty.Value, push cty.Value) (stop bool) { + mfaProvider := &management.MultiFactorProvider{ + Provider: value.String(push.GetAttr("provider")), + } + if err = api.Guardian.MultiFactor.Push.UpdateProvider(mfaProvider); err != nil { + return true } - var err error - d.GetRawConfig().GetAttr("push").ForEachElement(func(_ cty.Value, push cty.Value) (stop bool) { - mfaProvider := &management.MultiFactorProvider{ - Provider: value.String(push.GetAttr("provider")), - } - if err = api.Guardian.MultiFactor.Push.UpdateProvider(mfaProvider); err != nil { + if d.HasChange("push.0.custom_app") { + if err = updateCustomApp(push.GetAttr("custom_app"), api); err != nil { return true } + } - if d.HasChange("push.0.amazon_sns.0") { - var amazonSNS *management.MultiFactorProviderAmazonSNS - push.GetAttr("amazon_sns").ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { - amazonSNS = &management.MultiFactorProviderAmazonSNS{ - AccessKeyID: value.String(config.GetAttr("aws_access_key_id")), - SecretAccessKeyID: value.String(config.GetAttr("aws_secret_access_key")), - Region: value.String(config.GetAttr("aws_region")), - APNSPlatformApplicationARN: value.String(config.GetAttr("sns_apns_platform_application_arn")), - GCMPlatformApplicationARN: value.String(config.GetAttr("sns_gcm_platform_application_arn")), - } - return stop - }) - if amazonSNS != nil { - if err = api.Guardian.MultiFactor.Push.UpdateAmazonSNS(amazonSNS); err != nil { - return true - } - } + if d.HasChange("push.0.amazon_sns") { + if err = updateAmazonSNS(push.GetAttr("amazon_sns"), api); err != nil { + return true } + } - if d.HasChange("push.0.custom_app.0") { - var customApp *management.MultiFactorPushCustomApp - push.GetAttr("custom_app").ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { - customApp = &management.MultiFactorPushCustomApp{ - AppName: value.String(config.GetAttr("app_name")), - AppleAppLink: value.String(config.GetAttr("apple_app_link")), - GoogleAppLink: value.String(config.GetAttr("google_app_link")), - } - return stop - }) - if customApp != nil { - if err = api.Guardian.MultiFactor.Push.UpdateCustomApp(customApp); err != nil { - return true - } - } - } + return stop + }) + return err +} - return stop - }) +func updateAmazonSNS(options cty.Value, api *management.Management) error { + var err error - return err - } + options.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + err = api.Guardian.MultiFactor.Push.UpdateAmazonSNS( + &management.MultiFactorProviderAmazonSNS{ + AccessKeyID: value.String(config.GetAttr("aws_access_key_id")), + SecretAccessKeyID: value.String(config.GetAttr("aws_secret_access_key")), + Region: value.String(config.GetAttr("aws_region")), + APNSPlatformApplicationARN: value.String(config.GetAttr("sns_apns_platform_application_arn")), + GCMPlatformApplicationARN: value.String(config.GetAttr("sns_gcm_platform_application_arn")), + }, + ) - return api.Guardian.MultiFactor.Push.Enable(false) + return stop + }) + + return err +} + +func updateCustomApp(options cty.Value, api *management.Management) error { + var err error + + options.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + err = api.Guardian.MultiFactor.Push.UpdateCustomApp( + &management.MultiFactorPushCustomApp{ + AppName: value.String(config.GetAttr("app_name")), + AppleAppLink: value.String(config.GetAttr("apple_app_link")), + GoogleAppLink: value.String(config.GetAttr("google_app_link")), + }, + ) + + return stop + }) + + return err } diff --git a/test/data/recordings/TestAccGuardian.yaml b/test/data/recordings/TestAccGuardian.yaml index 43373a212..be4c9fdf1 100644 --- a/test/data/recordings/TestAccGuardian.yaml +++ b/test/data/recordings/TestAccGuardian.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -36,7 +36,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.908287ms + duration: 101.552263ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -72,188 +72,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 181.737734ms + duration: 155.714529ms - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 151.496948ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 236.130214ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 213.343798ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 262.736899ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 170.99853ms - - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -271,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -288,8 +108,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.691724ms - - id: 8 + duration: 81.169759ms + - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -307,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -324,8 +144,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 337.482456ms - - id: 9 + duration: 111.486816ms + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -360,8 +180,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 155.84218ms - - id: 10 + duration: 79.547995ms + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -379,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -396,8 +216,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.256986ms - - id: 11 + duration: 122.158048ms + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -415,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -432,8 +252,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.47388ms - - id: 12 + duration: 124.620645ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -451,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -468,8 +288,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.187068ms - - id: 13 + duration: 139.085077ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -487,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -504,1052 +324,152 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 134.820836ms - - id: 14 + duration: 110.028938ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 271.322219ms - - id: 15 + duration: 88.609012ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 182.725469ms - - id: 16 + duration: 109.802143ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 145.744348ms - - id: 17 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 159.492835ms - - id: 18 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 140.316306ms - - id: 19 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 128.398138ms - - id: 20 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 136.557158ms - - id: 21 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 127.171423ms - - id: 22 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 143.905681ms - - id: 23 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 131.602396ms - - id: 24 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 161.78849ms - - id: 25 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 17 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":true} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 16 - uncompressed: false - body: '{"enabled":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 123.845213ms - - id: 26 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 118.549759ms - - id: 27 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 200.858154ms - - id: 28 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 200.194328ms - - id: 29 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 308.016394ms - - id: 30 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 123.708759ms - - id: 31 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 111.364689ms - - id: 32 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":true,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 128.902049ms - - id: 33 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 115.317397ms - - id: 34 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":true,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 143.728377ms - - id: 35 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 102.708819ms - - id: 36 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":true,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 139.562135ms - - id: 37 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 135.502734ms - - id: 38 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 123.215529ms - - id: 39 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 153.273726ms - - id: 40 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 126.380421ms - - id: 41 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + trailer: { } + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.89552ms - - id: 42 + duration: 81.178965ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 148.745263ms - - id: 43 + duration: 117.959856ms + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -1567,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1584,8 +504,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 190.031892ms - - id: 44 + duration: 144.905359ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -1603,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1620,44 +540,44 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.846667ms - - id: 45 + duration: 124.187178ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 17 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp + method: PUT response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.998147ms - - id: 46 + duration: 105.200911ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -1675,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1686,14 +606,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.631242ms - - id: 47 + duration: 117.733583ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -1711,8 +631,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -1722,14 +642,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":true,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.620056ms - - id: 48 + duration: 102.283623ms + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -1747,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1758,122 +678,122 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 137.205445ms - - id: 49 + duration: 134.321272ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 16 - uncompressed: false - body: '{"enabled":true}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":true,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 288.395853ms - - id: 50 + duration: 93.563512ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.871004ms - - id: 51 + duration: 101.842913ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":true,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.992106ms - - id: 52 + duration: 108.724407ms + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -1891,8 +811,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: proto: HTTP/2.0 @@ -1908,80 +828,80 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.691458ms - - id: 53 + duration: 102.280733ms + - id: 23 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.176302ms - - id: 54 + duration: 75.425113ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.370759ms - - id: 55 + duration: 98.294097ms + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -1999,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2016,8 +936,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.493961ms - - id: 56 + duration: 101.811921ms + - id: 26 request: proto: HTTP/1.1 proto_major: 1 @@ -2035,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2046,14 +966,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":true,"trial_expired":false}]' + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 176.790915ms - - id: 57 + duration: 104.807556ms + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -2071,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2088,8 +1008,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.248203ms - - id: 58 + duration: 105.715614ms + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -2107,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2118,50 +1038,50 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":true,"trial_expired":false}]' + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 138.752104ms - - id: 59 + duration: 112.620756ms + - id: 29 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 17 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code + method: PUT response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.74763ms - - id: 60 + duration: 105.712225ms + - id: 30 request: proto: HTTP/1.1 proto_major: 1 @@ -2179,8 +1099,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -2190,194 +1110,194 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":true,"trial_expired":false}]' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 126.492454ms - - id: 61 + duration: 82.160488ms + - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":true,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.789662ms - - id: 62 + duration: 118.140526ms + - id: 32 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 161.323984ms - - id: 63 + duration: 70.982156ms + - id: 33 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":true,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.151077ms - - id: 64 + duration: 102.760451ms + - id: 34 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 129.562395ms - - id: 65 + duration: 83.105713ms + - id: 35 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":true,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 174.746268ms - - id: 66 + duration: 119.25709ms + - id: 36 request: proto: HTTP/1.1 proto_major: 1 @@ -2395,8 +1315,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: proto: HTTP/2.0 @@ -2412,8 +1332,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.727144ms - - id: 67 + duration: 97.860929ms + - id: 37 request: proto: HTTP/1.1 proto_major: 1 @@ -2431,7 +1351,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2448,8 +1368,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.055452ms - - id: 68 + duration: 98.592162ms + - id: 38 request: proto: HTTP/1.1 proto_major: 1 @@ -2467,7 +1387,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2484,8 +1404,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.049194ms - - id: 69 + duration: 177.21157ms + - id: 39 request: proto: HTTP/1.1 proto_major: 1 @@ -2503,7 +1423,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2520,8 +1440,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.646876ms - - id: 70 + duration: 89.722596ms + - id: 40 request: proto: HTTP/1.1 proto_major: 1 @@ -2539,7 +1459,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2556,8 +1476,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.603633ms - - id: 71 + duration: 115.262669ms + - id: 41 request: proto: HTTP/1.1 proto_major: 1 @@ -2575,7 +1495,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -2592,8 +1512,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 121.145918ms - - id: 72 + duration: 111.697459ms + - id: 42 request: proto: HTTP/1.1 proto_major: 1 @@ -2611,7 +1531,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -2628,8 +1548,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.976952ms - - id: 73 + duration: 116.423225ms + - id: 43 request: proto: HTTP/1.1 proto_major: 1 @@ -2647,7 +1567,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -2664,8 +1584,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 138.674031ms - - id: 74 + duration: 104.401793ms + - id: 44 request: proto: HTTP/1.1 proto_major: 1 @@ -2683,7 +1603,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -2700,8 +1620,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 127.056542ms - - id: 75 + duration: 187.436982ms + - id: 45 request: proto: HTTP/1.1 proto_major: 1 @@ -2719,7 +1639,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -2736,8 +1656,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 112.096275ms - - id: 76 + duration: 155.979377ms + - id: 46 request: proto: HTTP/1.1 proto_major: 1 @@ -2755,7 +1675,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -2772,8 +1692,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.213583ms - - id: 77 + duration: 111.984673ms + - id: 47 request: proto: HTTP/1.1 proto_major: 1 @@ -2791,7 +1711,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -2808,8 +1728,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.567983ms - - id: 78 + duration: 120.706498ms + - id: 48 request: proto: HTTP/1.1 proto_major: 1 @@ -2827,7 +1747,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -2844,8 +1764,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.024895ms - - id: 79 + duration: 108.422798ms + - id: 49 request: proto: HTTP/1.1 proto_major: 1 @@ -2863,7 +1783,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -2880,4 +1800,4 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 155.534517ms + duration: 120.357845ms diff --git a/test/data/recordings/TestAccGuardianDUO.yaml b/test/data/recordings/TestAccGuardianDUO.yaml index ed486303b..2e86985a7 100644 --- a/test/data/recordings/TestAccGuardianDUO.yaml +++ b/test/data/recordings/TestAccGuardianDUO.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -36,116 +36,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 141.272097ms + duration: 82.541054ms - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 164.687031ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 287.967756ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 139.002817ms - - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -163,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -180,8 +72,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 169.847361ms - - id: 5 + duration: 110.901932ms + - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -199,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: PUT response: @@ -216,44 +108,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 138.65741ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 179.126035ms - - id: 7 + duration: 98.468435ms + - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -271,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -288,8 +144,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 127.421688ms - - id: 8 + duration: 76.32255ms + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -307,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -324,8 +180,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.697578ms - - id: 9 + duration: 110.961817ms + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: @@ -360,8 +216,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.094467ms - - id: 10 + duration: 157.434486ms + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -379,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -396,8 +252,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.353358ms - - id: 11 + duration: 91.228506ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -415,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -432,8 +288,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.314881ms - - id: 12 + duration: 93.387192ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -451,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: @@ -468,8 +324,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.204284ms - - id: 13 + duration: 148.190185ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -487,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -504,8 +360,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.085331ms - - id: 14 + duration: 81.620798ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -523,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -540,8 +396,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.158034ms - - id: 15 + duration: 120.291813ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -559,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: @@ -576,116 +432,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 121.302191ms - - id: 16 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 132.962684ms - - id: 17 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 135.480678ms - - id: 18 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 129.709532ms - - id: 19 + duration: 99.789124ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -703,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -720,44 +468,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 180.40333ms - - id: 20 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 122.260745ms - - id: 21 + duration: 109.391994ms + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -775,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -792,8 +504,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.987229ms - - id: 22 + duration: 74.321383ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -811,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -828,8 +540,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.206508ms - - id: 23 + duration: 114.803536ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -847,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -864,8 +576,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.300193ms - - id: 24 + duration: 88.974074ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -883,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -900,8 +612,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.521813ms - - id: 25 + duration: 119.398147ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -919,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -936,8 +648,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.884877ms - - id: 26 + duration: 162.222716ms + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -955,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -972,8 +684,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 127.877218ms - - id: 27 + duration: 107.734027ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -991,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -1008,8 +720,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 149.323644ms - - id: 28 + duration: 161.334968ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -1027,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1044,8 +756,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.425274ms - - id: 29 + duration: 95.00932ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -1063,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1080,8 +792,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.174775ms - - id: 30 + duration: 123.188561ms + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -1099,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1116,8 +828,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.480061ms - - id: 31 + duration: 121.326764ms + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -1135,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1152,8 +864,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 179.949409ms - - id: 32 + duration: 119.138466ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -1171,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1188,8 +900,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 163.631674ms - - id: 33 + duration: 107.359841ms + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -1207,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1224,4 +936,4 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.941794ms + duration: 102.629126ms diff --git a/test/data/recordings/TestAccGuardianPhone.yaml b/test/data/recordings/TestAccGuardianPhone.yaml index 6fe81be59..adc8e56f6 100644 --- a/test/data/recordings/TestAccGuardianPhone.yaml +++ b/test/data/recordings/TestAccGuardianPhone.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -36,7 +36,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.868045ms + duration: 111.808513ms - id: 1 request: proto: HTTP/1.1 @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -72,7 +72,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.623749ms + duration: 139.92983ms - id: 2 request: proto: HTTP/1.1 @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: PUT response: @@ -108,7 +108,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.244503ms + duration: 119.285501ms - id: 3 request: proto: HTTP/1.1 @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: PUT response: @@ -144,151 +144,151 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 156.837364ms + duration: 113.497398ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 155.248533ms + duration: 83.956011ms - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.478179ms + duration: 117.389935ms - id: 6 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"message_types":["sms"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.441833ms + duration: 112.149319ms - id: 7 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"provider":"phone-message-hook"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.882674ms + duration: 176.791414ms - id: 8 request: proto: HTTP/1.1 @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -324,7 +324,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.621623ms + duration: 107.847964ms - id: 9 request: proto: HTTP/1.1 @@ -343,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -360,7 +360,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.279924ms + duration: 195.485337ms - id: 10 request: proto: HTTP/1.1 @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -396,7 +396,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 137.909137ms + duration: 130.865443ms - id: 11 request: proto: HTTP/1.1 @@ -415,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -432,7 +432,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.86557ms + duration: 101.949946ms - id: 12 request: proto: HTTP/1.1 @@ -451,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -468,7 +468,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.342981ms + duration: 114.219981ms - id: 13 request: proto: HTTP/1.1 @@ -487,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -504,7 +504,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 137.304834ms + duration: 92.281443ms - id: 14 request: proto: HTTP/1.1 @@ -523,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -540,7 +540,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 159.913505ms + duration: 105.749557ms - id: 15 request: proto: HTTP/1.1 @@ -559,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -576,7 +576,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.354435ms + duration: 256.398176ms - id: 16 request: proto: HTTP/1.1 @@ -595,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -612,7 +612,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.938757ms + duration: 109.60798ms - id: 17 request: proto: HTTP/1.1 @@ -631,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -648,7 +648,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 237.902999ms + duration: 96.609687ms - id: 18 request: proto: HTTP/1.1 @@ -667,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -684,7 +684,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 204.740291ms + duration: 108.337597ms - id: 19 request: proto: HTTP/1.1 @@ -703,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -720,7 +720,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 126.592755ms + duration: 191.454761ms - id: 20 request: proto: HTTP/1.1 @@ -739,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -756,7 +756,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.558818ms + duration: 107.169705ms - id: 21 request: proto: HTTP/1.1 @@ -775,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -792,7 +792,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.253008ms + duration: 99.940565ms - id: 22 request: proto: HTTP/1.1 @@ -811,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -828,7 +828,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.106998ms + duration: 107.147757ms - id: 23 request: proto: HTTP/1.1 @@ -847,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -864,64 +864,64 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 148.145169ms + duration: 127.930512ms - id: 24 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 17 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + method: PUT response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 131.481724ms + duration: 107.19831ms - id: 25 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 21 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"provider":"auth0"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + method: PUT response: proto: HTTP/2.0 proto_major: 2 @@ -930,34 +930,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '{"provider":"auth0"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 137.908348ms + duration: 117.283263ms - id: 26 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 72 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enrollment_message":"enroll foo","verification_message":"verify foo"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates + method: PUT response: proto: HTTP/2.0 proto_major: 2 @@ -966,34 +966,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"message_types":["sms"]}' + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 186.123953ms + duration: 177.860863ms - id: 27 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 28 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"message_types":["voice"]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + method: PUT response: proto: HTTP/2.0 proto_major: 2 @@ -1002,70 +1002,70 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"phone-message-hook"}' + body: '{"message_types":["voice"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.117087ms + duration: 157.052426ms - id: 28 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 16 - uncompressed: false - body: '{"enabled":true}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 159.044312ms + duration: 118.684159ms - id: 29 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 21 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"auth0"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1074,34 +1074,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"auth0"}' + body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.031365ms + duration: 111.71674ms - id: 30 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 72 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enrollment_message":"enroll foo","verification_message":"verify foo"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1110,34 +1110,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' + body: '{"message_types":["voice"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 131.616857ms + duration: 102.101342ms - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 28 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"message_types":["voice"]} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1146,157 +1146,157 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"message_types":["voice"]}' + body: '{"provider":"auth0"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 175.632596ms + duration: 150.53997ms - id: 32 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 139.94034ms + duration: 92.924516ms - id: 33 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 185.876552ms + duration: 70.550439ms - id: 34 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 131.039447ms + duration: 147.626089ms - id: 35 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"message_types":["voice"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 150.605818ms + duration: 97.749603ms - id: 36 request: proto: HTTP/1.1 @@ -1315,8 +1315,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: proto: HTTP/2.0 @@ -1326,13 +1326,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"provider":"auth0"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.833754ms + duration: 121.792889ms - id: 37 request: proto: HTTP/1.1 @@ -1351,8 +1351,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: proto: HTTP/2.0 @@ -1362,13 +1362,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 153.704885ms + duration: 105.409568ms - id: 38 request: proto: HTTP/1.1 @@ -1387,8 +1387,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1398,13 +1398,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"message_types":["voice"]}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 124.964006ms + duration: 89.697398ms - id: 39 request: proto: HTTP/1.1 @@ -1423,8 +1423,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -1434,13 +1434,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"auth0"}' + body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.29913ms + duration: 101.197925ms - id: 40 request: proto: HTTP/1.1 @@ -1459,8 +1459,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: proto: HTTP/2.0 @@ -1470,13 +1470,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' + body: '{"message_types":["voice"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 139.635364ms + duration: 96.5384ms - id: 41 request: proto: HTTP/1.1 @@ -1495,8 +1495,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: proto: HTTP/2.0 @@ -1506,13 +1506,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"provider":"auth0"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.352536ms + duration: 103.727346ms - id: 42 request: proto: HTTP/1.1 @@ -1531,8 +1531,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: proto: HTTP/2.0 @@ -1542,70 +1542,70 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.133046ms + duration: 177.778785ms - id: 43 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 17 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types - method: GET + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + method: PUT response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"message_types":["voice"]}' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 251.938952ms + duration: 103.30548ms - id: 44 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 22 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"provider":"twilio"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider - method: GET + method: PUT response: proto: HTTP/2.0 proto_major: 2 @@ -1614,465 +1614,33 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"auth0"}' + body: '{"provider":"twilio"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.815711ms + duration: 114.856656ms - id: 45 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 81 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"from":"from bar","messaging_service_sid":"foo","auth_token":"bar","sid":"foo"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 120.851516ms - - id: 46 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 96.813746ms - - id: 47 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":true,"trial_expired":false},{"name":"push-notification","enabled":false,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 124.76002ms - - id: 48 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"message_types":["voice"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 153.853616ms - - id: 49 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"provider":"auth0"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 117.123589ms - - id: 50 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 5 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - null - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 146.113134ms - - id: 51 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 17 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":true} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 16 - uncompressed: false - body: '{"enabled":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 153.891081ms - - id: 52 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 22 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"provider":"twilio"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"provider":"twilio"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 249.440275ms - - id: 53 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 81 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"from":"from bar","messaging_service_sid":"foo","auth_token":"bar","sid":"foo"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"from":"from bar","messaging_service_sid":"foo","auth_token":"bar","sid":"foo"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 122.636545ms - - id: 54 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 72 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enrollment_message":"enroll foo","verification_message":"verify foo"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 129.388008ms - - id: 55 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 26 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"message_types":["sms"]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"message_types":["sms"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 142.731632ms - - id: 56 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 141.662947ms - - id: 57 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: PUT response: proto: HTTP/2.0 @@ -2080,35 +1648,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"from":"from bar","messaging_service_sid":"foo","auth_token":"bar","sid":"foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.931356ms - - id: 58 + duration: 97.632689ms + - id: 46 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 72 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + {"enrollment_message":"enroll foo","verification_message":"verify foo"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: PUT response: proto: HTTP/2.0 @@ -2116,35 +1684,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.555099ms - - id: 59 + duration: 99.261914ms + - id: 47 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 26 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + {"message_types":["sms"]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: PUT response: proto: HTTP/2.0 @@ -2152,16 +1720,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"message_types":["sms"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.32844ms - - id: 60 + duration: 98.960207ms + - id: 48 request: proto: HTTP/1.1 proto_major: 1 @@ -2179,7 +1747,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2196,8 +1764,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.466676ms - - id: 61 + duration: 105.491031ms + - id: 49 request: proto: HTTP/1.1 proto_major: 1 @@ -2215,7 +1783,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2232,8 +1800,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.444821ms - - id: 62 + duration: 220.2358ms + - id: 50 request: proto: HTTP/1.1 proto_major: 1 @@ -2251,7 +1819,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -2268,8 +1836,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.793458ms - - id: 63 + duration: 96.236268ms + - id: 51 request: proto: HTTP/1.1 proto_major: 1 @@ -2287,7 +1855,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -2304,8 +1872,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 104.438525ms - - id: 64 + duration: 110.925115ms + - id: 52 request: proto: HTTP/1.1 proto_major: 1 @@ -2323,7 +1891,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -2340,8 +1908,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.494484ms - - id: 65 + duration: 107.19776ms + - id: 53 request: proto: HTTP/1.1 proto_major: 1 @@ -2359,7 +1927,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: GET response: @@ -2376,8 +1944,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 212.857372ms - - id: 66 + duration: 108.786393ms + - id: 54 request: proto: HTTP/1.1 proto_major: 1 @@ -2395,7 +1963,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2412,8 +1980,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 187.32767ms - - id: 67 + duration: 170.318598ms + - id: 55 request: proto: HTTP/1.1 proto_major: 1 @@ -2431,7 +1999,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2448,8 +2016,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 156.857454ms - - id: 68 + duration: 128.712879ms + - id: 56 request: proto: HTTP/1.1 proto_major: 1 @@ -2467,7 +2035,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -2484,8 +2052,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 161.32314ms - - id: 69 + duration: 171.720698ms + - id: 57 request: proto: HTTP/1.1 proto_major: 1 @@ -2503,7 +2071,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -2520,8 +2088,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.858577ms - - id: 70 + duration: 104.775026ms + - id: 58 request: proto: HTTP/1.1 proto_major: 1 @@ -2539,7 +2107,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -2556,8 +2124,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.853216ms - - id: 71 + duration: 145.017327ms + - id: 59 request: proto: HTTP/1.1 proto_major: 1 @@ -2575,7 +2143,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: GET response: @@ -2592,8 +2160,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 251.459673ms - - id: 72 + duration: 106.081515ms + - id: 60 request: proto: HTTP/1.1 proto_major: 1 @@ -2611,7 +2179,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2628,8 +2196,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.216971ms - - id: 73 + duration: 160.244965ms + - id: 61 request: proto: HTTP/1.1 proto_major: 1 @@ -2647,7 +2215,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2664,8 +2232,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 362.570109ms - - id: 74 + duration: 122.651261ms + - id: 62 request: proto: HTTP/1.1 proto_major: 1 @@ -2683,7 +2251,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -2700,8 +2268,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.712333ms - - id: 75 + duration: 122.552007ms + - id: 63 request: proto: HTTP/1.1 proto_major: 1 @@ -2719,7 +2287,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -2736,8 +2304,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.180691ms - - id: 76 + duration: 104.407956ms + - id: 64 request: proto: HTTP/1.1 proto_major: 1 @@ -2755,7 +2323,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -2772,8 +2340,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 182.134315ms - - id: 77 + duration: 100.346932ms + - id: 65 request: proto: HTTP/1.1 proto_major: 1 @@ -2791,7 +2359,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: GET response: @@ -2808,8 +2376,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.33984ms - - id: 78 + duration: 115.471378ms + - id: 66 request: proto: HTTP/1.1 proto_major: 1 @@ -2827,7 +2395,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -2844,152 +2412,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 199.685946ms - - id: 79 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 148.554948ms - - id: 80 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 125.972877ms - - id: 81 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 133.355777ms - - id: 82 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 122.654932ms - - id: 83 + duration: 202.5191ms + - id: 67 request: proto: HTTP/1.1 proto_major: 1 @@ -3007,7 +2431,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -3024,8 +2448,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.04026ms - - id: 84 + duration: 86.15511ms + - id: 68 request: proto: HTTP/1.1 proto_major: 1 @@ -3043,7 +2467,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -3060,8 +2484,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.457962ms - - id: 85 + duration: 106.899872ms + - id: 69 request: proto: HTTP/1.1 proto_major: 1 @@ -3079,7 +2503,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -3096,8 +2520,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.298328ms - - id: 86 + duration: 87.105125ms + - id: 70 request: proto: HTTP/1.1 proto_major: 1 @@ -3115,7 +2539,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -3132,8 +2556,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.791991ms - - id: 87 + duration: 123.40952ms + - id: 71 request: proto: HTTP/1.1 proto_major: 1 @@ -3151,7 +2575,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -3168,8 +2592,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.350528ms - - id: 88 + duration: 140.526568ms + - id: 72 request: proto: HTTP/1.1 proto_major: 1 @@ -3187,7 +2611,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -3204,8 +2628,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 176.058207ms - - id: 89 + duration: 117.57572ms + - id: 73 request: proto: HTTP/1.1 proto_major: 1 @@ -3223,7 +2647,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -3240,8 +2664,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.32802ms - - id: 90 + duration: 114.211317ms + - id: 74 request: proto: HTTP/1.1 proto_major: 1 @@ -3259,7 +2683,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -3276,8 +2700,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 139.862355ms - - id: 91 + duration: 102.145264ms + - id: 75 request: proto: HTTP/1.1 proto_major: 1 @@ -3295,7 +2719,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -3312,8 +2736,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 274.796093ms - - id: 92 + duration: 97.869345ms + - id: 76 request: proto: HTTP/1.1 proto_major: 1 @@ -3331,7 +2755,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -3348,8 +2772,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.884074ms - - id: 93 + duration: 110.49541ms + - id: 77 request: proto: HTTP/1.1 proto_major: 1 @@ -3367,7 +2791,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -3384,8 +2808,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.556848ms - - id: 94 + duration: 118.495843ms + - id: 78 request: proto: HTTP/1.1 proto_major: 1 @@ -3403,7 +2827,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -3420,8 +2844,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.032989ms - - id: 95 + duration: 97.17579ms + - id: 79 request: proto: HTTP/1.1 proto_major: 1 @@ -3439,7 +2863,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -3456,4 +2880,4 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.685975ms + duration: 122.109007ms diff --git a/test/data/recordings/TestAccGuardianPush.yaml b/test/data/recordings/TestAccGuardianPush.yaml index 23fd3e464..3fe201960 100644 --- a/test/data/recordings/TestAccGuardianPush.yaml +++ b/test/data/recordings/TestAccGuardianPush.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -36,27 +36,27 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 181.639127ms + duration: 86.572046ms - id: 1 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 17 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + {"enabled":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -64,35 +64,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 + content_length: 16 uncompressed: false - body: '{"enabled":false}' + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.8083ms + duration: 128.417592ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 24 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + {"provider":"guardian"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider method: PUT response: proto: HTTP/2.0 @@ -100,144 +100,144 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"provider":"guardian"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 163.262558ms + duration: 109.989772ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 129.451667ms + duration: 109.906384ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.135423ms + duration: 104.956423ms - id: 5 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 16 - uncompressed: false - body: '{"enabled":true}' + content_length: -1 + uncompressed: true + body: '{"provider":"guardian"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 181.344202ms + duration: 108.458292ms - id: 6 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 24 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"guardian"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -246,13 +246,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"guardian"}' + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.075054ms + duration: 170.868967ms - id: 7 request: proto: HTTP/1.1 @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -288,7 +288,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 248.665902ms + duration: 84.729349ms - id: 8 request: proto: HTTP/1.1 @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -324,7 +324,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.720681ms + duration: 117.101245ms - id: 9 request: proto: HTTP/1.1 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider method: GET response: proto: HTTP/2.0 @@ -354,13 +354,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"provider":"guardian"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 258.809423ms + duration: 100.846489ms - id: 10 request: proto: HTTP/1.1 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push method: GET response: proto: HTTP/2.0 @@ -390,13 +390,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 296.076116ms + duration: 90.864189ms - id: 11 request: proto: HTTP/1.1 @@ -415,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -432,7 +432,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 182.919081ms + duration: 79.66359ms - id: 12 request: proto: HTTP/1.1 @@ -451,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -468,99 +468,99 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 196.623089ms + duration: 124.234162ms - id: 13 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"provider":"guardian"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 190.190875ms + duration: 100.484906ms - id: 14 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 212.883416ms + duration: 80.957689ms - id: 15 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 17 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + {"enabled":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -568,35 +568,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 + content_length: 16 uncompressed: false - body: '{"enabled":false}' + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 217.345985ms + duration: 108.571228ms - id: 16 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 19 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + {"provider":"sns"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider method: PUT response: proto: HTTP/2.0 @@ -604,35 +604,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 + content_length: 18 uncompressed: false - body: '{"enabled":false}' + body: '{"provider":"sns"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.832626ms + duration: 115.979729ms - id: 17 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 184 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + {"aws_access_key_id":"test1","aws_secret_access_key":"secretKey","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns method: PUT response: proto: HTTP/2.0 @@ -640,72 +640,72 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 16 - uncompressed: false - body: '{"enabled":true}' + content_length: -1 + uncompressed: true + body: '{"aws_access_key_id":"test1","aws_secret_access_key":"secretKey","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 409.666195ms + duration: 116.783255ms - id: 18 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"sns"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 18 - uncompressed: false - body: '{"provider":"sns"}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 158.595061ms + duration: 87.107928ms - id: 19 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 184 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"aws_access_key_id":"test1","aws_secret_access_key":"secretKey","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -714,13 +714,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"aws_access_key_id":"test1","aws_secret_access_key":"secretKey","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.029139ms + duration: 118.735733ms - id: 20 request: proto: HTTP/1.1 @@ -739,8 +739,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider method: GET response: proto: HTTP/2.0 @@ -748,15 +748,15 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 18 + uncompressed: false + body: '{"provider":"sns"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 99.180755ms + duration: 120.907662ms - id: 21 request: proto: HTTP/1.1 @@ -775,8 +775,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push method: GET response: proto: HTTP/2.0 @@ -786,13 +786,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 121.665148ms + duration: 77.273982ms - id: 22 request: proto: HTTP/1.1 @@ -811,8 +811,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns method: GET response: proto: HTTP/2.0 @@ -822,13 +822,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"aws_access_key_id":"test1","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 165.507359ms + duration: 132.843053ms - id: 23 request: proto: HTTP/1.1 @@ -847,8 +847,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -858,13 +858,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 201.034027ms + duration: 79.929185ms - id: 24 request: proto: HTTP/1.1 @@ -883,8 +883,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -894,13 +894,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 82.49211ms + duration: 90.036804ms - id: 25 request: proto: HTTP/1.1 @@ -919,8 +919,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider method: GET response: proto: HTTP/2.0 @@ -928,252 +928,252 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + content_length: 18 + uncompressed: false + body: '{"provider":"sns"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.912153ms + duration: 142.26358ms - id: 26 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 192.692642ms + duration: 116.835599ms - id: 27 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"aws_access_key_id":"test1","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 185.296077ms + duration: 110.938804ms - id: 28 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 184.203105ms + duration: 87.26217ms - id: 29 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 156.316468ms + duration: 110.413374ms - id: 30 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 16 + content_length: 18 uncompressed: false - body: '{"enabled":true}' + body: '{"provider":"sns"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.962764ms + duration: 111.387831ms - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 19 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"sns"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 18 - uncompressed: false - body: '{"provider":"sns"}' + content_length: -1 + uncompressed: true + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.587427ms + duration: 88.990816ms - id: 32 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 169 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"app_name":"CustomApp","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","google_app_link":"https://play.google.com/store/apps/details?id=com.my.app"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push - method: PATCH + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1182,13 +1182,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' + body: '{"aws_access_key_id":"test1","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 146.278635ms + duration: 114.95905ms - id: 33 request: proto: HTTP/1.1 @@ -1207,7 +1207,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1224,7 +1224,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.027095ms + duration: 104.485009ms - id: 34 request: proto: HTTP/1.1 @@ -1243,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1260,7 +1260,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.783276ms + duration: 180.894881ms - id: 35 request: proto: HTTP/1.1 @@ -1279,8 +1279,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider method: GET response: proto: HTTP/2.0 @@ -1288,15 +1288,15 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 18 + uncompressed: false + body: '{"provider":"sns"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 94.239517ms + duration: 117.498091ms - id: 36 request: proto: HTTP/1.1 @@ -1315,8 +1315,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push method: GET response: proto: HTTP/2.0 @@ -1326,13 +1326,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 276.196519ms + duration: 155.047671ms - id: 37 request: proto: HTTP/1.1 @@ -1351,8 +1351,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns method: GET response: proto: HTTP/2.0 @@ -1362,13 +1362,13 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"aws_access_key_id":"test1","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 178.229335ms + duration: 108.887194ms - id: 38 request: proto: HTTP/1.1 @@ -1387,8 +1387,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1398,157 +1398,157 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 178.52583ms + duration: 85.633017ms - id: 39 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '[{"name":"sms","enabled":false,"trial_expired":false},{"name":"push-notification","enabled":true,"trial_expired":false},{"name":"otp","enabled":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":false,"trial_expired":false},{"name":"webauthn-roaming","enabled":false,"trial_expired":false},{"name":"webauthn-platform","enabled":false,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 179.028756ms + duration: 99.45ms - id: 40 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/selected-provider + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 + content_length: 18 uncompressed: false - body: '{"enabled":false}' + body: '{"provider":"sns"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 198.431155ms + duration: 161.543631ms - id: 41 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"google_app_link":"https://play.google.com/store/apps/details?id=com.my.app","apple_app_link":"https://itunes.apple.com/us/app/my-app/id123121","app_name":"CustomApp"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.83187ms + duration: 83.796494ms - id: 42 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT + - Go-Auth0-SDK/0.14.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' + content_length: -1 + uncompressed: true + body: '{"aws_access_key_id":"test1","aws_region":"us-west-1","sns_apns_platform_application_arn":"test_arn","sns_gcm_platform_application_arn":"test_arn"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 129.892463ms + duration: 97.41904ms - id: 43 request: proto: HTTP/1.1 @@ -1567,7 +1567,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1584,7 +1584,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.616514ms + duration: 98.423048ms - id: 44 request: proto: HTTP/1.1 @@ -1603,7 +1603,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1620,7 +1620,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.710669ms + duration: 79.991384ms - id: 45 request: proto: HTTP/1.1 @@ -1639,7 +1639,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1656,7 +1656,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.882749ms + duration: 125.809857ms - id: 46 request: proto: HTTP/1.1 @@ -1675,7 +1675,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1692,7 +1692,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.796338ms + duration: 85.709686ms - id: 47 request: proto: HTTP/1.1 @@ -1711,7 +1711,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1728,7 +1728,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.020895ms + duration: 97.622049ms - id: 48 request: proto: HTTP/1.1 @@ -1747,7 +1747,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -1764,7 +1764,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 80.68203ms + duration: 176.029058ms - id: 49 request: proto: HTTP/1.1 @@ -1783,7 +1783,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1800,7 +1800,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 198.042792ms + duration: 145.287263ms - id: 50 request: proto: HTTP/1.1 @@ -1819,7 +1819,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -1836,7 +1836,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.842227ms + duration: 122.202186ms - id: 51 request: proto: HTTP/1.1 @@ -1855,7 +1855,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1872,7 +1872,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 188.136026ms + duration: 186.030875ms - id: 52 request: proto: HTTP/1.1 @@ -1891,7 +1891,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1908,7 +1908,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 94.701262ms + duration: 150.020845ms - id: 53 request: proto: HTTP/1.1 @@ -1927,7 +1927,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1944,7 +1944,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.516038ms + duration: 120.472826ms - id: 54 request: proto: HTTP/1.1 @@ -1963,7 +1963,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1980,7 +1980,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 102.752388ms + duration: 119.603949ms - id: 55 request: proto: HTTP/1.1 @@ -1999,7 +1999,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -2016,7 +2016,7 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.733211ms + duration: 124.520254ms - id: 56 request: proto: HTTP/1.1 @@ -2035,7 +2035,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/latest + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -2052,4 +2052,4 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.47114ms + duration: 95.680598ms diff --git a/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml b/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml index 381afacbf..52be44a80 100644 --- a/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml +++ b/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -36,80 +36,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.236285ms + duration: 87.426155ms - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 120.70664ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 117.021103ms - - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -127,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -144,80 +72,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.113961ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 121.986272ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 123.760253ms - - id: 6 + duration: 108.971811ms + - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -235,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -252,8 +108,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.31877ms - - id: 7 + duration: 107.298794ms + - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -271,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -288,8 +144,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 129.928842ms - - id: 8 + duration: 102.862765ms + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -307,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings method: GET response: @@ -324,8 +180,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 119.210878ms - - id: 9 + duration: 116.213432ms + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -360,8 +216,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.368263ms - - id: 10 + duration: 81.660897ms + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -379,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -396,8 +252,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 113.472272ms - - id: 11 + duration: 94.594894ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -415,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings method: GET response: @@ -432,8 +288,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.9775ms - - id: 12 + duration: 95.295931ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -451,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -468,8 +324,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.004467ms - - id: 13 + duration: 86.537076ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -487,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -504,8 +360,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 212.422433ms - - id: 14 + duration: 123.905497ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -523,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings method: GET response: @@ -540,80 +396,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 150.340508ms - - id: 15 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 148.342506ms - - id: 16 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 138.159531ms - - id: 17 + duration: 127.906938ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -631,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -648,80 +432,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.755416ms - - id: 18 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 140.796375ms - - id: 19 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 132.103677ms - - id: 20 + duration: 104.968014ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -739,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -756,8 +468,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.766266ms - - id: 21 + duration: 84.470274ms + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -775,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -792,8 +504,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 221.504967ms - - id: 22 + duration: 101.450118ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -811,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -828,8 +540,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.393437ms - - id: 23 + duration: 170.56567ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -847,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -864,8 +576,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.958351ms - - id: 24 + duration: 117.740647ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -883,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -900,8 +612,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.533605ms - - id: 25 + duration: 173.228501ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -919,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -936,8 +648,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.625334ms - - id: 26 + duration: 176.112646ms + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -955,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -972,8 +684,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 116.711339ms - - id: 27 + duration: 96.039146ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -991,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1008,8 +720,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 135.599908ms - - id: 28 + duration: 112.863859ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -1027,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1044,8 +756,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.926899ms - - id: 29 + duration: 95.494977ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -1063,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1080,8 +792,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.694209ms - - id: 30 + duration: 126.645302ms + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -1099,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1116,8 +828,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 153.505105ms - - id: 31 + duration: 106.576939ms + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -1135,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1152,8 +864,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 159.617304ms - - id: 32 + duration: 111.837024ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -1171,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1188,4 +900,4 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 136.805106ms + duration: 118.276979ms diff --git a/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml b/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml index b951fa2d7..629450bc6 100644 --- a/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml +++ b/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -36,44 +36,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 143.957582ms + duration: 89.819514ms - id: 1 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 132.705218ms - - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -91,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -108,116 +72,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.972751ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 146.258891ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 128.232056ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 114.314577ms - - id: 6 + duration: 129.677168ms + - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -235,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -252,8 +108,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 122.463261ms - - id: 7 + duration: 86.553468ms + - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -271,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -288,8 +144,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 144.50457ms - - id: 8 + duration: 130.039094ms + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -307,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -324,8 +180,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 296.073754ms - - id: 9 + duration: 121.828566ms + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -360,8 +216,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 149.517884ms - - id: 10 + duration: 84.449374ms + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -379,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -396,8 +252,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 127.016183ms - - id: 11 + duration: 94.12986ms + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -415,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -432,8 +288,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 146.312496ms - - id: 12 + duration: 110.64423ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -451,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -468,8 +324,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 92.903244ms - - id: 13 + duration: 83.468444ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -487,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -504,8 +360,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 120.212711ms - - id: 14 + duration: 97.473549ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -523,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -540,8 +396,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 175.469715ms - - id: 15 + duration: 95.013708ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -559,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -576,8 +432,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 127.121795ms - - id: 16 + duration: 83.823786ms + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -595,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -612,8 +468,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 149.116309ms - - id: 17 + duration: 121.660691ms + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -631,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -648,8 +504,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 147.374571ms - - id: 18 + duration: 191.368776ms + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -667,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -684,8 +540,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 101.965387ms - - id: 19 + duration: 163.200081ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -703,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -720,8 +576,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 146.993779ms - - id: 20 + duration: 104.804434ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -739,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -756,44 +612,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 749.843062ms - - id: 21 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1.344016606s - - id: 22 + duration: 104.083586ms + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -811,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -828,116 +648,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 125.00473ms - - id: 23 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 153.836736ms - - id: 24 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 127.876079ms - - id: 25 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 18 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.12.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 17 - uncompressed: false - body: '{"enabled":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 145.819825ms - - id: 26 + duration: 137.117151ms + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -955,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -972,8 +684,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.700695ms - - id: 27 + duration: 84.964648ms + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -991,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1008,8 +720,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 132.600071ms - - id: 28 + duration: 111.042961ms + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -1027,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1044,8 +756,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 130.659342ms - - id: 29 + duration: 82.002148ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -1063,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1080,8 +792,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 114.940456ms - - id: 30 + duration: 92.349031ms + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -1099,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -1116,8 +828,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 115.391754ms - - id: 31 + duration: 86.90638ms + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -1135,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1152,8 +864,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 171.794421ms - - id: 32 + duration: 106.33192ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -1171,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -1188,8 +900,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 174.111726ms - - id: 33 + duration: 92.661601ms + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -1207,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1224,8 +936,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 141.207303ms - - id: 34 + duration: 143.385042ms + - id: 26 request: proto: HTTP/1.1 proto_major: 1 @@ -1243,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1260,8 +972,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 167.093245ms - - id: 35 + duration: 102.10609ms + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -1279,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1296,8 +1008,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 140.687033ms - - id: 36 + duration: 125.722841ms + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -1315,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1332,8 +1044,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 128.373025ms - - id: 37 + duration: 131.741491ms + - id: 29 request: proto: HTTP/1.1 proto_major: 1 @@ -1351,7 +1063,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1368,8 +1080,8 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 105.181373ms - - id: 38 + duration: 176.032401ms + - id: 30 request: proto: HTTP/1.1 proto_major: 1 @@ -1387,7 +1099,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.12.0 + - Go-Auth0-SDK/0.14.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1404,4 +1116,4 @@ interactions: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 149.781329ms + duration: 130.41705ms