diff --git a/docs/resources/organization.md b/docs/resources/organization.md index 0ba7dcc85..9bb15b97f 100644 --- a/docs/resources/organization.md +++ b/docs/resources/organization.md @@ -44,7 +44,6 @@ resource "auth0_organization" "my_organization" { ### Optional - `branding` (Block List, Max: 1) Defines how to style the login pages. (see [below for nested schema](#nestedblock--branding)) -- `connections` (Block Set, Deprecated) (see [below for nested schema](#nestedblock--connections)) - `display_name` (String) Friendly name of this organization. - `metadata` (Map of String) Metadata associated with the organization. Maximum of 10 metadata properties allowed. @@ -60,18 +59,6 @@ Optional: - `colors` (Map of String) Color scheme used to customize the login pages. - `logo_url` (String) URL of logo to display on login page. - - -### Nested Schema for `connections` - -Required: - -- `connection_id` (String) The connection ID of the connection to add to the organization. - -Optional: - -- `assign_membership_on_login` (Boolean) When `true`, all users that log in with this connection will be automatically granted membership in the organization. When `false`, users must be granted membership in the organization before logging in with this connection. - ## Import Import is supported using the following syntax: diff --git a/docs/resources/resource_server.md b/docs/resources/resource_server.md index bbf750934..77759a044 100644 --- a/docs/resources/resource_server.md +++ b/docs/resources/resource_server.md @@ -35,11 +35,14 @@ resource "auth0_resource_server" "my_resource_server" { ## Schema +### Required + +- `identifier` (String) Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set. + ### Optional - `allow_offline_access` (Boolean) Indicates whether refresh tokens can be issued for this resource server. - `enforce_policies` (Boolean) Indicates whether authorization polices are enforced. -- `identifier` (String) Unique identifier for the resource server. Used as the audience parameter for authorization calls. Cannot be changed once set. - `name` (String) Friendly name for the resource server. Cannot include `<` or `>` characters. - `options` (Map of String) Used to store additional metadata. - `scopes` (Block Set) List of permissions (scopes) used by this resource server. (see [below for nested schema](#nestedblock--scopes)) diff --git a/go.mod b/go.mod index b83d0de46..624c4a18d 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/auth0/terraform-provider-auth0 go 1.18 require ( - github.com/auth0/go-auth0 v0.10.1 + github.com/auth0/go-auth0 v0.11.0 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 github.com/hashicorp/go-multierror v1.1.1 github.com/hashicorp/terraform-plugin-docs v0.13.0 diff --git a/go.sum b/go.sum index 32fc3caa9..0bd897277 100644 --- a/go.sum +++ b/go.sum @@ -63,8 +63,8 @@ github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj github.com/armon/go-radix v1.0.0 h1:F4z6KzEeeQIMeLFa97iZU6vupzoecKdU5TX24SNppXI= github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs= -github.com/auth0/go-auth0 v0.10.1 h1:UXBWqXRHkjcOn9z7tI7UeEATFzCWV6P8++7ObcW61Ug= -github.com/auth0/go-auth0 v0.10.1/go.mod h1:XtmeQ7vZzyss3AAaLXMpupn28Y1Xj/DCt1IGEJRZ2gY= +github.com/auth0/go-auth0 v0.11.0 h1:mxqbDMe91wjX3hvtPU/T7BdJqjgNQUJ02ZaROm/WRKA= +github.com/auth0/go-auth0 v0.11.0/go.mod h1:XtmeQ7vZzyss3AAaLXMpupn28Y1Xj/DCt1IGEJRZ2gY= github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0 h1:0NmehRCgyk5rljDQLKUO+cRJCnduDyn11+zGZIc9Z48= github.com/aybabtme/iocontrol v0.0.0-20150809002002-ad15bcfc95a0/go.mod h1:6L7zgvqo0idzI7IO8de6ZC051AfXb5ipkIJ7bIA2tGA= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= diff --git a/internal/provider/data_source_auth0_client_test.go b/internal/provider/data_source_auth0_client_test.go index 91e960736..98cf98677 100644 --- a/internal/provider/data_source_auth0_client_test.go +++ b/internal/provider/data_source_auth0_client_test.go @@ -10,17 +10,24 @@ import ( "github.com/auth0/terraform-provider-auth0/internal/template" ) +const testAccGivenAClient = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - {{.testName}}" + app_type = "non_interactive" +} +` + const testAccDataClientConfigByName = ` -%v -data auth0_client test { - name = "Acceptance Test - {{.testName}}" +data "auth0_client" "test" { + depends_on = [ auth0_client.my_client ] + + name = "Acceptance Test - {{.testName}}" } ` const testAccDataClientConfigByID = ` -%v -data auth0_client test { - client_id = auth0_client.my_client.client_id +data "auth0_client" "test" { + client_id = auth0_client.my_client.client_id } ` @@ -32,18 +39,12 @@ func TestAccDataClientByName(t *testing.T) { PreventPostDestroyRefresh: true, Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfig, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), - ), // check that the client got created correctly before using the data source - }, - { - Config: template.ParseTestName(fmt.Sprintf(testAccDataClientConfigByName, testAccClientConfig), t.Name()), + Config: template.ParseTestName(testAccGivenAClient+testAccDataClientConfigByName, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet("data.auth0_client.test", "client_id"), - resource.TestCheckResourceAttr("data.auth0_client.test", "signing_keys.#", "1"), // checks that signing_keys is set, and it includes 1 element + resource.TestCheckResourceAttr("data.auth0_client.test", "signing_keys.#", "1"), resource.TestCheckResourceAttr("data.auth0_client.test", "name", fmt.Sprintf("Acceptance Test - %v", t.Name())), - resource.TestCheckResourceAttr("data.auth0_client.test", "app_type", "non_interactive"), // Arbitrary property selection + resource.TestCheckResourceAttr("data.auth0_client.test", "app_type", "non_interactive"), resource.TestCheckNoResourceAttr("data.auth0_client.test", "client_secret_rotation_trigger"), ), }, @@ -59,17 +60,11 @@ func TestAccDataClientById(t *testing.T) { PreventPostDestroyRefresh: true, Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfig, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %v", t.Name())), - ), // check that the client got created correctly before using the data source - }, - { - Config: template.ParseTestName(fmt.Sprintf(testAccDataClientConfigByID, testAccClientConfig), t.Name()), + Config: template.ParseTestName(testAccGivenAClient+testAccDataClientConfigByID, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttrSet("data.auth0_client.test", "id"), resource.TestCheckResourceAttrSet("data.auth0_client.test", "name"), - resource.TestCheckResourceAttr("data.auth0_client.test", "signing_keys.#", "1"), // checks that signing_keys is set, and it includes 1 element + resource.TestCheckResourceAttr("data.auth0_client.test", "signing_keys.#", "1"), resource.TestCheckNoResourceAttr("data.auth0_client.test", "client_secret_rotation_trigger"), ), }, diff --git a/internal/provider/resource_auth0_action.go b/internal/provider/resource_auth0_action.go index 985fba1d1..dd990e93a 100644 --- a/internal/provider/resource_auth0_action.go +++ b/internal/provider/resource_auth0_action.go @@ -12,6 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newAction() *schema.Resource { @@ -127,9 +129,9 @@ func newAction() *schema.Resource { } func createAction(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - action := expandAction(d) - api := m.(*management.Management) + + action := expandAction(d.GetRawConfig()) if err := api.Action.Create(action); err != nil { return diag.FromErr(err) } @@ -145,6 +147,7 @@ func createAction(ctx context.Context, d *schema.ResourceData, m interface{}) di func readAction(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + action, err := api.Action.Read(d.Id()) if err != nil { if mErr, ok := err.(management.Error); ok { @@ -160,7 +163,7 @@ func readAction(ctx context.Context, d *schema.ResourceData, m interface{}) diag d.Set("name", action.Name), d.Set("supported_triggers", flattenActionTriggers(action.SupportedTriggers)), d.Set("code", action.Code), - d.Set("dependencies", flattenActionDependencies(action.Dependencies)), + d.Set("dependencies", flattenActionDependencies(action.GetDependencies())), d.Set("runtime", action.Runtime), ) @@ -172,8 +175,6 @@ func readAction(ctx context.Context, d *schema.ResourceData, m interface{}) diag } func updateAction(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - action := expandAction(d) - api := m.(*management.Management) diagnostics := preventErasingUnmanagedSecrets(d, api) @@ -181,6 +182,7 @@ func updateAction(ctx context.Context, d *schema.ResourceData, m interface{}) di return diagnostics } + action := expandAction(d.GetRawConfig()) if err := api.Action.Update(d.Id(), action); err != nil { return diag.FromErr(err) } @@ -194,16 +196,16 @@ func updateAction(ctx context.Context, d *schema.ResourceData, m interface{}) di func deleteAction(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.Action.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } + d.SetId("") return nil } @@ -276,12 +278,12 @@ func preventErasingUnmanagedSecrets(d *schema.ResourceData, api *management.Mana oldSecrets, newSecrets := d.GetChange("secrets") allSecrets := append(oldSecrets.([]interface{}), newSecrets.([]interface{})...) - return checkForUnmanagedActionSecrets(allSecrets, preUpdateAction.Secrets) + return checkForUnmanagedActionSecrets(allSecrets, preUpdateAction.GetSecrets()) } func checkForUnmanagedActionSecrets( secretsFromConfig []interface{}, - secretsFromAPI []*management.ActionSecret, + secretsFromAPI []management.ActionSecret, ) diag.Diagnostics { secretKeysInConfigMap := make(map[string]bool, len(secretsFromConfig)) for _, secret := range secretsFromConfig { @@ -308,57 +310,95 @@ func checkForUnmanagedActionSecrets( return diagnostics } -func expandAction(d *schema.ResourceData) *management.Action { +func expandAction(config cty.Value) *management.Action { action := &management.Action{ - Name: String(d, "name"), - Code: String(d, "code"), - Runtime: String(d, "runtime"), + Name: value.String(config.GetAttr("name")), + Code: value.String(config.GetAttr("code")), + Runtime: value.String(config.GetAttr("runtime")), + SupportedTriggers: expandActionTriggers(config.GetAttr("supported_triggers")), + Dependencies: expandActionDependencies(config.GetAttr("dependencies")), + Secrets: expandActionSecrets(config.GetAttr("secrets")), } - List(d, "supported_triggers").Elem(func(d ResourceData) { - action.SupportedTriggers = []*management.ActionTrigger{ - { - ID: String(d, "id"), - Version: String(d, "version"), - }, - } + return action +} + +func expandActionTriggers(triggers cty.Value) []management.ActionTrigger { + if triggers.IsNull() { + return nil + } + + supportedTriggers := make([]management.ActionTrigger, 0) + + triggers.ForEachElement(func(_ cty.Value, triggers cty.Value) (stop bool) { + supportedTriggers = append(supportedTriggers, management.ActionTrigger{ + ID: value.String(triggers.GetAttr("id")), + Version: value.String(triggers.GetAttr("version")), + }) + return stop }) - Set(d, "dependencies").Elem(func(d ResourceData) { - action.Dependencies = append(action.Dependencies, &management.ActionDependency{ - Name: String(d, "name"), - Version: String(d, "version"), + return supportedTriggers +} + +func expandActionDependencies(dependencies cty.Value) *[]management.ActionDependency { + if dependencies.IsNull() { + return nil + } + + actionDependencies := make([]management.ActionDependency, 0) + + dependencies.ForEachElement(func(_ cty.Value, dep cty.Value) (stop bool) { + actionDependencies = append(actionDependencies, management.ActionDependency{ + Name: value.String(dep.GetAttr("name")), + Version: value.String(dep.GetAttr("version")), }) + return stop }) - List(d, "secrets").Elem(func(d ResourceData) { - action.Secrets = append(action.Secrets, &management.ActionSecret{ - Name: String(d, "name"), - Value: String(d, "value"), + return &actionDependencies +} + +func expandActionSecrets(secrets cty.Value) *[]management.ActionSecret { + if secrets.IsNull() { + return nil + } + + actionSecrets := make([]management.ActionSecret, 0) + + secrets.ForEachElement(func(_ cty.Value, secret cty.Value) (stop bool) { + actionSecrets = append(actionSecrets, management.ActionSecret{ + Name: value.String(secret.GetAttr("name")), + Value: value.String(secret.GetAttr("value")), }) + return stop }) - return action + return &actionSecrets } -func flattenActionTriggers(triggers []*management.ActionTrigger) []interface{} { +func flattenActionTriggers(triggers []management.ActionTrigger) []interface{} { var result []interface{} + for _, trigger := range triggers { result = append(result, map[string]interface{}{ - "id": trigger.ID, - "version": trigger.Version, + "id": trigger.GetID(), + "version": trigger.GetVersion(), }) } + return result } -func flattenActionDependencies(dependencies []*management.ActionDependency) []interface{} { +func flattenActionDependencies(dependencies []management.ActionDependency) []interface{} { var result []interface{} + for _, dependency := range dependencies { result = append(result, map[string]interface{}{ - "name": dependency.Name, - "version": dependency.Version, + "name": dependency.GetName(), + "version": dependency.GetVersion(), }) } + return result } diff --git a/internal/provider/resource_auth0_action_test.go b/internal/provider/resource_auth0_action_test.go index 3839aad34..26329e82c 100644 --- a/internal/provider/resource_auth0_action_test.go +++ b/internal/provider/resource_auth0_action_test.go @@ -16,7 +16,7 @@ import ( "github.com/auth0/terraform-provider-auth0/internal/template" ) -const testAccActionConfigCreate = ` +const testAccActionConfigCreateWithOnlyRequiredFields = ` resource auth0_action my_action { name = "Test Action {{.testName}}" code = "exports.onExecutePostLogin = async (event, api) => {};" @@ -25,15 +25,10 @@ resource auth0_action my_action { id = "post-login" version = "v3" } - - secrets { - name = "foo" - value = "111111" - } } ` -const testAccActionConfigUpdate = ` +const testAccActionConfigUpdateAllFields = ` resource auth0_action my_action { name = "Test Action {{.testName}}" code = "exports.onContinuePostLogin = async (event, api) => {};" @@ -52,12 +47,7 @@ resource auth0_action my_action { secrets { name = "foo" - value = "123456" - } - - secrets { - name = "bar" - value = "654321" + value = "111111" } } ` @@ -77,10 +67,41 @@ resource auth0_action my_action { version = "v3" } + secrets { + name = "foo" + value = "123456" + } + + secrets { + name = "bar" + value = "654321" + } + dependencies { name = "auth0" version = "2.42.0" } + + dependencies { + name = "moment" + version = "2.29.4" + } +} +` + +const testAccActionConfigResetToRequiredFields = ` +resource auth0_action my_action { + name = "Test Action {{.testName}}" + code = <<-EOT + exports.onContinuePostLogin = async (event, api) => { + console.log(event) + };" + EOT + + supported_triggers { + id = "post-login" + version = "v3" + } } ` @@ -91,13 +112,11 @@ func TestAccAction(t *testing.T) { ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccActionConfigCreate, t.Name()), + Config: template.ParseTestName(testAccActionConfigCreateWithOnlyRequiredFields, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_action.my_action", "name", fmt.Sprintf("Test Action %s", t.Name())), resource.TestCheckResourceAttr("auth0_action.my_action", "code", "exports.onExecutePostLogin = async (event, api) => {};"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "1"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.name", "foo"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.value", "111111"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "0"), resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.#", "0"), resource.TestCheckResourceAttr("auth0_action.my_action", "runtime", "node16"), resource.TestCheckResourceAttr("auth0_action.my_action", "deploy", "false"), @@ -108,7 +127,7 @@ func TestAccAction(t *testing.T) { ), }, { - Config: template.ParseTestName(testAccActionConfigUpdate, t.Name()), + Config: template.ParseTestName(testAccActionConfigUpdateAllFields, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_action.my_action", "name", fmt.Sprintf("Test Action %s", t.Name())), resource.TestCheckResourceAttr("auth0_action.my_action", "code", "exports.onContinuePostLogin = async (event, api) => {};"), @@ -121,11 +140,9 @@ func TestAccAction(t *testing.T) { resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.#", "1"), resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.0.name", "auth0"), resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.0.version", "2.41.0"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "2"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "1"), resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.name", "foo"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.value", "123456"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.1.name", "bar"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.1.value", "654321"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.value", "111111"), ), }, { @@ -139,32 +156,30 @@ func TestAccAction(t *testing.T) { resource.TestCheckResourceAttr("auth0_action.my_action", "supported_triggers.#", "1"), resource.TestCheckResourceAttr("auth0_action.my_action", "supported_triggers.0.id", "post-login"), resource.TestCheckResourceAttr("auth0_action.my_action", "supported_triggers.0.version", "v3"), - resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.#", "1"), + resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.#", "2"), resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.0.name", "auth0"), resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.0.version", "2.42.0"), - resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "0"), + resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.1.name", "moment"), + resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.1.version", "2.29.4"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "2"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.name", "foo"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.0.value", "123456"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.1.name", "bar"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.1.value", "654321"), ), }, - }, - }) -} - -func TestAccAction_FailedBuild(t *testing.T) { - httpRecorder := recorder.New(t) - - resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(httpRecorder), - Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccActionConfigCreateWithFailedBuild, t.Name()), + Config: template.ParseTestName(testAccActionConfigResetToRequiredFields, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_action.my_action", "name", fmt.Sprintf("Test Action %s", t.Name())), - ), - ExpectError: regexp.MustCompile( - fmt.Sprintf( - `action "Test Action %s" failed to build, check the Auth0 UI for errors`, - t.Name(), - ), + resource.TestCheckResourceAttr("auth0_action.my_action", "code", "exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n"), + resource.TestCheckResourceAttr("auth0_action.my_action", "runtime", "node16"), + resource.TestCheckResourceAttrSet("auth0_action.my_action", "version_id"), + resource.TestCheckResourceAttr("auth0_action.my_action", "supported_triggers.#", "1"), + resource.TestCheckResourceAttr("auth0_action.my_action", "supported_triggers.0.id", "post-login"), + resource.TestCheckResourceAttr("auth0_action.my_action", "supported_triggers.0.version", "v3"), + resource.TestCheckResourceAttr("auth0_action.my_action", "dependencies.#", "0"), + resource.TestCheckResourceAttr("auth0_action.my_action", "secrets.#", "0"), ), }, }, @@ -200,17 +215,39 @@ resource auth0_action my_action { } ` +func TestAccAction_FailedBuild(t *testing.T) { + httpRecorder := recorder.New(t) + + resource.Test(t, resource.TestCase{ + ProviderFactories: testProviders(httpRecorder), + Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccActionConfigCreateWithFailedBuild, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_action.my_action", "name", fmt.Sprintf("Test Action %s", t.Name())), + ), + ExpectError: regexp.MustCompile( + fmt.Sprintf( + `action "Test Action %s" failed to build, check the Auth0 UI for errors`, + t.Name(), + ), + ), + }, + }, + }) +} + func TestCheckForUntrackedActionSecrets(t *testing.T) { var testCases = []struct { name string givenSecretsInConfig []interface{} - givenActionSecrets []*management.ActionSecret + givenActionSecrets []management.ActionSecret expectedDiagnostics diag.Diagnostics }{ { name: "action has no secrets", givenSecretsInConfig: []interface{}{}, - givenActionSecrets: []*management.ActionSecret{}, + givenActionSecrets: []management.ActionSecret{}, expectedDiagnostics: diag.Diagnostics(nil), }, { @@ -220,7 +257,7 @@ func TestCheckForUntrackedActionSecrets(t *testing.T) { "name": "secretName", }, }, - givenActionSecrets: []*management.ActionSecret{ + givenActionSecrets: []management.ActionSecret{ { Name: auth0.String("secretName"), }, @@ -234,7 +271,7 @@ func TestCheckForUntrackedActionSecrets(t *testing.T) { "name": "secretName", }, }, - givenActionSecrets: []*management.ActionSecret{ + givenActionSecrets: []management.ActionSecret{ { Name: auth0.String("secretName"), }, diff --git a/internal/provider/resource_auth0_attack_protection.go b/internal/provider/resource_auth0_attack_protection.go index 739679684..4a7de599a 100644 --- a/internal/provider/resource_auth0_attack_protection.go +++ b/internal/provider/resource_auth0_attack_protection.go @@ -3,13 +3,15 @@ package provider import ( "context" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newAttackProtection() *schema.Resource { @@ -301,20 +303,22 @@ func updateAttackProtection(ctx context.Context, d *schema.ResourceData, m inter func deleteAttackProtection(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + enabled := false + result := multierror.Append( api.AttackProtection.UpdateBreachedPasswordDetection( &management.BreachedPasswordDetection{ - Enabled: auth0.Bool(false), + Enabled: &enabled, }, ), api.AttackProtection.UpdateBruteForceProtection( &management.BruteForceProtection{ - Enabled: auth0.Bool(false), + Enabled: &enabled, }, ), api.AttackProtection.UpdateSuspiciousIPThrottling( &management.SuspiciousIPThrottling{ - Enabled: auth0.Bool(false), + Enabled: &enabled, }, ), ) @@ -323,26 +327,15 @@ func deleteAttackProtection(ctx context.Context, d *schema.ResourceData, m inter } d.SetId("") - return nil } func flattenSuspiciousIPThrottling(ipt *management.SuspiciousIPThrottling) []interface{} { - var allowList []interface{} - for _, ip := range ipt.GetAllowList() { - allowList = append(allowList, ip) - } - - var shields []interface{} - for _, shield := range ipt.GetShields() { - shields = append(shields, shield) - } - return []interface{}{ map[string]interface{}{ "enabled": ipt.GetEnabled(), - "allowlist": allowList, - "shields": shields, + "allowlist": ipt.GetAllowList(), + "shields": ipt.GetShields(), "pre_login": []interface{}{ map[string]int{ "max_attempts": ipt.GetStage().GetPreLogin().GetMaxAttempts(), @@ -360,155 +353,146 @@ func flattenSuspiciousIPThrottling(ipt *management.SuspiciousIPThrottling) []int } func flattenBruteForceProtection(bfp *management.BruteForceProtection) []interface{} { - var allowList []interface{} - for _, ip := range bfp.GetAllowList() { - allowList = append(allowList, ip) - } - - var shields []interface{} - for _, shield := range bfp.GetShields() { - shields = append(shields, shield) - } - return []interface{}{ map[string]interface{}{ "enabled": bfp.GetEnabled(), "mode": bfp.GetMode(), "max_attempts": bfp.GetMaxAttempts(), - "shields": shields, - "allowlist": allowList, + "shields": bfp.GetShields(), + "allowlist": bfp.GetAllowList(), }, } } func flattenBreachedPasswordProtection(bpd *management.BreachedPasswordDetection) []interface{} { - var adminNotificationFrequency []interface{} - for _, frequency := range bpd.GetAdminNotificationFrequency() { - adminNotificationFrequency = append(adminNotificationFrequency, frequency) - } - - var shields []interface{} - for _, shield := range bpd.GetShields() { - shields = append(shields, shield) - } - return []interface{}{ map[string]interface{}{ "enabled": bpd.GetEnabled(), "method": bpd.GetMethod(), - "admin_notification_frequency": adminNotificationFrequency, - "shields": shields, + "admin_notification_frequency": bpd.GetAdminNotificationFrequency(), + "shields": bpd.GetShields(), }, } } func expandSuspiciousIPThrottling(d *schema.ResourceData) *management.SuspiciousIPThrottling { - var ipt *management.SuspiciousIPThrottling - - List(d, "suspicious_ip_throttling", IsNewResource(), HasChange()).Elem(func(d ResourceData) { - ipt = &management.SuspiciousIPThrottling{ - Enabled: Bool(d, "enabled"), - } + if !d.HasChange("suspicious_ip_throttling") { + return nil + } - var shields []string - for _, shield := range Set(d, "shields", IsNewResource(), HasChange()).List() { - shields = append(shields, shield.(string)) - } - if len(shields) > 0 { - ipt.Shields = &shields - } + var iptConfig = d.GetRawConfig().GetAttr("suspicious_ip_throttling") + if iptConfig.IsNull() { + return nil + } - var allowList []string - for _, ip := range Set(d, "allowlist", IsNewResource(), HasChange()).List() { - allowList = append(allowList, ip.(string)) - } - if len(allowList) > 0 { - ipt.AllowList = &allowList - } + var ipt *management.SuspiciousIPThrottling - List(d, "pre_login", IsNewResource(), HasChange()).Elem(func(d ResourceData) { - ipt.Stage = &management.Stage{ - PreLogin: &management.PreLogin{ - MaxAttempts: Int(d, "max_attempts"), - Rate: Int(d, "rate"), - }, + iptConfig.ForEachElement( + func(_ cty.Value, ipThrottling cty.Value) (stop bool) { + ipt = &management.SuspiciousIPThrottling{ + Enabled: value.Bool(ipThrottling.GetAttr("enabled")), + Shields: value.Strings(ipThrottling.GetAttr("shields")), + AllowList: value.Strings(ipThrottling.GetAttr("allowlist")), } - }) - List(d, "pre_user_registration", IsNewResource(), HasChange()).Elem(func(d ResourceData) { - preUserRegistration := &management.PreUserRegistration{ - MaxAttempts: Int(d, "max_attempts"), - Rate: Int(d, "rate"), + pl := ipThrottling.GetAttr("pre_login") + if !pl.IsNull() { + pl.ForEachElement( + func(_ cty.Value, preLogin cty.Value) (stop bool) { + ipt.Stage = &management.Stage{ + PreLogin: &management.PreLogin{ + MaxAttempts: value.Int(preLogin.GetAttr("max_attempts")), + Rate: value.Int(preLogin.GetAttr("rate")), + }, + } + + return stop + }, + ) } - if ipt.Stage != nil { - ipt.Stage.PreUserRegistration = preUserRegistration - } else { - ipt.Stage = &management.Stage{ - PreUserRegistration: preUserRegistration, - } + pur := ipThrottling.GetAttr("pre_user_registration") + if !pur.IsNull() { + pur.ForEachElement( + func(_ cty.Value, preUserReg cty.Value) (stop bool) { + preUserRegistration := &management.PreUserRegistration{ + MaxAttempts: value.Int(preUserReg.GetAttr("max_attempts")), + Rate: value.Int(preUserReg.GetAttr("rate")), + } + + if ipt.Stage != nil { + ipt.Stage.PreUserRegistration = preUserRegistration + } else { + ipt.Stage = &management.Stage{ + PreUserRegistration: preUserRegistration, + } + } + + return stop + }, + ) } - }) - }) + + return stop + }, + ) return ipt } func expandBruteForceProtection(d *schema.ResourceData) *management.BruteForceProtection { - var bfp *management.BruteForceProtection + if !d.HasChange("brute_force_protection") { + return nil + } - List(d, "brute_force_protection", IsNewResource(), HasChange()).Elem(func(d ResourceData) { - bfp = &management.BruteForceProtection{ - Enabled: Bool(d, "enabled"), - Mode: String(d, "mode"), - MaxAttempts: Int(d, "max_attempts"), - } + bfpConfig := d.GetRawConfig().GetAttr("brute_force_protection") + if bfpConfig.IsNull() { + return nil + } - var shields []string - for _, shield := range Set(d, "shields", IsNewResource(), HasChange()).List() { - shields = append(shields, shield.(string)) - } - if len(shields) > 0 { - bfp.Shields = &shields - } + var bfp *management.BruteForceProtection - var allowList []string - for _, ip := range Set(d, "allowlist", IsNewResource(), HasChange()).List() { - allowList = append(allowList, ip.(string)) - } - if len(allowList) > 0 { - bfp.AllowList = &allowList - } - }) + bfpConfig.ForEachElement( + func(_ cty.Value, bruteForce cty.Value) (stop bool) { + bfp = &management.BruteForceProtection{ + Enabled: value.Bool(bruteForce.GetAttr("enabled")), + Mode: value.String(bruteForce.GetAttr("mode")), + MaxAttempts: value.Int(bruteForce.GetAttr("max_attempts")), + Shields: value.Strings(bruteForce.GetAttr("shields")), + AllowList: value.Strings(bruteForce.GetAttr("allowlist")), + } + + return stop + }, + ) return bfp } func expandBreachedPasswordDetection(d *schema.ResourceData) *management.BreachedPasswordDetection { - var bpd *management.BreachedPasswordDetection + if !d.HasChange("breached_password_detection") { + return nil + } - List(d, "breached_password_detection", IsNewResource(), HasChange()).Elem(func(d ResourceData) { - bpd = &management.BreachedPasswordDetection{ - Enabled: Bool(d, "enabled"), - Method: String(d, "method"), - } + bpdConfig := d.GetRawConfig().GetAttr("breached_password_detection") + if bpdConfig.IsNull() { + return nil + } - var shields []string - for _, shield := range Set(d, "shields", IsNewResource(), HasChange()).List() { - shields = append(shields, shield.(string)) - } - if len(shields) > 0 { - bpd.Shields = &shields - } + var bpd *management.BreachedPasswordDetection - var adminNotificationFrequency []string - for _, frequency := range Set(d, "admin_notification_frequency", IsNewResource(), HasChange()).List() { - adminNotificationFrequency = append(adminNotificationFrequency, frequency.(string)) - } - if len(adminNotificationFrequency) > 0 { - bpd.AdminNotificationFrequency = &adminNotificationFrequency - } - }) + bpdConfig.ForEachElement( + func(_ cty.Value, breach cty.Value) (stop bool) { + bpd = &management.BreachedPasswordDetection{ + Enabled: value.Bool(breach.GetAttr("enabled")), + Method: value.String(breach.GetAttr("method")), + Shields: value.Strings(breach.GetAttr("shields")), + AdminNotificationFrequency: value.Strings(breach.GetAttr("admin_notification_frequency")), + } + + return stop + }, + ) return bpd } diff --git a/internal/provider/resource_auth0_attack_protection_test.go b/internal/provider/resource_auth0_attack_protection_test.go index 3fcd99eb9..e05f4333b 100644 --- a/internal/provider/resource_auth0_attack_protection_test.go +++ b/internal/provider/resource_auth0_attack_protection_test.go @@ -31,7 +31,7 @@ const testAccBreachedPasswordDetectionUpdateFull = ` resource "auth0_attack_protection" "my_protection" { breached_password_detection { enabled = true - shields = ["user_notification","block", "admin_notification"] + shields = ["user_notification", "block", "admin_notification"] admin_notification_frequency = ["daily", "monthly", "immediately", "weekly"] method = "standard" } diff --git a/internal/provider/resource_auth0_branding.go b/internal/provider/resource_auth0_branding.go index c174aea5d..b6c17b6a0 100644 --- a/internal/provider/resource_auth0_branding.go +++ b/internal/provider/resource_auth0_branding.go @@ -2,13 +2,15 @@ package provider import ( "context" - "net/http" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newBranding() *schema.Resource { @@ -100,26 +102,21 @@ func createBranding(ctx context.Context, d *schema.ResourceData, m interface{}) func readBranding(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + branding, err := api.Branding.Read() if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } - } return diag.FromErr(err) } result := multierror.Append( - d.Set("favicon_url", branding.FaviconURL), - d.Set("logo_url", branding.LogoURL), + d.Set("favicon_url", branding.GetFaviconURL()), + d.Set("logo_url", branding.GetLogoURL()), ) if _, ok := d.GetOk("colors"); ok { - result = multierror.Append(result, d.Set("colors", flattenBrandingColors(branding.Colors))) + result = multierror.Append(result, d.Set("colors", flattenBrandingColors(branding.GetColors()))) } if _, ok := d.GetOk("font"); ok { - result = multierror.Append(result, d.Set("font", flattenBrandingFont(branding.Font))) + result = multierror.Append(result, d.Set("font", flattenBrandingFont(branding.GetFont()))) } tenant, err := api.Tenant.Read() @@ -127,9 +124,8 @@ func readBranding(ctx context.Context, d *schema.ResourceData, m interface{}) di return diag.FromErr(err) } - if tenant.Flags.EnableCustomDomainInEmails != nil && *tenant.Flags.EnableCustomDomainInEmails { - if err := setUniversalLogin(d, m); err != nil { - d.SetId("") + if tenant.Flags.GetEnableCustomDomainInEmails() { + if err := setUniversalLogin(d, api); err != nil { return diag.FromErr(err) } } @@ -140,13 +136,12 @@ func readBranding(ctx context.Context, d *schema.ResourceData, m interface{}) di func updateBranding(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) - branding := buildBranding(d) + branding := expandBranding(d.GetRawConfig()) if err := api.Branding.Update(branding); err != nil { return diag.FromErr(err) } - universalLogin := buildBrandingUniversalLogin(d) - if universalLogin.GetBody() != "" { + if universalLogin := expandBrandingUniversalLogin(d.GetRawConfig()); universalLogin.GetBody() != "" { if err := api.Branding.SetUniversalLogin(universalLogin); err != nil { return diag.FromErr(err) } @@ -157,66 +152,82 @@ func updateBranding(ctx context.Context, d *schema.ResourceData, m interface{}) func deleteBranding(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + tenant, err := api.Tenant.Read() if err != nil { return diag.FromErr(err) } - if tenant.Flags.EnableCustomDomainInEmails != nil && *tenant.Flags.EnableCustomDomainInEmails { + if tenant.Flags.GetEnableCustomDomainInEmails() { if err = api.Branding.DeleteUniversalLogin(); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } - } + return diag.FromErr(err) } } - return diag.FromErr(err) + d.SetId("") + return nil } -func buildBranding(d *schema.ResourceData) *management.Branding { +func expandBranding(config cty.Value) *management.Branding { branding := &management.Branding{ - FaviconURL: String(d, "favicon_url"), - LogoURL: String(d, "logo_url"), + FaviconURL: value.String(config.GetAttr("favicon_url")), + LogoURL: value.String(config.GetAttr("logo_url")), + Colors: expandBrandingColors(config.GetAttr("colors")), + Font: expandBrandingFont(config.GetAttr("font")), } - List(d, "colors").Elem(func(d ResourceData) { - branding.Colors = &management.BrandingColors{ - PageBackground: String(d, "page_background"), - Primary: String(d, "primary"), - } + return branding +} + +func expandBrandingColors(config cty.Value) *management.BrandingColors { + var brandingColors management.BrandingColors + + config.ForEachElement(func(_ cty.Value, colors cty.Value) (stop bool) { + brandingColors.PageBackground = value.String(colors.GetAttr("page_background")) + brandingColors.Primary = value.String(colors.GetAttr("primary")) + return stop }) - List(d, "font").Elem(func(d ResourceData) { - branding.Font = &management.BrandingFont{ - URL: String(d, "url"), - } + if brandingColors == (management.BrandingColors{}) { + return nil + } + + return &brandingColors +} + +func expandBrandingFont(config cty.Value) *management.BrandingFont { + var brandingFont management.BrandingFont + + config.ForEachElement(func(_ cty.Value, font cty.Value) (stop bool) { + brandingFont.URL = value.String(font.GetAttr("url")) + return stop }) - return branding + if brandingFont == (management.BrandingFont{}) { + return nil + } + + return &brandingFont } -func buildBrandingUniversalLogin(d *schema.ResourceData) *management.BrandingUniversalLogin { - universalLogin := &management.BrandingUniversalLogin{} +func expandBrandingUniversalLogin(config cty.Value) *management.BrandingUniversalLogin { + var universalLogin management.BrandingUniversalLogin - List(d, "universal_login").Elem(func(d ResourceData) { - universalLogin.Body = String(d, "body") + config.GetAttr("universal_login").ForEachElement(func(_ cty.Value, ul cty.Value) (stop bool) { + universalLogin.Body = value.String(ul.GetAttr("body")) + return stop }) - return universalLogin + if universalLogin == (management.BrandingUniversalLogin{}) { + return nil + } + + return &universalLogin } -func setUniversalLogin(d *schema.ResourceData, m interface{}) error { - api := m.(*management.Management) +func setUniversalLogin(d *schema.ResourceData, api *management.Management) error { universalLogin, err := api.Branding.UniversalLogin() if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - return nil - } - } return err } @@ -229,8 +240,8 @@ func flattenBrandingColors(brandingColors *management.BrandingColors) []interfac } return []interface{}{ map[string]interface{}{ - "page_background": brandingColors.PageBackground, - "primary": brandingColors.Primary, + "page_background": brandingColors.GetPageBackground(), + "primary": brandingColors.GetPrimary(), }, } } @@ -241,7 +252,7 @@ func flattenBrandingUniversalLogin(brandingUniversalLogin *management.BrandingUn } return []interface{}{ map[string]interface{}{ - "body": brandingUniversalLogin.Body, + "body": brandingUniversalLogin.GetBody(), }, } } @@ -252,7 +263,7 @@ func flattenBrandingFont(brandingFont *management.BrandingFont) []interface{} { } return []interface{}{ map[string]interface{}{ - "url": brandingFont.URL, + "url": brandingFont.GetURL(), }, } } diff --git a/internal/provider/resource_auth0_branding_test.go b/internal/provider/resource_auth0_branding_test.go index 3998b50ba..212115bdb 100644 --- a/internal/provider/resource_auth0_branding_test.go +++ b/internal/provider/resource_auth0_branding_test.go @@ -8,6 +8,62 @@ import ( "github.com/auth0/terraform-provider-auth0/internal/recorder" ) +const testAccBrandingConfigCreate = ` +resource "auth0_branding" "my_brand" { + logo_url = "https://mycompany.org/v1/logo.png" + favicon_url = "https://mycompany.org/favicon.ico" +} +` + +const testAccBrandingConfigUpdateAllFields = ` +resource "auth0_branding" "my_brand" { + logo_url = "https://mycompany.org/v2/logo.png" + favicon_url = "https://mycompany.org/favicon.ico" + + colors { + primary = "#0059d6" + page_background = "#000000" + } + + font { + url = "https://mycompany.org/font/myfont.ttf" + } + + universal_login { + body = "{%- auth0:head -%}{%- auth0:widget -%}" + } +} +` + +const testAccBrandingConfigUpdateAgain = ` +resource "auth0_branding" "my_brand" { + logo_url = "https://mycompany.org/v3/logo.png" + favicon_url = "https://mycompany.org/favicon.ico" + + colors { + primary = "#0059d6" + } + + font { + url = "https://mycompany.org/font/myfont.ttf" + } + + universal_login { + # Setting this to an empty string should + # not trigger any API call, so the value + # stays the same as the previous scenario. + body = "" + } +} +` + +const testAccBrandingConfigReset = ` +resource "auth0_branding" "my_brand" { + logo_url = "https://mycompany.org/v1/logo.png" + favicon_url = "https://mycompany.org/favicon.ico" +} +` + func TestAccBranding(t *testing.T) { httpRecorder := recorder.New(t) @@ -19,59 +75,49 @@ func TestAccBranding(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_branding.my_brand", "logo_url", "https://mycompany.org/v1/logo.png"), resource.TestCheckResourceAttr("auth0_branding.my_brand", "favicon_url", "https://mycompany.org/favicon.ico"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.#", "0"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "font.#", "0"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "universal_login.#", "0"), ), }, { - Config: testAccBrandingConfigUpdateColors, + Config: testAccBrandingConfigUpdateAllFields, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_branding.my_brand", "logo_url", "https://mycompany.org/v1/logo.png"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "logo_url", "https://mycompany.org/v2/logo.png"), resource.TestCheckResourceAttr("auth0_branding.my_brand", "favicon_url", "https://mycompany.org/favicon.ico"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.#", "1"), resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.0.primary", "#0059d6"), resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.0.page_background", "#000000"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "font.#", "1"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "font.0.url", "https://mycompany.org/font/myfont.ttf"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "universal_login.#", "1"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "universal_login.0.body", "{%- auth0:head -%}{%- auth0:widget -%}"), ), }, { - Config: testAccBrandingConfigUpdateFull, + Config: testAccBrandingConfigUpdateAgain, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_branding.my_brand", "logo_url", "https://mycompany.org/v2/logo.png"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "logo_url", "https://mycompany.org/v3/logo.png"), resource.TestCheckResourceAttr("auth0_branding.my_brand", "favicon_url", "https://mycompany.org/favicon.ico"), - resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.0.primary", "#ffa629"), - resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.0.page_background", "#ffffff"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.#", "1"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.0.primary", "#0059d6"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.0.page_background", "#000000"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "font.#", "1"), resource.TestCheckResourceAttr("auth0_branding.my_brand", "font.0.url", "https://mycompany.org/font/myfont.ttf"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "universal_login.#", "1"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "universal_login.0.body", "{%- auth0:head -%}{%- auth0:widget -%}"), + ), + }, + { + Config: testAccBrandingConfigReset, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_branding.my_brand", "logo_url", "https://mycompany.org/v1/logo.png"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "favicon_url", "https://mycompany.org/favicon.ico"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "colors.#", "0"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "font.#", "0"), + resource.TestCheckResourceAttr("auth0_branding.my_brand", "universal_login.#", "0"), ), }, }, }) } - -const testAccBrandingConfigCreate = ` -resource "auth0_branding" "my_brand" { - logo_url = "https://mycompany.org/v1/logo.png" - favicon_url = "https://mycompany.org/favicon.ico" -} -` - -const testAccBrandingConfigUpdateColors = ` -resource "auth0_branding" "my_brand" { - logo_url = "https://mycompany.org/v1/logo.png" - favicon_url = "https://mycompany.org/favicon.ico" - colors { - primary = "#0059d6" - page_background = "#000000" - } -} -` - -const testAccBrandingConfigUpdateFull = ` -resource "auth0_branding" "my_brand" { - logo_url = "https://mycompany.org/v2/logo.png" - favicon_url = "https://mycompany.org/favicon.ico" - colors { - primary = "#ffa629" - page_background = "#ffffff" - } - font { - url = "https://mycompany.org/font/myfont.ttf" - } -} -` diff --git a/internal/provider/resource_auth0_branding_theme.go b/internal/provider/resource_auth0_branding_theme.go index e263698a2..46e104595 100644 --- a/internal/provider/resource_auth0_branding_theme.go +++ b/internal/provider/resource_auth0_branding_theme.go @@ -5,9 +5,12 @@ import ( "net/http" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newBrandingTheme() *schema.Resource { @@ -455,114 +458,96 @@ func deleteBrandingTheme(ctx context.Context, data *schema.ResourceData, meta in } func expandBrandingTheme(data *schema.ResourceData) management.BrandingTheme { + config := data.GetRawConfig() + brandingTheme := management.BrandingTheme{ - DisplayName: String(data, "display_name"), + DisplayName: value.String(config.GetAttr("display_name")), } - List(data, "borders").Elem(func(d ResourceData) { - brandingTheme.Borders = management.BrandingThemeBorders{ - ButtonBorderRadius: d.Get("button_border_radius").(int), - ButtonBorderWeight: d.Get("button_border_weight").(int), - ButtonsStyle: d.Get("buttons_style").(string), - InputBorderRadius: d.Get("input_border_radius").(int), - InputBorderWeight: d.Get("input_border_weight").(int), - InputsStyle: d.Get("inputs_style").(string), - ShowWidgetShadow: d.Get("show_widget_shadow").(bool), - WidgetBorderWeight: d.Get("widget_border_weight").(int), - WidgetCornerRadius: d.Get("widget_corner_radius").(int), - } - }) - - List(data, "colors").Elem(func(d ResourceData) { - brandingTheme.Colors = management.BrandingThemeColors{ - BaseFocusColor: String(d, "base_focus_color"), - BaseHoverColor: String(d, "base_hover_color"), - BodyText: d.Get("body_text").(string), - Error: d.Get("error").(string), - Header: d.Get("header").(string), - Icons: d.Get("icons").(string), - InputBackground: d.Get("input_background").(string), - InputBorder: d.Get("input_border").(string), - InputFilledText: d.Get("input_filled_text").(string), - InputLabelsPlaceholders: d.Get("input_labels_placeholders").(string), - LinksFocusedComponents: d.Get("links_focused_components").(string), - PrimaryButton: d.Get("primary_button").(string), - PrimaryButtonLabel: d.Get("primary_button_label").(string), - SecondaryButtonBorder: d.Get("secondary_button_border").(string), - SecondaryButtonLabel: d.Get("secondary_button_label").(string), - Success: d.Get("success").(string), - WidgetBackground: d.Get("widget_background").(string), - WidgetBorder: d.Get("widget_border").(string), - } - }) + brandingTheme.Borders = management.BrandingThemeBorders{ + ButtonBorderRadius: data.Get("borders.0.button_border_radius").(int), + ButtonBorderWeight: data.Get("borders.0.button_border_weight").(int), + ButtonsStyle: data.Get("borders.0.buttons_style").(string), + InputBorderRadius: data.Get("borders.0.input_border_radius").(int), + InputBorderWeight: data.Get("borders.0.input_border_weight").(int), + InputsStyle: data.Get("borders.0.inputs_style").(string), + ShowWidgetShadow: data.Get("borders.0.show_widget_shadow").(bool), + WidgetBorderWeight: data.Get("borders.0.widget_border_weight").(int), + WidgetCornerRadius: data.Get("borders.0.widget_corner_radius").(int), + } - List(data, "fonts").Elem(func(d ResourceData) { - brandingTheme.Fonts = management.BrandingThemeFonts{ - FontURL: d.Get("font_url").(string), - LinksStyle: d.Get("links_style").(string), - ReferenceTextSize: d.Get("reference_text_size").(int), - } + colorsConfig := config.GetAttr("colors").Index(cty.NumberIntVal(0)) + + brandingTheme.Colors = management.BrandingThemeColors{ + BaseFocusColor: value.String(colorsConfig.GetAttr("base_focus_color")), + BaseHoverColor: value.String(colorsConfig.GetAttr("base_hover_color")), + BodyText: data.Get("colors.0.body_text").(string), + Error: data.Get("colors.0.error").(string), + Header: data.Get("colors.0.header").(string), + Icons: data.Get("colors.0.icons").(string), + InputBackground: data.Get("colors.0.input_background").(string), + InputBorder: data.Get("colors.0.input_border").(string), + InputFilledText: data.Get("colors.0.input_filled_text").(string), + InputLabelsPlaceholders: data.Get("colors.0.input_labels_placeholders").(string), + LinksFocusedComponents: data.Get("colors.0.links_focused_components").(string), + PrimaryButton: data.Get("colors.0.primary_button").(string), + PrimaryButtonLabel: data.Get("colors.0.primary_button_label").(string), + SecondaryButtonBorder: data.Get("colors.0.secondary_button_border").(string), + SecondaryButtonLabel: data.Get("colors.0.secondary_button_label").(string), + Success: data.Get("colors.0.success").(string), + WidgetBackground: data.Get("colors.0.widget_background").(string), + WidgetBorder: data.Get("colors.0.widget_border").(string), + } - List(d, "body_text").Elem(func(d ResourceData) { - brandingTheme.Fonts.BodyText = management.BrandingThemeText{ - Bold: d.Get("bold").(bool), - Size: d.Get("size").(int), - } - }) + brandingTheme.Fonts = management.BrandingThemeFonts{ + FontURL: data.Get("fonts.0.font_url").(string), + LinksStyle: data.Get("fonts.0.links_style").(string), + ReferenceTextSize: data.Get("fonts.0.reference_text_size").(int), + } - List(d, "buttons_text").Elem(func(d ResourceData) { - brandingTheme.Fonts.ButtonsText = management.BrandingThemeText{ - Bold: d.Get("bold").(bool), - Size: d.Get("size").(int), - } - }) + brandingTheme.Fonts.BodyText = management.BrandingThemeText{ + Bold: data.Get("fonts.0.body_text.0.bold").(bool), + Size: data.Get("fonts.0.body_text.0.size").(int), + } - List(d, "input_labels").Elem(func(d ResourceData) { - brandingTheme.Fonts.InputLabels = management.BrandingThemeText{ - Bold: d.Get("bold").(bool), - Size: d.Get("size").(int), - } - }) + brandingTheme.Fonts.ButtonsText = management.BrandingThemeText{ + Bold: data.Get("fonts.0.buttons_text.0.bold").(bool), + Size: data.Get("fonts.0.buttons_text.0.size").(int), + } - List(d, "links").Elem(func(d ResourceData) { - brandingTheme.Fonts.Links = management.BrandingThemeText{ - Bold: d.Get("bold").(bool), - Size: d.Get("size").(int), - } - }) + brandingTheme.Fonts.InputLabels = management.BrandingThemeText{ + Bold: data.Get("fonts.0.input_labels.0.bold").(bool), + Size: data.Get("fonts.0.input_labels.0.size").(int), + } - List(d, "subtitle").Elem(func(d ResourceData) { - brandingTheme.Fonts.Subtitle = management.BrandingThemeText{ - Bold: d.Get("bold").(bool), - Size: d.Get("size").(int), - } - }) + brandingTheme.Fonts.Links = management.BrandingThemeText{ + Bold: data.Get("fonts.0.links.0.bold").(bool), + Size: data.Get("fonts.0.links.0.size").(int), + } - List(d, "title").Elem(func(d ResourceData) { - brandingTheme.Fonts.Title = management.BrandingThemeText{ - Bold: d.Get("bold").(bool), - Size: d.Get("size").(int), - } - }) - }) - - List(data, "page_background").Elem(func(d ResourceData) { - brandingTheme.PageBackground = management.BrandingThemePageBackground{ - BackgroundColor: d.Get("background_color").(string), - BackgroundImageURL: d.Get("background_image_url").(string), - PageLayout: d.Get("page_layout").(string), - } - }) - - List(data, "widget").Elem(func(d ResourceData) { - brandingTheme.Widget = management.BrandingThemeWidget{ - HeaderTextAlignment: d.Get("header_text_alignment").(string), - LogoHeight: d.Get("logo_height").(int), - LogoPosition: d.Get("logo_position").(string), - LogoURL: d.Get("logo_url").(string), - SocialButtonsLayout: d.Get("social_buttons_layout").(string), - } - }) + brandingTheme.Fonts.Subtitle = management.BrandingThemeText{ + Bold: data.Get("fonts.0.subtitle.0.bold").(bool), + Size: data.Get("fonts.0.subtitle.0.size").(int), + } + + brandingTheme.Fonts.Title = management.BrandingThemeText{ + Bold: data.Get("fonts.0.title.0.bold").(bool), + Size: data.Get("fonts.0.title.0.size").(int), + } + + brandingTheme.PageBackground = management.BrandingThemePageBackground{ + BackgroundColor: data.Get("page_background.0.background_color").(string), + BackgroundImageURL: data.Get("page_background.0.background_image_url").(string), + PageLayout: data.Get("page_background.0.page_layout").(string), + } + + brandingTheme.Widget = management.BrandingThemeWidget{ + HeaderTextAlignment: data.Get("widget.0.header_text_alignment").(string), + LogoHeight: data.Get("widget.0.logo_height").(int), + LogoPosition: data.Get("widget.0.logo_position").(string), + LogoURL: data.Get("widget.0.logo_url").(string), + SocialButtonsLayout: data.Get("widget.0.social_buttons_layout").(string), + } return brandingTheme } diff --git a/internal/provider/resource_auth0_branding_theme_test.go b/internal/provider/resource_auth0_branding_theme_test.go index 4d10796cf..0bf49d375 100644 --- a/internal/provider/resource_auth0_branding_theme_test.go +++ b/internal/provider/resource_auth0_branding_theme_test.go @@ -95,6 +95,8 @@ resource "auth0_branding_theme" "my_theme" { const testAccBrandingThemeUpdate = ` resource "auth0_branding_theme" "my_theme" { + display_name = "My branding" + borders { button_border_radius = 2 button_border_weight = 2 @@ -108,6 +110,9 @@ resource "auth0_branding_theme" "my_theme" { } colors { + base_focus_color = "#BBBBBB" + base_hover_color = "#CCCCCC" + body_text = "#00FF00" error = "#00FF00" header = "#00FF00" @@ -250,6 +255,7 @@ func TestAccBrandingTheme(t *testing.T) { { Config: testAccBrandingThemeUpdate, Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "display_name", "My branding"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "borders.#", "1"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "borders.0.button_border_radius", "2"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "borders.0.button_border_weight", "2"), @@ -261,6 +267,8 @@ func TestAccBrandingTheme(t *testing.T) { resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "borders.0.widget_border_weight", "2"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "borders.0.widget_corner_radius", "2"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "colors.#", "1"), + resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "colors.0.base_focus_color", "#BBBBBB"), + resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "colors.0.base_hover_color", "#CCCCCC"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "colors.0.body_text", "#00FF00"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "colors.0.error", "#00FF00"), resource.TestCheckResourceAttr("auth0_branding_theme.my_theme", "colors.0.header", "#00FF00"), diff --git a/internal/provider/resource_auth0_client.go b/internal/provider/resource_auth0_client.go index 9b615b8b1..89c02ac2e 100644 --- a/internal/provider/resource_auth0_client.go +++ b/internal/provider/resource_auth0_client.go @@ -3,9 +3,7 @@ package provider import ( "context" "net/http" - "strconv" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -239,6 +237,7 @@ func newClient() *schema.Resource { "addons": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Addons enabled for this client and their associated configurations.", Elem: &schema.Resource{ @@ -322,7 +321,6 @@ func newClient() *schema.Resource { "samlp": { Type: schema.TypeList, MaxItems: 1, - Computed: true, Optional: true, Description: "Configuration settings for a SAML add-on.", Elem: &schema.Resource{ @@ -539,6 +537,7 @@ func newClient() *schema.Resource { "android": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for Android native apps.", Elem: &schema.Resource{ @@ -566,6 +565,7 @@ func newClient() *schema.Resource { "ios": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Description: "Configuration settings for i0S native apps.", Elem: &schema.Resource{ @@ -613,6 +613,7 @@ func newClient() *schema.Resource { "apple": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -626,6 +627,7 @@ func newClient() *schema.Resource { "facebook": { Type: schema.TypeList, Optional: true, + Computed: true, MaxItems: 1, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -725,58 +727,57 @@ func createClient(ctx context.Context, d *schema.ResourceData, m interface{}) di return diag.FromErr(err) } - d.SetId(auth0.StringValue(client.ClientID)) + d.SetId(client.GetClientID()) return readClient(ctx, d, m) } func readClient(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + client, err := api.Client.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } result := multierror.Append( - d.Set("client_id", client.ClientID), - d.Set("client_secret", client.ClientSecret), - d.Set("name", client.Name), - d.Set("description", client.Description), - d.Set("app_type", client.AppType), - d.Set("logo_uri", client.LogoURI), - d.Set("is_first_party", client.IsFirstParty), - d.Set("is_token_endpoint_ip_header_trusted", client.IsTokenEndpointIPHeaderTrusted), - d.Set("oidc_conformant", client.OIDCConformant), - d.Set("callbacks", client.Callbacks), - d.Set("allowed_logout_urls", client.AllowedLogoutURLs), - d.Set("allowed_origins", client.AllowedOrigins), - d.Set("allowed_clients", client.AllowedClients), - d.Set("grant_types", client.GrantTypes), - d.Set("organization_usage", client.OrganizationUsage), - d.Set("organization_require_behavior", client.OrganizationRequireBehavior), - d.Set("web_origins", client.WebOrigins), - d.Set("sso", client.SSO), - d.Set("sso_disabled", client.SSODisabled), - d.Set("cross_origin_auth", client.CrossOriginAuth), - d.Set("cross_origin_loc", client.CrossOriginLocation), - d.Set("custom_login_page_on", client.CustomLoginPageOn), - d.Set("custom_login_page", client.CustomLoginPage), - d.Set("form_template", client.FormTemplate), - d.Set("token_endpoint_auth_method", client.TokenEndpointAuthMethod), - d.Set("native_social_login", flattenCustomSocialConfiguration(client.NativeSocialLogin)), - d.Set("jwt_configuration", flattenClientJwtConfiguration(client.JWTConfiguration)), - d.Set("refresh_token", flattenClientRefreshTokenConfiguration(client.RefreshToken)), - d.Set("encryption_key", client.EncryptionKey), + d.Set("client_id", client.GetClientID()), + d.Set("client_secret", client.GetClientSecret()), + d.Set("name", client.GetName()), + d.Set("description", client.GetDescription()), + d.Set("app_type", client.GetAppType()), + d.Set("logo_uri", client.GetLogoURI()), + d.Set("is_first_party", client.GetIsFirstParty()), + d.Set("is_token_endpoint_ip_header_trusted", client.GetIsTokenEndpointIPHeaderTrusted()), + d.Set("oidc_conformant", client.GetOIDCConformant()), + d.Set("callbacks", client.GetCallbacks()), + d.Set("allowed_logout_urls", client.GetAllowedLogoutURLs()), + d.Set("allowed_origins", client.GetAllowedOrigins()), + d.Set("allowed_clients", client.GetAllowedClients()), + d.Set("grant_types", client.GetGrantTypes()), + d.Set("organization_usage", client.GetOrganizationUsage()), + d.Set("organization_require_behavior", client.GetOrganizationRequireBehavior()), + d.Set("web_origins", client.GetWebOrigins()), + d.Set("sso", client.GetSSO()), + d.Set("sso_disabled", client.GetSSODisabled()), + d.Set("cross_origin_auth", client.GetCrossOriginAuth()), + d.Set("cross_origin_loc", client.GetCrossOriginLocation()), + d.Set("custom_login_page_on", client.GetCustomLoginPageOn()), + d.Set("custom_login_page", client.GetCustomLoginPage()), + d.Set("form_template", client.GetFormTemplate()), + d.Set("token_endpoint_auth_method", client.GetTokenEndpointAuthMethod()), + d.Set("native_social_login", flattenCustomSocialConfiguration(client.GetNativeSocialLogin())), + d.Set("jwt_configuration", flattenClientJwtConfiguration(client.GetJWTConfiguration())), + d.Set("refresh_token", flattenClientRefreshTokenConfiguration(client.GetRefreshToken())), + d.Set("encryption_key", client.GetEncryptionKey()), d.Set("addons", flattenClientAddons(client.Addons)), - d.Set("client_metadata", client.ClientMetadata), - d.Set("mobile", flattenClientMobile(client.Mobile)), - d.Set("initiate_login_uri", client.InitiateLoginURI), + d.Set("client_metadata", client.GetClientMetadata()), + d.Set("mobile", flattenClientMobile(client.GetMobile())), + d.Set("initiate_login_uri", client.GetInitiateLoginURI()), d.Set("signing_keys", client.SigningKeys), ) @@ -804,410 +805,33 @@ func updateClient(ctx context.Context, d *schema.ResourceData, m interface{}) di func deleteClient(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.Client.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } } + d.SetId("") return nil } -func expandClient(d *schema.ResourceData) *management.Client { - client := &management.Client{ - Name: String(d, "name"), - Description: String(d, "description"), - AppType: String(d, "app_type"), - LogoURI: String(d, "logo_uri"), - IsFirstParty: Bool(d, "is_first_party"), - IsTokenEndpointIPHeaderTrusted: Bool(d, "is_token_endpoint_ip_header_trusted"), - OIDCConformant: Bool(d, "oidc_conformant"), - Callbacks: Slice(d, "callbacks"), - AllowedLogoutURLs: Slice(d, "allowed_logout_urls"), - AllowedOrigins: Slice(d, "allowed_origins"), - AllowedClients: Slice(d, "allowed_clients"), - GrantTypes: Slice(d, "grant_types"), - OrganizationUsage: String(d, "organization_usage"), - OrganizationRequireBehavior: String(d, "organization_require_behavior"), - WebOrigins: Slice(d, "web_origins"), - SSO: Bool(d, "sso"), - SSODisabled: Bool(d, "sso_disabled"), - CrossOriginAuth: Bool(d, "cross_origin_auth"), - CrossOriginLocation: String(d, "cross_origin_loc"), - CustomLoginPageOn: Bool(d, "custom_login_page_on"), - CustomLoginPage: String(d, "custom_login_page"), - FormTemplate: String(d, "form_template"), - TokenEndpointAuthMethod: String(d, "token_endpoint_auth_method"), - InitiateLoginURI: String(d, "initiate_login_uri"), - } - - List(d, "refresh_token", IsNewResource(), HasChange()).Elem(func(d ResourceData) { - client.RefreshToken = &management.ClientRefreshToken{ - RotationType: String(d, "rotation_type"), - ExpirationType: String(d, "expiration_type"), - Leeway: Int(d, "leeway"), - TokenLifetime: Int(d, "token_lifetime"), - InfiniteTokenLifetime: Bool(d, "infinite_token_lifetime"), - InfiniteIdleTokenLifetime: Bool(d, "infinite_idle_token_lifetime"), - IdleTokenLifetime: Int(d, "idle_token_lifetime"), - } - }) - - List(d, "jwt_configuration").Elem(func(d ResourceData) { - client.JWTConfiguration = &management.ClientJWTConfiguration{ - LifetimeInSeconds: Int(d, "lifetime_in_seconds"), - SecretEncoded: Bool(d, "secret_encoded", IsNewResource()), - Algorithm: String(d, "alg"), - Scopes: Map(d, "scopes"), - } - }) - - if encryptionKeyMap := Map(d, "encryption_key"); encryptionKeyMap != nil { - client.EncryptionKey = map[string]string{} - for key, value := range encryptionKeyMap { - client.EncryptionKey[key] = value.(string) - } - } - - List(d, "addons").Elem(func(d ResourceData) { - client.Addons = make(map[string]interface{}) - - var allowedAddons = []string{ - "aws", "azure_blob", "azure_sb", "rms", "mscrm", "slack", "sentry", - "box", "cloudbees", "concur", "dropbox", "echosign", "egnyte", - "firebase", "newrelic", "office365", "salesforce", "salesforce_api", - "salesforce_sandbox_api", "layer", "sap_api", "sharepoint", - "springcm", "wams", "wsfed", "zendesk", "zoom", - } - - for _, name := range allowedAddons { - if _, ok := d.GetOk(name); ok { - client.Addons[name] = mapFromState(Map(d, name)) - } - } - - List(d, "samlp").Elem(func(d ResourceData) { - samlp := make(map[string]interface{}) - - if audience := String(d, "audience"); audience != nil && *audience != "" { - samlp["audience"] = audience - } - if authnContextClassRef := String(d, "authn_context_class_ref"); authnContextClassRef != nil && *authnContextClassRef != "" { - samlp["authnContextClassRef"] = authnContextClassRef - } - if binding := String(d, "binding"); binding != nil && *binding != "" { - samlp["binding"] = binding - } - if signingCert := String(d, "signing_cert"); signingCert != nil && *signingCert != "" { - samlp["signingCert"] = signingCert - } - if destination := String(d, "destination"); destination != nil && *destination != "" { - samlp["destination"] = destination - } - if digestAlgorithm := String(d, "digest_algorithm"); digestAlgorithm != nil && *digestAlgorithm != "" { - samlp["digestAlgorithm"] = digestAlgorithm - } - if nameIdentifierFormat := String(d, "name_identifier_format"); nameIdentifierFormat != nil && *nameIdentifierFormat != "" { - samlp["nameIdentifierFormat"] = nameIdentifierFormat - } - if recipient := String(d, "recipient"); recipient != nil && *recipient != "" { - samlp["recipient"] = recipient - } - if signatureAlgorithm := String(d, "signature_algorithm"); signatureAlgorithm != nil && *signatureAlgorithm != "" { - samlp["signatureAlgorithm"] = signatureAlgorithm - } - if createUpnClaim := Bool(d, "create_upn_claim"); createUpnClaim != nil { - samlp["createUpnClaim"] = createUpnClaim - } - if includeAttributeNameFormat := Bool(d, "include_attribute_name_format"); includeAttributeNameFormat != nil { - samlp["includeAttributeNameFormat"] = includeAttributeNameFormat - } - if mapIdentities := Bool(d, "map_identities"); mapIdentities != nil { - samlp["mapIdentities"] = mapIdentities - } - if mapUnknownClaimsAsIs := Bool(d, "map_unknown_claims_as_is"); mapUnknownClaimsAsIs != nil { - samlp["mapUnknownClaimsAsIs"] = mapUnknownClaimsAsIs - } - if passthroughClaimsWithNoMapping := Bool(d, "passthrough_claims_with_no_mapping"); passthroughClaimsWithNoMapping != nil { - samlp["passthroughClaimsWithNoMapping"] = passthroughClaimsWithNoMapping - } - if signResponse := Bool(d, "sign_response"); signResponse != nil { - samlp["signResponse"] = signResponse - } - if typedAttributes := Bool(d, "typed_attributes"); typedAttributes != nil { - samlp["typedAttributes"] = typedAttributes - } - if lifetimeInSeconds := Int(d, "lifetime_in_seconds"); lifetimeInSeconds != nil { - samlp["lifetimeInSeconds"] = lifetimeInSeconds - } - if mappings := Map(d, "mappings"); mappings != nil { - samlp["mappings"] = mappings - } - if nameIdentifierProbes := Slice(d, "name_identifier_probes"); nameIdentifierProbes != nil { - samlp["nameIdentifierProbes"] = nameIdentifierProbes - } - if logout := mapFromState(Map(d, "logout")); logout != nil { - samlp["logout"] = logout - } - - client.Addons["samlp"] = samlp - }) - }) - - if clientMetadata, ok := d.GetOk("client_metadata"); ok { - client.ClientMetadata = make(map[string]string) - for key, value := range clientMetadata.(map[string]interface{}) { - client.ClientMetadata[key] = value.(string) - } - } - - List(d, "native_social_login").Elem(func(d ResourceData) { - client.NativeSocialLogin = &management.ClientNativeSocialLogin{} - - List(d, "apple").Elem(func(d ResourceData) { - client.NativeSocialLogin.Apple = map[string]interface{}{ - "enabled": Bool(d, "enabled"), - } - }) - - List(d, "facebook").Elem(func(d ResourceData) { - client.NativeSocialLogin.Facebook = map[string]interface{}{ - "enabled": Bool(d, "enabled"), - } - }) - }) - - List(d, "mobile").Elem(func(d ResourceData) { - client.Mobile = make(map[string]interface{}) - - List(d, "android").Elem(func(d ResourceData) { - client.Mobile["android"] = map[string]interface{}{ - "app_package_name": String(d, "app_package_name"), - "sha256_cert_fingerprints": Slice(d, "sha256_cert_fingerprints"), - } - }) - - List(d, "ios").Elem(func(d ResourceData) { - client.Mobile["ios"] = map[string]interface{}{ - "team_id": String(d, "team_id"), - "app_bundle_identifier": String(d, "app_bundle_identifier"), - } - }) - }) - - return client -} - -func mapFromState(input map[string]interface{}) map[string]interface{} { - output := make(map[string]interface{}) - - for key, value := range input { - switch v := value.(type) { - case string: - if i, err := strconv.ParseInt(v, 10, 64); err == nil { - output[key] = i - } else if f, err := strconv.ParseFloat(v, 64); err == nil { - output[key] = f - } else if b, err := strconv.ParseBool(v); err == nil { - output[key] = b - } else { - output[key] = v - } - case map[string]interface{}: - output[key] = mapFromState(v) - case []interface{}: - output[key] = v - default: - output[key] = v - } - } - - return output -} - -func mapToState(input map[string]interface{}) map[string]interface{} { - output := make(map[string]interface{}) - - for key, v := range input { - switch value := v.(type) { - case bool: - if value { - output[key] = "true" - } else { - output[key] = "false" - } - case float64: - output[key] = strconv.Itoa(int(value)) - case int: - output[key] = strconv.Itoa(value) - default: - output[key] = value - } - } - - return output -} - func rotateClientSecret(d *schema.ResourceData, m interface{}) error { - if d.HasChange("client_secret_rotation_trigger") { - api := m.(*management.Management) - client, err := api.Client.RotateSecret(d.Id()) - if err != nil { - return err - } - - if err := d.Set("client_secret", client.ClientSecret); err != nil { - return err - } - } - return nil -} - -func clientHasChange(c *management.Client) bool { - return c.String() != "{}" -} - -func flattenCustomSocialConfiguration(customSocial *management.ClientNativeSocialLogin) []interface{} { - if customSocial == nil { - return nil - } - - m := make(map[string]interface{}) - - if customSocial.Apple != nil { - m["apple"] = []interface{}{ - map[string]interface{}{ - "enabled": customSocial.Apple["enabled"], - }, - } - } - if customSocial.Facebook != nil { - m["facebook"] = []interface{}{ - map[string]interface{}{ - "enabled": customSocial.Facebook["enabled"], - }, - } - } - - return []interface{}{m} -} - -func flattenClientJwtConfiguration(jwt *management.ClientJWTConfiguration) []interface{} { - m := make(map[string]interface{}) - if jwt != nil { - m["lifetime_in_seconds"] = jwt.LifetimeInSeconds - m["secret_encoded"] = jwt.SecretEncoded - m["scopes"] = jwt.Scopes - m["alg"] = jwt.Algorithm - } - return []interface{}{m} -} - -func flattenClientRefreshTokenConfiguration(refreshToken *management.ClientRefreshToken) []interface{} { - if refreshToken == nil { - return nil - } - - m := make(map[string]interface{}) - - m["rotation_type"] = refreshToken.RotationType - m["expiration_type"] = refreshToken.ExpirationType - m["leeway"] = refreshToken.Leeway - m["token_lifetime"] = refreshToken.TokenLifetime - m["infinite_token_lifetime"] = refreshToken.InfiniteTokenLifetime - m["infinite_idle_token_lifetime"] = refreshToken.InfiniteIdleTokenLifetime - m["idle_token_lifetime"] = refreshToken.IdleTokenLifetime - - return []interface{}{m} -} - -func flattenClientAddons(addons map[string]interface{}) []interface{} { - if addons == nil { + if !d.HasChange("client_secret_rotation_trigger") { return nil } - m := make(map[string]interface{}) - - if value, ok := addons["samlp"]; ok { - samlp := value.(map[string]interface{}) - - samlpMap := map[string]interface{}{ - "audience": samlp["audience"], - "recipient": samlp["recipient"], - "mappings": samlp["mappings"], - "create_upn_claim": samlp["createUpnClaim"], - "passthrough_claims_with_no_mapping": samlp["passthroughClaimsWithNoMapping"], - "map_unknown_claims_as_is": samlp["mapUnknownClaimsAsIs"], - "map_identities": samlp["mapIdentities"], - "signature_algorithm": samlp["signatureAlgorithm"], - "digest_algorithm": samlp["digestAlgorithm"], - "destination": samlp["destination"], - "lifetime_in_seconds": samlp["lifetimeInSeconds"], - "sign_response": samlp["signResponse"], - "name_identifier_format": samlp["nameIdentifierFormat"], - "name_identifier_probes": samlp["nameIdentifierProbes"], - "authn_context_class_ref": samlp["authnContextClassRef"], - "typed_attributes": samlp["typedAttributes"], - "include_attribute_name_format": samlp["includeAttributeNameFormat"], - "binding": samlp["binding"], - "signing_cert": samlp["signingCert"], - } - - if logout, ok := samlp["logout"].(map[string]interface{}); ok { - samlpMap["logout"] = mapToState(logout) - } - - m["samlp"] = []interface{}{samlpMap} - } + api := m.(*management.Management) - for _, name := range []string{ - "aws", "azure_blob", "azure_sb", "rms", "mscrm", "slack", "sentry", - "box", "cloudbees", "concur", "dropbox", "echosign", "egnyte", - "firebase", "newrelic", "office365", "salesforce", "salesforce_api", - "salesforce_sandbox_api", "layer", "sap_api", "sharepoint", - "springcm", "wams", "wsfed", "zendesk", "zoom", - } { - if value, ok := addons[name]; ok { - if addonType, ok := value.(map[string]interface{}); ok { - m[name] = mapToState(addonType) - } - } + client, err := api.Client.RotateSecret(d.Id()) + if err != nil { + return err } - return []interface{}{m} + return d.Set("client_secret", client.GetClientSecret()) } -func flattenClientMobile(mobile map[string]interface{}) []interface{} { - if mobile == nil { - return nil - } - - m := make(map[string]interface{}) - - if value, ok := mobile["android"]; ok { - android := value.(map[string]interface{}) - - m["android"] = []interface{}{ - map[string]interface{}{ - "app_package_name": android["app_package_name"], - "sha256_cert_fingerprints": android["sha256_cert_fingerprints"], - }, - } - } - - if value, ok := mobile["ios"]; ok { - ios := value.(map[string]interface{}) - - m["ios"] = []interface{}{ - map[string]interface{}{ - "team_id": ios["team_id"], - "app_bundle_identifier": ios["app_bundle_identifier"], - }, - } - } - - return []interface{}{m} +func clientHasChange(c *management.Client) bool { + return c.String() != "{}" } diff --git a/internal/provider/resource_auth0_client_grant.go b/internal/provider/resource_auth0_client_grant.go index 991997ed1..a2c46c483 100644 --- a/internal/provider/resource_auth0_client_grant.go +++ b/internal/provider/resource_auth0_client_grant.go @@ -4,11 +4,12 @@ import ( "context" "net/http" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newClientGrant() *schema.Resource { @@ -48,33 +49,33 @@ func newClientGrant() *schema.Resource { } func createClientGrant(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - clientGrant := buildClientGrant(d) api := m.(*management.Management) + + clientGrant := expandClientGrant(d) if err := api.ClientGrant.Create(clientGrant); err != nil { return diag.FromErr(err) } - d.SetId(auth0.StringValue(clientGrant.ID)) + d.SetId(clientGrant.GetID()) return readClientGrant(ctx, d, m) } func readClientGrant(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + clientGrant, err := api.ClientGrant.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } result := multierror.Append( - d.Set("client_id", clientGrant.ClientID), - d.Set("audience", clientGrant.Audience), + d.Set("client_id", clientGrant.GetClientID()), + d.Set("audience", clientGrant.GetAudience()), d.Set("scope", clientGrant.Scope), ) @@ -82,12 +83,13 @@ func readClientGrant(ctx context.Context, d *schema.ResourceData, m interface{}) } func updateClientGrant(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - clientGrant := buildClientGrant(d) - clientGrant.Audience = nil - clientGrant.ClientID = nil api := m.(*management.Management) - if err := api.ClientGrant.Update(d.Id(), clientGrant); err != nil { - return diag.FromErr(err) + + clientGrant := expandClientGrant(d) + if clientGrantHasChange(clientGrant) { + if err := api.ClientGrant.Update(d.Id(), clientGrant); err != nil { + return diag.FromErr(err) + } } return readClientGrant(ctx, d, m) @@ -95,29 +97,43 @@ func updateClientGrant(ctx context.Context, d *schema.ResourceData, m interface{ func deleteClientGrant(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.ClientGrant.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } + d.SetId("") return nil } -func buildClientGrant(d *schema.ResourceData) *management.ClientGrant { - clientGrant := &management.ClientGrant{ - ClientID: String(d, "client_id"), - Audience: String(d, "audience"), +func expandClientGrant(d *schema.ResourceData) *management.ClientGrant { + config := d.GetRawConfig() + + clientGrant := &management.ClientGrant{} + + if d.IsNewResource() { + clientGrant.ClientID = value.String(config.GetAttr("client_id")) + clientGrant.Audience = value.String(config.GetAttr("audience")) } - clientGrant.Scope = []interface{}{} - if scope, ok := d.GetOk("scope"); ok { - clientGrant.Scope = scope.([]interface{}) + if d.IsNewResource() || d.HasChange("scope") { + scopeListFromConfig := d.Get("scope").([]interface{}) + scopeList := make([]string, 0) + for _, scope := range scopeListFromConfig { + scopeList = append(scopeList, scope.(string)) + } + clientGrant.Scope = scopeList } return clientGrant } + +func clientGrantHasChange(clientGrant *management.ClientGrant) bool { + // Hacky but we need to tell if an + // empty json is sent to the api. + return clientGrant.String() != "{}" +} diff --git a/internal/provider/resource_auth0_client_grant_test.go b/internal/provider/resource_auth0_client_grant_test.go index 8f397b1cd..3b1517a80 100644 --- a/internal/provider/resource_auth0_client_grant_test.go +++ b/internal/provider/resource_auth0_client_grant_test.go @@ -10,42 +10,6 @@ import ( "github.com/auth0/terraform-provider-auth0/internal/template" ) -func TestAccClientGrant(t *testing.T) { - httpRecorder := recorder.New(t) - - resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(httpRecorder), - Steps: []resource.TestStep{ - { - Config: template.ParseTestName(testAccClientGrantConfigCreate, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "audience", fmt.Sprintf("https://uat.tf.terraform-provider-auth0.com/client-grant/%s", t.Name())), - resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "0"), - ), - }, - { - Config: template.ParseTestName(testAccClientGrantConfigUpdate, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "1"), - resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.0", "create:foo"), - ), - }, - { - Config: template.ParseTestName(testAccClientGrantConfigUpdateAgain, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "0"), - ), - }, - { - Config: template.ParseTestName(testAccClientGrantConfigUpdateChangeClient, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "0"), - ), - }, - }, - }) -} - const testAccClientGrantAuxConfig = ` resource "auth0_client" "my_client" { name = "Acceptance Test - Client Grant - {{.testName}}" @@ -104,3 +68,39 @@ resource "auth0_client_grant" "my_client_grant" { scope = [ ] } ` + +func TestAccClientGrant(t *testing.T) { + httpRecorder := recorder.New(t) + + resource.Test(t, resource.TestCase{ + ProviderFactories: testProviders(httpRecorder), + Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccClientGrantConfigCreate, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "audience", fmt.Sprintf("https://uat.tf.terraform-provider-auth0.com/client-grant/%s", t.Name())), + resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "0"), + ), + }, + { + Config: template.ParseTestName(testAccClientGrantConfigUpdate, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "1"), + resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.0", "create:foo"), + ), + }, + { + Config: template.ParseTestName(testAccClientGrantConfigUpdateAgain, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "0"), + ), + }, + { + Config: template.ParseTestName(testAccClientGrantConfigUpdateChangeClient, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client_grant.my_client_grant", "scope.#", "0"), + ), + }, + }, + }) +} diff --git a/internal/provider/resource_auth0_client_test.go b/internal/provider/resource_auth0_client_test.go index 93e965f8d..24140a10d 100644 --- a/internal/provider/resource_auth0_client_test.go +++ b/internal/provider/resource_auth0_client_test.go @@ -54,609 +54,915 @@ func init() { }) } -func TestAccClient(t *testing.T) { - httpRecorder := recorder.New(t) +const testAccClientValidationOnInitiateLoginURIWithHTTP = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - Initiate Login URI - {{.testName}}" + initiate_login_uri = "http://example.com/login" +} +` +const testAccClientValidationOnInitiateLoginURIWithFragment = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - Initiate Login URI - {{.testName}}" + initiate_login_uri = "https://example.com/login#fragment" +} +` + +func TestAccClientInitiateLoginUriValidation(t *testing.T) { resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(httpRecorder), + ProviderFactories: testProviders(nil), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfig, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), - resource.TestCheckResourceAttr("auth0_client.my_client", "is_token_endpoint_ip_header_trusted", "true"), - resource.TestCheckResourceAttr("auth0_client.my_client", "token_endpoint_auth_method", "client_secret_post"), - resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_clients.0", "https://allowed.example.com"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.leeway", "42"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.token_lifetime", "424242"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "rotating"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "expiring"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime", "true"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime", "false"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.idle_token_lifetime", "3600"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.client_email", "john.doe@example.com"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.lifetime_in_seconds", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.audience", "https://example.com/saml"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.map_identities", "false"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.name_identifier_format", "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.signing_cert", "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n"), - resource.TestCheckResourceAttr("auth0_client.my_client", "client_metadata.foo", "zoo"), - resource.TestCheckResourceAttr("auth0_client.my_client", "initiate_login_uri", "https://example.com/login"), - resource.TestCheckResourceAttr("auth0_client.my_client", "signing_keys.#", "1"), // checks that signing_keys is set, and it includes 1 element - ), + Config: template.ParseTestName(testAccClientValidationOnInitiateLoginURIWithHTTP, t.Name()), + ExpectError: regexp.MustCompile("to have a url with schema"), }, { - Config: template.ParseTestName(testAccClientConfigWithoutAddonsWithSAMLPLogout, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.%", "2"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.callback", "http://example.com/callback"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.slo_enabled", "true"), - ), + Config: template.ParseTestName(testAccClientValidationOnInitiateLoginURIWithFragment, t.Name()), + ExpectError: regexp.MustCompile("to have a url with an empty fragment"), }, }, }) } -const testAccClientConfig = ` +const testAccClientConfigRotateSecret = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - {{.testName}}" - description = "Test Application Long Description" - app_type = "non_interactive" - custom_login_page_on = true - is_first_party = true - is_token_endpoint_ip_header_trusted = true - token_endpoint_auth_method = "client_secret_post" - oidc_conformant = true - callbacks = [ "https://example.com/callback" ] - allowed_origins = [ "https://example.com" ] - allowed_clients = [ "https://allowed.example.com" ] - grant_types = [ "authorization_code", "http://auth0.com/oauth/grant-type/password-realm", "implicit", "password", "refresh_token" ] - organization_usage = "deny" - organization_require_behavior = "no_prompt" - allowed_logout_urls = [ "https://example.com" ] - web_origins = [ "https://example.com" ] - jwt_configuration { - lifetime_in_seconds = 300 - secret_encoded = true - alg = "RS256" - scopes = { - foo = "bar" - } - } - client_metadata = { - foo = "zoo" - } - addons { - firebase = { - client_email = "john.doe@example.com" - lifetime_in_seconds = 1 - private_key = "wer" - private_key_id = "qwreerwerwe" - } - samlp { - audience = "https://example.com/saml" - mappings = { - email = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" - name = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" - } - create_upn_claim = false - passthrough_claims_with_no_mapping = false - map_unknown_claims_as_is = false - map_identities = false - name_identifier_format = "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" - name_identifier_probes = [ - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" - ] - signing_cert = "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n" - } - } - refresh_token { - leeway = 42 - token_lifetime = 424242 - rotation_type = "rotating" - expiration_type = "expiring" - infinite_token_lifetime = true - infinite_idle_token_lifetime = false - idle_token_lifetime = 3600 - } - mobile { - ios { - team_id = "9JA89QQLNQ" - app_bundle_identifier = "com.my.bundle.id" - } - } - initiate_login_uri = "https://example.com/login" + name = "Acceptance Test - Rotate Secret - {{.testName}}" } ` -const testAccClientConfigWithoutAddonsWithSAMLPLogout = ` +const testAccClientConfigRotateSecretUpdate = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - {{.testName}}" - description = "Test Application Long Description" - app_type = "non_interactive" - custom_login_page_on = true - is_first_party = true - is_token_endpoint_ip_header_trusted = true - token_endpoint_auth_method = "client_secret_post" - oidc_conformant = true - callbacks = [ "https://example.com/callback" ] - allowed_origins = [ "https://example.com" ] - allowed_clients = [ "https://allowed.example.com" ] - grant_types = [ "authorization_code", "http://auth0.com/oauth/grant-type/password-realm", "implicit", "password", "refresh_token" ] - organization_usage = "deny" - organization_require_behavior = "no_prompt" - allowed_logout_urls = [ "https://example.com" ] - web_origins = [ "https://example.com" ] - jwt_configuration { - lifetime_in_seconds = 300 - secret_encoded = true - alg = "RS256" - scopes = { - foo = "bar" - } - } - client_metadata = { - foo = "zoo" - } - addons { - firebase = { - client_email = "john.doe@example.com" - lifetime_in_seconds = 1 - private_key = "wer" - private_key_id = "qwreerwerwe" - } - samlp { - audience = "https://example.com/saml" - mappings = { - email = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" - name = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" - } - create_upn_claim = false - passthrough_claims_with_no_mapping = false - map_unknown_claims_as_is = false - map_identities = false - name_identifier_format = "urn:oasis:names:tc:SAML:2.0:nameid-format:persistent" - name_identifier_probes = [ - "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" - ] - logout = { - callback = "http://example.com/callback" - slo_enabled = true - } - signing_cert = "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n" - } - } - refresh_token { - leeway = 42 - token_lifetime = 424242 - rotation_type = "rotating" - expiration_type = "expiring" - infinite_token_lifetime = true - infinite_idle_token_lifetime = false - idle_token_lifetime = 3600 - } - mobile { - ios { - team_id = "9JA89QQLNQ" - app_bundle_identifier = "com.my.bundle.id" - } - } - initiate_login_uri = "https://example.com/login" + name = "Acceptance Test - Rotate Secret - {{.testName}}" + + client_secret_rotation_trigger = { + triggered_at = "2021-10-01T23:12:01Z" + triggered_by = "dx-cdt" + } } ` -func TestAccClientZeroValueCheck(t *testing.T) { +func TestAccClientRotateSecret(t *testing.T) { httpRecorder := recorder.New(t) resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigCreate, t.Name()), + Config: template.ParseTestName(testAccClientConfigRotateSecret, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Zero Value Check - %s", t.Name())), - resource.TestCheckResourceAttr("auth0_client.my_client", "is_first_party", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Rotate Secret - %s", t.Name())), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger"), ), }, { - Config: template.ParseTestName(testAccClientConfigUpdate, t.Name()), + Config: template.ParseTestName(testAccClientConfigRotateSecretUpdate, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "is_first_party", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Rotate Secret - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger.triggered_at", "2021-10-01T23:12:01Z"), + resource.TestCheckResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger.triggered_by", "dx-cdt"), ), }, + }, + }) +} + +const testAccClientValidationOnMobile = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - Mobile - {{.testName}}" + mobile { + android { + # nothing specified, should throw validation error + } + } +} +` + +func TestAccClientMobileValidationError(t *testing.T) { + resource.Test(t, resource.TestCase{ + ProviderFactories: testProviders(nil), + Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigUpdateAgain, t.Name()), - Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "is_first_party", "false"), - ), + Config: template.ParseTestName(testAccClientValidationOnMobile, t.Name()), + ExpectError: regexp.MustCompile("Missing required argument"), }, }, }) } -const testAccClientConfigCreate = ` +const testAccCreateMobileClient = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Zero Value Check - {{.testName}}" - is_first_party = false + name = "Acceptance Test - Mobile - {{.testName}}" + app_type = "native" + + mobile { + android { + app_package_name = "com.example" + sha256_cert_fingerprints = ["DE:AD:BE:EF"] + } + + ios { + team_id = "9JA89QQLNQ" + app_bundle_identifier = "com.my.bundle.id" + } + } + + native_social_login { + apple { + enabled = true + } + + facebook { + enabled = false + } + } } ` -const testAccClientConfigUpdate = ` +const testAccUpdateMobileClient = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Zero Value Check - {{.testName}}" - is_first_party = true + name = "Acceptance Test - Mobile - {{.testName}}" + app_type = "native" + + mobile { + android { + app_package_name = "com.example" + sha256_cert_fingerprints = ["DE:AD:BE:EF", "CA:DE:FF:AA"] + } + + ios { + team_id = "1111111111" + app_bundle_identifier = "com.my.auth0.bundle" + } + } + + native_social_login { + apple { + enabled = false + } + + facebook { + enabled = true + } + } } ` -const testAccClientConfigUpdateAgain = ` +const testAccUpdateMobileClientAgainByRemovingSomeFields = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Zero Value Check - {{.testName}}" - is_first_party = false + name = "Acceptance Test - Mobile - {{.testName}}" + app_type = "native" + + mobile { + android { + app_package_name = "com.example" + sha256_cert_fingerprints = ["DE:AD:BE:EF", "CA:DE:FF:AA"] + } + } + + native_social_login { + facebook { + enabled = false + } + } } ` -func TestAccClientRotateSecret(t *testing.T) { +const testAccChangeMobileClientToM2M = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - Mobile - {{.testName}}" + app_type = "non_interactive" + + native_social_login { + apple { + enabled = false + } + + facebook { + enabled = false + } + } +} +` + +func TestAccClientMobile(t *testing.T) { httpRecorder := recorder.New(t) resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigRotateSecret, t.Name()), + Config: template.ParseTestName(testAccCreateMobileClient, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Rotate Secret - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Mobile - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "native"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.app_package_name", "com.example"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.0", "DE:AD:BE:EF"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.team_id", "9JA89QQLNQ"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.app_bundle_identifier", "com.my.bundle.id"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.0.enabled", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "false"), ), }, { - Config: template.ParseTestName(testAccClientConfigRotateSecretUpdate, t.Name()), + Config: template.ParseTestName(testAccUpdateMobileClient, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Mobile - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "native"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.app_package_name", "com.example"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.#", "2"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.0", "DE:AD:BE:EF"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.1", "CA:DE:FF:AA"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.team_id", "1111111111"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.app_bundle_identifier", "com.my.auth0.bundle"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.0.enabled", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "true"), + ), + }, + { + Config: template.ParseTestName(testAccUpdateMobileClientAgainByRemovingSomeFields, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger.triggered_at", "2018-01-02T23:12:01Z"), - resource.TestCheckResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger.triggered_by", "alex"), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Mobile - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "native"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.app_package_name", "com.example"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.#", "2"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.0", "DE:AD:BE:EF"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.1", "CA:DE:FF:AA"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.team_id", "1111111111"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.app_bundle_identifier", "com.my.auth0.bundle"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.0.enabled", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "false"), + ), + }, + { + // This just makes sure that we can change the app type. + // + // To note also that we can't reset mobile to empty. + // We need a different approach or wait until the API behaves differently. + Config: template.ParseTestName(testAccChangeMobileClientToM2M, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Mobile - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.app_package_name", "com.example"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.#", "2"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.0", "DE:AD:BE:EF"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.1", "CA:DE:FF:AA"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.team_id", "1111111111"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.ios.0.app_bundle_identifier", "com.my.auth0.bundle"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.0.enabled", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "false"), ), }, }, }) } -const testAccClientConfigRotateSecret = ` +const testAccCreateClientWithRefreshToken = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Rotate Secret - {{.testName}}" + name = "Acceptance Test - Refresh Token - {{.testName}}" + app_type = "spa" + + refresh_token { + rotation_type = "non-rotating" + expiration_type = "non-expiring" + + # Intentionally not setting leeway, + # token_lifetime, infinite_token_lifetime, + # infinite_idle_token_lifetime, + # idle_token_lifetime because those get + # inferred by Auth0 defaults. + } } ` -const testAccClientConfigRotateSecretUpdate = ` +const testAccUpdateClientWithRefreshToken = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - Refresh Token - {{.testName}}" + app_type = "spa" + + refresh_token { + rotation_type = "non-rotating" + expiration_type = "non-expiring" + leeway = 60 + token_lifetime = 256000 + infinite_token_lifetime = true + infinite_idle_token_lifetime = true + idle_token_lifetime = 128000 + } +} +` + +const testAccUpdateClientWithRefreshTokenWhenRemovedFromConfig = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Rotate Secret - {{.testName}}" - client_secret_rotation_trigger = { - triggered_at = "2018-01-02T23:12:01Z" - triggered_by = "alex" - } + name = "Acceptance Test - Refresh Token - {{.testName}}" + app_type = "spa" } ` -func TestAccClientInitiateLoginUri(t *testing.T) { +func TestAccClientRefreshToken(t *testing.T) { + httpRecorder := recorder.New(t) + resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(nil), + ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigInitiateLoginURIHTTP, t.Name()), - ExpectError: regexp.MustCompile("to have a url with schema"), + Config: template.ParseTestName(testAccCreateClientWithRefreshToken, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Refresh Token - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "spa"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.leeway"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.token_lifetime"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.idle_token_lifetime"), + ), }, { - Config: template.ParseTestName(testAccClientConfigInitiateLoginURIFragment, t.Name()), - ExpectError: regexp.MustCompile("to have a url with an empty fragment"), + Config: template.ParseTestName(testAccUpdateClientWithRefreshToken, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Refresh Token - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "spa"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.leeway", "60"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.token_lifetime", "256000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.idle_token_lifetime", "128000"), + ), + }, + { + Config: template.ParseTestName(testAccUpdateClientWithRefreshTokenWhenRemovedFromConfig, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Refresh Token - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "spa"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.leeway", "60"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.token_lifetime", "256000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.idle_token_lifetime", "128000"), + ), }, }, }) } -const testAccClientConfigInitiateLoginURIHTTP = ` +const testAccCreateClientWithJWTConfiguration = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - JWT Config - {{.testName}}" + app_type = "non_interactive" + + jwt_configuration {} +} +` + +const testAccUpdateClientWithJWTConfiguration = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - JWT Config - {{.testName}}" + app_type = "non_interactive" + + jwt_configuration { + lifetime_in_seconds = 300 + secret_encoded = true + alg = "RS256" + scopes = { + foo = "bar" + } + } +} +` + +const testAccUpdateClientWithJWTConfigurationEmpty = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Initiate Login URI - {{.testName}}" - initiate_login_uri = "http://example.com/login" + name = "Acceptance Test - JWT Config - {{.testName}}" + app_type = "non_interactive" + + jwt_configuration { + lifetime_in_seconds = 1 + secret_encoded = false + alg = "RS256" + scopes = {} + } } ` -const testAccClientConfigInitiateLoginURIFragment = ` +const testAccUpdateClientWithJWTConfigurationRemoved = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Initiate Login URI - {{.testName}}" - initiate_login_uri = "https://example.com/login#fragment" + name = "Acceptance Test - JWT Config - {{.testName}}" + app_type = "non_interactive" } ` -func TestAccClientJwtScopes(t *testing.T) { +func TestAccClientJWTConfiguration(t *testing.T) { httpRecorder := recorder.New(t) resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigJwtScopes, t.Name()), + Config: template.ParseTestName(testAccCreateClientWithJWTConfiguration, t.Name()), Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - JWT Config - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "true"), - resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "300"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "36000"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "false"), ), }, { - Config: template.ParseTestName(testAccClientConfigJwtScopesUpdate, t.Name()), + Config: template.ParseTestName(testAccUpdateClientWithJWTConfiguration, t.Name()), Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - JWT Config - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", "RS256"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "300"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "true"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "1"), resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.foo", "bar"), - resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "true"), + ), + }, + { + Config: template.ParseTestName(testAccUpdateClientWithJWTConfigurationEmpty, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - JWT Config - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", "RS256"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "0"), + ), + }, + { + Config: template.ParseTestName(testAccUpdateClientWithJWTConfigurationRemoved, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - JWT Config - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", "RS256"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "0"), ), }, }, }) } -const testAccClientConfigJwtScopes = ` +const testAccClientConfigCreateWithOnlyRequiredFields = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - JWT Scopes - {{.testName}}" - jwt_configuration { - lifetime_in_seconds = 300 - secret_encoded = true - alg = "RS256" - scopes = {} - } + name = "Acceptance Test - {{.testName}}" } ` -const testAccClientConfigJwtScopesUpdate = ` +const testAccClientConfigUpdateAllFields = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - JWT Scopes - {{.testName}}" - jwt_configuration { - lifetime_in_seconds = 300 - secret_encoded = true - alg = "RS256" - scopes = { - foo = "bar" + name = "Acceptance Test - {{.testName}}" + app_type = "non_interactive" + description = "Test Application Long Description" + cross_origin_loc = "https://example.com/cross-origin-loc" + custom_login_page = "test" + form_template = "test" + token_endpoint_auth_method = "client_secret_post" + initiate_login_uri = "https://example.com/login" + logo_uri = "https://example.com/logoUri" + organization_require_behavior = "no_prompt" + organization_usage = "deny" + sso = false + sso_disabled = false + custom_login_page_on = true + is_first_party = true + is_token_endpoint_ip_header_trusted = true + oidc_conformant = true + cross_origin_auth = false + callbacks = [ "https://example.com/callback" ] + allowed_origins = [ "https://example.com" ] + allowed_clients = [ "https://allowed.example.com" ] + grant_types = [ "authorization_code", "http://auth0.com/oauth/grant-type/password-realm", "implicit", "password", "refresh_token" ] + allowed_logout_urls = [ "https://example.com" ] + web_origins = [ "https://example.com" ] + client_metadata = { + foo = "zoo" } - } } ` -func TestAccClientMobile(t *testing.T) { +const testAccClientConfigUpdateSomeFieldsToEmpty = ` +resource "auth0_client" "my_client" { + name = "Acceptance Test - {{.testName}}" + app_type = "non_interactive" + description = "" + cross_origin_loc = "https://example.com/cross-origin-loc" + custom_login_page = "" + form_template = "" + token_endpoint_auth_method = "client_secret_post" + initiate_login_uri = "https://example.com/login-uri" + logo_uri = "https://another-example.com/logoUri" + organization_require_behavior = "no_prompt" + organization_usage = "deny" + sso = true + sso_disabled = true + custom_login_page_on = true + is_first_party = true + is_token_endpoint_ip_header_trusted = true + oidc_conformant = true + cross_origin_auth = true + callbacks = [ ] + allowed_origins = [ ] + allowed_clients = [ ] + grant_types = [ ] + allowed_logout_urls = [ ] + web_origins = [ ] + client_metadata = {} +} +` + +func TestAccClient(t *testing.T) { httpRecorder := recorder.New(t) resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigMobile, t.Name()), + Config: template.ParseTestName(testAccClientConfigCreateWithOnlyRequiredFields, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.app_package_name", "com.example"), - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.0", "DE:AD:BE:EF"), - resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.0.enabled", "true"), - resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "client_id"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "client_secret"), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "description", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "cross_origin_loc", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "custom_login_page", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "form_template", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "token_endpoint_auth_method", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "initiate_login_uri", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "logo_uri", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "organization_require_behavior", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "organization_usage", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "sso", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "sso_disabled", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "custom_login_page_on", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "is_first_party", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "is_token_endpoint_ip_header_trusted", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "oidc_conformant", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "cross_origin_auth", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "signing_keys.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.#", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.0", "authorization_code"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.1", "implicit"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.2", "refresh_token"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.3", "client_credentials"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "36000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.%", "7"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.idle_token_lifetime", "1296000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.leeway", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.token_lifetime", "2592000"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "callbacks"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "allowed_logout_urls"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "allowed_origins"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "allowed_clients"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "web_origins"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "encryption_key"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "client_metadata"), ), }, { - Config: template.ParseTestName(testAccClientConfigMobileUpdate, t.Name()), + Config: template.ParseTestName(testAccClientConfigUpdateAllFields, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.app_package_name", "com.example"), - resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.0.android.0.sha256_cert_fingerprints.#", "0"), - resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.apple.0.enabled", "false"), - resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.0.facebook.0.enabled", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "client_id"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "client_secret"), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), + resource.TestCheckResourceAttr("auth0_client.my_client", "description", "Test Application Long Description"), + resource.TestCheckResourceAttr("auth0_client.my_client", "cross_origin_loc", "https://example.com/cross-origin-loc"), + resource.TestCheckResourceAttr("auth0_client.my_client", "custom_login_page", "test"), + resource.TestCheckResourceAttr("auth0_client.my_client", "form_template", "test"), + resource.TestCheckResourceAttr("auth0_client.my_client", "token_endpoint_auth_method", "client_secret_post"), + resource.TestCheckResourceAttr("auth0_client.my_client", "initiate_login_uri", "https://example.com/login"), + resource.TestCheckResourceAttr("auth0_client.my_client", "logo_uri", "https://example.com/logoUri"), + resource.TestCheckResourceAttr("auth0_client.my_client", "organization_require_behavior", "no_prompt"), + resource.TestCheckResourceAttr("auth0_client.my_client", "organization_usage", "deny"), + resource.TestCheckResourceAttr("auth0_client.my_client", "sso", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "sso_disabled", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "custom_login_page_on", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "is_first_party", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "is_token_endpoint_ip_header_trusted", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "oidc_conformant", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "cross_origin_auth", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "signing_keys.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.#", "5"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.0", "authorization_code"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.1", "http://auth0.com/oauth/grant-type/password-realm"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.2", "implicit"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.3", "password"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.4", "refresh_token"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "36000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.%", "7"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.idle_token_lifetime", "1296000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.leeway", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.token_lifetime", "2592000"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger"), + resource.TestCheckResourceAttr("auth0_client.my_client", "callbacks.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "callbacks.0", "https://example.com/callback"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_logout_urls.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_logout_urls.0", "https://example.com"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_origins.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_origins.0", "https://example.com"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_clients.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_clients.0", "https://allowed.example.com"), + resource.TestCheckResourceAttr("auth0_client.my_client", "web_origins.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "web_origins.0", "https://example.com"), + resource.TestCheckResourceAttr("auth0_client.my_client", "client_metadata.%", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "client_metadata.foo", "zoo"), + resource.TestCheckResourceAttr("auth0_client.my_client", "encryption_key.%", "0"), ), }, { - // This just makes sure that you can change the type (where native_social_login cannot be set) - Config: template.ParseTestName(testAccClientConfigMobileUpdateNonMobile, t.Name()), + Config: template.ParseTestName(testAccClientConfigUpdateSomeFieldsToEmpty, t.Name()), Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "client_id"), + resource.TestCheckResourceAttrSet("auth0_client.my_client", "client_secret"), resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "non_interactive"), + resource.TestCheckResourceAttr("auth0_client.my_client", "description", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "cross_origin_loc", "https://example.com/cross-origin-loc"), + resource.TestCheckResourceAttr("auth0_client.my_client", "custom_login_page", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "form_template", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "token_endpoint_auth_method", "client_secret_post"), + resource.TestCheckResourceAttr("auth0_client.my_client", "initiate_login_uri", "https://example.com/login-uri"), + resource.TestCheckResourceAttr("auth0_client.my_client", "logo_uri", "https://another-example.com/logoUri"), + resource.TestCheckResourceAttr("auth0_client.my_client", "organization_require_behavior", "no_prompt"), + resource.TestCheckResourceAttr("auth0_client.my_client", "organization_usage", "deny"), + resource.TestCheckResourceAttr("auth0_client.my_client", "sso", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "sso_disabled", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "custom_login_page_on", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "is_first_party", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "is_token_endpoint_ip_header_trusted", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "oidc_conformant", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "cross_origin_auth", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "mobile.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "native_social_login.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "signing_keys.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "grant_types.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.alg", ""), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.lifetime_in_seconds", "36000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.scopes.%", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "jwt_configuration.0.secret_encoded", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.%", "7"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.idle_token_lifetime", "1296000"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime", "true"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.leeway", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), + resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.token_lifetime", "2592000"), + resource.TestCheckNoResourceAttr("auth0_client.my_client", "client_secret_rotation_trigger"), + resource.TestCheckResourceAttr("auth0_client.my_client", "callbacks.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_logout_urls.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_origins.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "allowed_clients.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "web_origins.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "client_metadata.%", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "encryption_key.%", "0"), ), }, }, }) } -const testAccClientConfigMobile = ` +const testAccCreateClientWithAddons = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Mobile - {{.testName}}" - app_type = "native" - mobile { - android { - app_package_name = "com.example" - sha256_cert_fingerprints = ["DE:AD:BE:EF"] - } - ios { - team_id = "9JA89QQLNQ" - app_bundle_identifier = "com.my.bundle.id" - } - } - native_social_login { - apple { - enabled = true - } - facebook { - enabled = false - } - } -} -` + name = "Acceptance Test - SSO Integration - {{.testName}}" + app_type = "sso_integration" -const testAccClientConfigMobileUpdate = ` -resource "auth0_client" "my_client" { - name = "Acceptance Test - Mobile - {{.testName}}" - app_type = "native" - mobile { - android { - app_package_name = "com.example" - sha256_cert_fingerprints = [] - } - ios { - team_id = "1111111111" - app_bundle_identifier = "com.my.auth0.bundle" - } - } - native_social_login { - apple { - enabled = false - } - facebook { - enabled = true + addons { + firebase = { + client_email = "john.doe@example.com" + lifetime_in_seconds = 1 + private_key = "wer" + private_key_id = "qwreerwerwe" + } + + samlp { + audience = "https://tableau-server-test.domain.eu.com/audience-different" + destination = "https://tableau-server-test.domain.eu.com/destination" + digest_algorithm = "sha256" + lifetime_in_seconds = 3600 + name_identifier_format = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" + name_identifier_probes = [ + "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" + ] + create_upn_claim = false + passthrough_claims_with_no_mapping = false + map_unknown_claims_as_is = false + map_identities = false + recipient = "https://tableau-server-test.domain.eu.com/recipient-different" + signing_cert = "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n" + mappings = { + email = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" + name = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" + } + logout = { + callback = "https://example.com/callback" + slo_enabled = true + } + } } - } } ` -const testAccClientConfigMobileUpdateNonMobile = ` - +const testAccCreateClientWithAddonsAndEmptyFields = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Mobile - {{.testName}}" - app_type = "non_interactive" + name = "Acceptance Test - SSO Integration - {{.testName}}" + app_type = "sso_integration" - native_social_login { - apple { - enabled = false - } - facebook { - enabled = false + addons { + firebase = { + client_email = "john.doe@example.com" + lifetime_in_seconds = 1 + private_key = "wer" + private_key_id = "qwreerwerwe" + } + + samlp { + audience = "https://tableau-server-test.domain.eu.com/audience-different" + destination = "https://tableau-server-test.domain.eu.com/destination" + digest_algorithm = "sha256" + lifetime_in_seconds = 3600 + name_identifier_format = "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" + name_identifier_probes = [] + create_upn_claim = false + passthrough_claims_with_no_mapping = false + map_unknown_claims_as_is = false + map_identities = false + recipient = "https://tableau-server-test.domain.eu.com/recipient-different" + signing_cert = "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n" + mappings = {} + logout = {} + } } - } } ` -func TestAccClientMobileValidationError(t *testing.T) { - resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(nil), - Steps: []resource.TestStep{ - { - Config: template.ParseTestName(testAccClientConfigMobileUpdateError, t.Name()), - ExpectError: regexp.MustCompile("Missing required argument"), - }, - }, - }) -} - -const testAccClientConfigMobileUpdateError = ` +const testAccCreateClientWithAddonsRemovedFromConfig = ` resource "auth0_client" "my_client" { - name = "Acceptance Test - Mobile - {{.testName}}" - mobile { - android { - # nothing specified, should throw validation error - } - } + name = "Acceptance Test - SSO Integration - {{.testName}}" + app_type = "sso_integration" + + # Unfortunately we can't set firebase and + # samlp addons set above, to empty. + # This is because we don't have properly + # defined structs for them in the Go SDK + # and neither here in the terraform provider. } ` -func TestAccClientRefreshTokenApplied(t *testing.T) { +func TestAccClientSSOIntegrationWithSAML(t *testing.T) { httpRecorder := recorder.New(t) resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientConfigWithRefreshToken, t.Name()), + Config: template.ParseTestName(testAccCreateClientWithAddons, t.Name()), Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - Refresh Token - %s", t.Name())), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.#", "1"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.rotation_type", "non-rotating"), - resource.TestCheckResourceAttr("auth0_client.my_client", "refresh_token.0.expiration_type", "non-expiring"), - - resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.token_lifetime"), - resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.infinite_token_lifetime"), - resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.infinite_idle_token_lifetime"), - resource.TestCheckResourceAttrSet("auth0_client.my_client", "refresh_token.0.idle_token_lifetime"), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - SSO Integration - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "sso_integration"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.client_email", "john.doe@example.com"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.lifetime_in_seconds", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.private_key", "wer"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.private_key_id", "qwreerwerwe"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.audience", "https://tableau-server-test.domain.eu.com/audience-different"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.destination", "https://tableau-server-test.domain.eu.com/destination"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.digest_algorithm", "sha256"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.lifetime_in_seconds", "3600"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.name_identifier_format", "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.name_identifier_probes.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.name_identifier_probes.0", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.create_upn_claim", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.passthrough_claims_with_no_mapping", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.map_unknown_claims_as_is", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.map_identities", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.recipient", "https://tableau-server-test.domain.eu.com/recipient-different"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.signing_cert", "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.mappings.%", "2"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.mappings.email", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.mappings.name", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.%", "2"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.callback", "https://example.com/callback"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.slo_enabled", "true"), ), }, - }, - }) -} - -const testAccClientConfigWithRefreshToken = ` -resource "auth0_client" "my_client" { - name = "Acceptance Test - Refresh Token - {{.testName}}" - app_type = "spa" - - refresh_token { - rotation_type = "non-rotating" - expiration_type = "non-expiring" - # Intentionally not setting leeway, token_lifetime, infinite_token_lifetime, infinite_idle_token_lifetime, idle_token_lifetime because those get inferred by Auth0 defaults - } - } -` - -func TestAccClientSSOIntegration(t *testing.T) { - httpRecorder := recorder.New(t) - - resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(httpRecorder), - Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccClientSSOIntegrationCreate, t.Name()), + Config: template.ParseTestName(testAccCreateClientWithAddonsAndEmptyFields, t.Name()), Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - SSO Integration - %s", t.Name())), resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "sso_integration"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.audience", "http://tableau-server-test.domain.eu.com/audience"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.recipient", "http://tableau-server-test.domain.eu.com/recipient"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.destination", "http://tableau-server-test.domain.eu.com/destination"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.client_email", "john.doe@example.com"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.lifetime_in_seconds", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.private_key", "wer"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.private_key_id", "qwreerwerwe"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.audience", "https://tableau-server-test.domain.eu.com/audience-different"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.destination", "https://tableau-server-test.domain.eu.com/destination"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.digest_algorithm", "sha256"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.lifetime_in_seconds", "3600"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.name_identifier_format", "urn:oasis:names:tc:SAML:2.0:attrname-format:basic"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.name_identifier_probes.#", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.create_upn_claim", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.passthrough_claims_with_no_mapping", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.map_unknown_claims_as_is", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.map_identities", "false"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.recipient", "https://tableau-server-test.domain.eu.com/recipient-different"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.signing_cert", "-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.mappings.%", "0"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.logout.%", "0"), ), }, { - Config: template.ParseTestName(testAccClientSSOIntegrationUpdate, t.Name()), + Config: template.ParseTestName(testAccCreateClientWithAddonsRemovedFromConfig, t.Name()), Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - SSO Integration - %s", t.Name())), resource.TestCheckResourceAttr("auth0_client.my_client", "app_type", "sso_integration"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.audience", "http://tableau-server-test.domain.eu.com/audience-different"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.recipient", "http://tableau-server-test.domain.eu.com/recipient-different"), - resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.0.destination", "http://tableau-server-test.domain.eu.com/destination"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.#", "1"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.firebase.%", "4"), + resource.TestCheckResourceAttr("auth0_client.my_client", "addons.0.samlp.#", "1"), ), }, }, }) } - -const testAccClientSSOIntegrationCreate = ` -resource "auth0_client" "my_client" { - name = "Acceptance Test - SSO Integration - {{.testName}}" - app_type = "sso_integration" - addons{ - samlp { - audience= "http://tableau-server-test.domain.eu.com/audience" - destination= "http://tableau-server-test.domain.eu.com/destination" - digest_algorithm= "sha256" - lifetime_in_seconds= 3600 - mappings= { - email= "username" - } - name_identifier_format= "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" - passthrough_claims_with_no_mapping= false - recipient= "http://tableau-server-test.domain.eu.com/recipient" - } - } -} -` - -const testAccClientSSOIntegrationUpdate = ` -resource "auth0_client" "my_client" { - name = "Acceptance Test - SSO Integration - {{.testName}}" - app_type = "sso_integration" - addons{ - samlp { - audience= "http://tableau-server-test.domain.eu.com/audience-different" - destination= "http://tableau-server-test.domain.eu.com/destination" - digest_algorithm= "sha256" - lifetime_in_seconds= 3600 - mappings= { - email= "username" - } - name_identifier_format= "urn:oasis:names:tc:SAML:2.0:attrname-format:basic" - passthrough_claims_with_no_mapping= false - recipient= "http://tableau-server-test.domain.eu.com/recipient-different" - } - } - } -` diff --git a/internal/provider/resource_auth0_connection.go b/internal/provider/resource_auth0_connection.go index 9fb7244a6..0fb1ecf02 100644 --- a/internal/provider/resource_auth0_connection.go +++ b/internal/provider/resource_auth0_connection.go @@ -6,7 +6,6 @@ import ( "net/http" "strconv" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" @@ -879,18 +878,19 @@ func connectionSchemaUpgradeV1( } func createConnection(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api := m.(*management.Management) + connection, diagnostics := expandConnection(d) if diagnostics.HasError() { return diagnostics } - api := m.(*management.Management) if err := api.Connection.Create(connection); err != nil { diagnostics = append(diagnostics, diag.FromErr(err)...) return diagnostics } - d.SetId(auth0.StringValue(connection.ID)) + d.SetId(connection.GetID()) diagnostics = append(diagnostics, readConnection(ctx, d, m)...) return diagnostics @@ -898,13 +898,12 @@ func createConnection(ctx context.Context, d *schema.ResourceData, m interface{} func readConnection(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + connection, err := api.Connection.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } @@ -915,24 +914,24 @@ func readConnection(ctx context.Context, d *schema.ResourceData, m interface{}) } result := multierror.Append( - d.Set("name", connection.Name), - d.Set("display_name", connection.DisplayName), - d.Set("is_domain_connection", connection.IsDomainConnection), - d.Set("strategy", connection.Strategy), + d.Set("name", connection.GetName()), + d.Set("display_name", connection.GetDisplayName()), + d.Set("is_domain_connection", connection.GetIsDomainConnection()), + d.Set("strategy", connection.GetStrategy()), d.Set("options", connectionOptions), - d.Set("enabled_clients", connection.EnabledClients), - d.Set("realms", connection.Realms), - d.Set("metadata", connection.Metadata), + d.Set("enabled_clients", connection.GetEnabledClients()), + d.Set("realms", connection.GetRealms()), + d.Set("metadata", connection.GetMetadata()), ) - switch *connection.Strategy { + switch connection.GetStrategy() { case management.ConnectionStrategyGoogleApps, management.ConnectionStrategyOIDC, management.ConnectionStrategyAD, management.ConnectionStrategyAzureAD, management.ConnectionStrategySAML, management.ConnectionStrategyADFS: - result = multierror.Append(result, d.Set("show_as_button", connection.ShowAsButton)) + result = multierror.Append(result, d.Set("show_as_button", connection.GetShowAsButton())) } diags = append(diags, diag.FromErr(result.ErrorOrNil())...) @@ -940,12 +939,13 @@ func readConnection(ctx context.Context, d *schema.ResourceData, m interface{}) } func updateConnection(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api := m.(*management.Management) + connection, diagnostics := expandConnection(d) if diagnostics.HasError() { return diagnostics } - api := m.(*management.Management) if err := api.Connection.Update(d.Id(), connection); err != nil { diagnostics = append(diagnostics, diag.FromErr(err)...) return diagnostics @@ -957,14 +957,15 @@ func updateConnection(ctx context.Context, d *schema.ResourceData, m interface{} func deleteConnection(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.Connection.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } + return diag.FromErr(err) } + d.SetId("") return nil } diff --git a/internal/provider/resource_auth0_connection_test.go b/internal/provider/resource_auth0_connection_test.go index 7029b11dc..1341b79ef 100644 --- a/internal/provider/resource_auth0_connection_test.go +++ b/internal/provider/resource_auth0_connection_test.go @@ -89,6 +89,9 @@ func TestAccConnection(t *testing.T) { resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.mfa.0.return_enroll_settings", "true"), resource.TestCheckResourceAttrSet("auth0_connection.my_connection", "options.0.configuration.foo"), resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.upstream_params", "{\"screen_name\":{\"alias\":\"login_hint\"}}"), + resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.non_persistent_attrs.#", "2"), + resource.TestCheckTypeSetElemAttr("auth0_connection.my_connection", "options.0.non_persistent_attrs.*", "hair_color"), + resource.TestCheckTypeSetElemAttr("auth0_connection.my_connection", "options.0.non_persistent_attrs.*", "gender"), ), }, { @@ -99,6 +102,7 @@ func TestAccConnection(t *testing.T) { resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.upstream_params", ""), resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.enabled_database_customization", "true"), resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.set_user_root_attributes", "on_first_login"), + resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.0.non_persistent_attrs.#", "0"), ), }, }, @@ -156,6 +160,7 @@ resource "auth0_connection" "my_connection" { "alias": "login_hint" } }) + non_persistent_attrs = ["gender","hair_color"] } } ` @@ -194,6 +199,7 @@ resource "auth0_connection" "my_connection" { active = true return_enroll_settings = false } + non_persistent_attrs = [] } } ` @@ -541,6 +547,12 @@ func TestAccConnectionWithEnabledClients(t *testing.T) { resource.TestCheckResourceAttr("auth0_connection.my_connection", "options.#", "1"), // Gets computed with defaults by the API. ), }, + { + Config: template.ParseTestName(testAccConnectionWithEmptyEnabledClientsConfig, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_connection.my_connection", "enabled_clients.#", "0"), + ), + }, }, }) } @@ -586,6 +598,15 @@ resource "auth0_connection" "my_connection" { } ` +const testAccConnectionWithEmptyEnabledClientsConfig = ` +resource "auth0_connection" "my_connection" { + name = "Acceptance-Test-Connection-{{.testName}}" + is_domain_connection = true + strategy = "auth0" + enabled_clients = [] +} +` + func TestAccConnectionSMS(t *testing.T) { httpRecorder := recorder.New(t) diff --git a/internal/provider/resource_auth0_custom_domain.go b/internal/provider/resource_auth0_custom_domain.go index 6c7ce0f6b..a9569c9f0 100644 --- a/internal/provider/resource_auth0_custom_domain.go +++ b/internal/provider/resource_auth0_custom_domain.go @@ -4,12 +4,14 @@ import ( "context" "net/http" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newCustomDomain() *schema.Resource { @@ -77,36 +79,36 @@ func newCustomDomain() *schema.Resource { } func createCustomDomain(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - customDomain := expandCustomDomain(d) api := m.(*management.Management) + + customDomain := expandCustomDomain(d.GetRawConfig()) if err := api.CustomDomain.Create(customDomain); err != nil { return diag.FromErr(err) } - d.SetId(auth0.StringValue(customDomain.ID)) + d.SetId(customDomain.GetID()) return readCustomDomain(ctx, d, m) } func readCustomDomain(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + customDomain, err := api.CustomDomain.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } result := multierror.Append( - d.Set("domain", customDomain.Domain), - d.Set("type", customDomain.Type), - d.Set("primary", customDomain.Primary), - d.Set("status", customDomain.Status), - d.Set("origin_domain_name", customDomain.OriginDomainName), + d.Set("domain", customDomain.GetDomain()), + d.Set("type", customDomain.GetType()), + d.Set("primary", customDomain.GetPrimary()), + d.Set("status", customDomain.GetStatus()), + d.Set("origin_domain_name", customDomain.GetOriginDomainName()), ) if customDomain.Verification != nil { @@ -120,21 +122,22 @@ func readCustomDomain(ctx context.Context, d *schema.ResourceData, m interface{} func deleteCustomDomain(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.CustomDomain.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } + return diag.FromErr(err) } + d.SetId("") return nil } -func expandCustomDomain(d *schema.ResourceData) *management.CustomDomain { +func expandCustomDomain(config cty.Value) *management.CustomDomain { return &management.CustomDomain{ - Domain: String(d, "domain"), - Type: String(d, "type"), + Domain: value.String(config.GetAttr("domain")), + Type: value.String(config.GetAttr("type")), } } diff --git a/internal/provider/resource_auth0_custom_domain_verification.go b/internal/provider/resource_auth0_custom_domain_verification.go index 7aaede685..4ae5c27a4 100644 --- a/internal/provider/resource_auth0_custom_domain_verification.go +++ b/internal/provider/resource_auth0_custom_domain_verification.go @@ -55,6 +55,7 @@ func newCustomDomainVerification() *schema.Resource { func createCustomDomainVerification(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + err := resource.RetryContext(ctx, d.Timeout(schema.TimeoutCreate), func() *resource.RetryError { customDomainVerification, err := api.CustomDomain.Verify(d.Get("custom_domain_id").(string)) if err != nil { @@ -74,7 +75,7 @@ func createCustomDomainVerification(ctx context.Context, d *schema.ResourceData, // The cname_api_key field is only given once: when verification // succeeds for the first time. Therefore, we set it on the resource in // the creation routine only, and never touch it again. - if err := d.Set("cname_api_key", customDomainVerification.CNAMEAPIKey); err != nil { + if err := d.Set("cname_api_key", customDomainVerification.GetCNAMEAPIKey()); err != nil { return resource.NonRetryableError(err) } @@ -89,20 +90,19 @@ func createCustomDomainVerification(ctx context.Context, d *schema.ResourceData, func readCustomDomainVerification(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + customDomain, err := api.CustomDomain.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } result := multierror.Append( d.Set("custom_domain_id", customDomain.GetID()), - d.Set("origin_domain_name", customDomain.OriginDomainName), + d.Set("origin_domain_name", customDomain.GetOriginDomainName()), ) return diag.FromErr(result.ErrorOrNil()) diff --git a/internal/provider/resource_auth0_email.go b/internal/provider/resource_auth0_email.go index ddd36c8fc..44735a1b8 100644 --- a/internal/provider/resource_auth0_email.go +++ b/internal/provider/resource_auth0_email.go @@ -5,10 +5,13 @@ import ( "net/http" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newEmail() *schema.Resource { @@ -113,7 +116,7 @@ func newEmail() *schema.Resource { func createEmail(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) - email := expandEmail(d) + email := expandEmail(d.GetRawConfig()) if err := api.Email.Create(email); err != nil { return diag.FromErr(err) } @@ -149,7 +152,7 @@ func readEmail(ctx context.Context, d *schema.ResourceData, m interface{}) diag. func updateEmail(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) - email := expandEmail(d) + email := expandEmail(d.GetRawConfig()) if err := api.Email.Update(email); err != nil { return diag.FromErr(err) } @@ -165,30 +168,31 @@ func deleteEmail(ctx context.Context, d *schema.ResourceData, m interface{}) dia } d.SetId("") - return nil } -func expandEmail(d *schema.ResourceData) *management.Email { +func expandEmail(config cty.Value) *management.Email { email := &management.Email{ - Name: String(d, "name"), - Enabled: Bool(d, "enabled"), - DefaultFromAddress: String(d, "default_from_address"), + Name: value.String(config.GetAttr("name")), + Enabled: value.Bool(config.GetAttr("enabled")), + DefaultFromAddress: value.String(config.GetAttr("default_from_address")), } - List(d, "credentials").Elem(func(d ResourceData) { + config.GetAttr("credentials").ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { email.Credentials = &management.EmailCredentials{ - APIUser: String(d, "api_user"), - APIKey: String(d, "api_key"), - AccessKeyID: String(d, "access_key_id"), - SecretAccessKey: String(d, "secret_access_key"), - Region: String(d, "region"), - Domain: String(d, "domain"), - SMTPHost: String(d, "smtp_host"), - SMTPPort: Int(d, "smtp_port"), - SMTPUser: String(d, "smtp_user"), - SMTPPass: String(d, "smtp_pass"), + APIUser: value.String(config.GetAttr("api_user")), + APIKey: value.String(config.GetAttr("api_key")), + AccessKeyID: value.String(config.GetAttr("access_key_id")), + SecretAccessKey: value.String(config.GetAttr("secret_access_key")), + Region: value.String(config.GetAttr("region")), + Domain: value.String(config.GetAttr("domain")), + SMTPHost: value.String(config.GetAttr("smtp_host")), + SMTPPort: value.Int(config.GetAttr("smtp_port")), + SMTPUser: value.String(config.GetAttr("smtp_user")), + SMTPPass: value.String(config.GetAttr("smtp_pass")), } + + return stop }) return email diff --git a/internal/provider/resource_auth0_email_template.go b/internal/provider/resource_auth0_email_template.go index af2e8d5ed..609f5a9ad 100644 --- a/internal/provider/resource_auth0_email_template.go +++ b/internal/provider/resource_auth0_email_template.go @@ -6,10 +6,13 @@ import ( "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newEmailTemplate() *schema.Resource { @@ -98,19 +101,20 @@ func newEmailTemplate() *schema.Resource { } func createEmailTemplate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - email := expandEmailTemplate(d) api := m.(*management.Management) + email := expandEmailTemplate(d.GetRawConfig()) + // The email template resource doesn't allow deleting templates, so in order // to avoid conflicts, we first attempt to read the template. If it exists // we'll try to update it, if not we'll try to create it. - if _, err := api.EmailTemplate.Read(auth0.StringValue(email.Template)); err == nil { + if _, err := api.EmailTemplate.Read(email.GetTemplate()); err == nil { // We succeeded in reading the template, this means it was created previously. - if err := api.EmailTemplate.Update(auth0.StringValue(email.Template), email); err != nil { + if err := api.EmailTemplate.Update(email.GetTemplate(), email); err != nil { return diag.FromErr(err) } - d.SetId(auth0.StringValue(email.Template)) + d.SetId(email.GetTemplate()) return nil } @@ -121,35 +125,34 @@ func createEmailTemplate(ctx context.Context, d *schema.ResourceData, m interfac return diag.FromErr(err) } - d.SetId(auth0.StringValue(email.Template)) + d.SetId(email.GetTemplate()) - return nil + return readEmailTemplate(ctx, d, m) } func readEmailTemplate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + email, err := api.EmailTemplate.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } - d.SetId(auth0.StringValue(email.Template)) + d.SetId(email.GetTemplate()) result := multierror.Append( - d.Set("template", email.Template), - d.Set("body", email.Body), - d.Set("from", email.From), - d.Set("result_url", email.ResultURL), - d.Set("subject", email.Subject), - d.Set("syntax", email.Syntax), - d.Set("url_lifetime_in_seconds", email.URLLifetimeInSecoonds), - d.Set("enabled", email.Enabled), + d.Set("template", email.GetTemplate()), + d.Set("body", email.GetBody()), + d.Set("from", email.GetFrom()), + d.Set("result_url", email.GetResultURL()), + d.Set("subject", email.GetSubject()), + d.Set("syntax", email.GetSyntax()), + d.Set("url_lifetime_in_seconds", email.GetURLLifetimeInSecoonds()), + d.Set("enabled", email.GetEnabled()), d.Set("include_email_in_redirect", email.GetIncludeEmailInRedirect()), ) @@ -157,8 +160,9 @@ func readEmailTemplate(ctx context.Context, d *schema.ResourceData, m interface{ } func updateEmailTemplate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - email := expandEmailTemplate(d) api := m.(*management.Management) + + email := expandEmailTemplate(d.GetRawConfig()) if err := api.EmailTemplate.Update(d.Id(), email); err != nil { return diag.FromErr(err) } @@ -184,17 +188,17 @@ func deleteEmailTemplate(ctx context.Context, d *schema.ResourceData, m interfac return nil } -func expandEmailTemplate(d *schema.ResourceData) *management.EmailTemplate { +func expandEmailTemplate(config cty.Value) *management.EmailTemplate { emailTemplate := &management.EmailTemplate{ - Template: String(d, "template"), - Body: String(d, "body"), - From: String(d, "from"), - ResultURL: String(d, "result_url"), - Subject: String(d, "subject"), - Syntax: String(d, "syntax"), - URLLifetimeInSecoonds: Int(d, "url_lifetime_in_seconds"), - Enabled: Bool(d, "enabled"), - IncludeEmailInRedirect: Bool(d, "include_email_in_redirect"), + Template: value.String(config.GetAttr("template")), + Body: value.String(config.GetAttr("body")), + From: value.String(config.GetAttr("from")), + ResultURL: value.String(config.GetAttr("result_url")), + Subject: value.String(config.GetAttr("subject")), + Syntax: value.String(config.GetAttr("syntax")), + URLLifetimeInSecoonds: value.Int(config.GetAttr("url_lifetime_in_seconds")), + Enabled: value.Bool(config.GetAttr("enabled")), + IncludeEmailInRedirect: value.Bool(config.GetAttr("include_email_in_redirect")), } return emailTemplate diff --git a/internal/provider/resource_auth0_email_test.go b/internal/provider/resource_auth0_email_test.go index 0a2fc9dbf..a9160a777 100644 --- a/internal/provider/resource_auth0_email_test.go +++ b/internal/provider/resource_auth0_email_test.go @@ -92,6 +92,27 @@ func TestAccEmail(t *testing.T) { resource.TestCheckResourceAttr("auth0_email.my_email_provider", "credentials.0.region", "eu"), ), }, + { + Config: ` + resource "auth0_email" "my_email_provider" { + name = "mailgun" + enabled = false + default_from_address = "" + credentials { + api_key = "MAILGUNXXXXXXXXXXXXXXX" + domain = "example.com" + region = "eu" + } + } + `, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_email.my_email_provider", "name", "mailgun"), + resource.TestCheckResourceAttr("auth0_email.my_email_provider", "enabled", "false"), + resource.TestCheckResourceAttr("auth0_email.my_email_provider", "default_from_address", ""), + resource.TestCheckResourceAttr("auth0_email.my_email_provider", "credentials.0.domain", "example.com"), + resource.TestCheckResourceAttr("auth0_email.my_email_provider", "credentials.0.region", "eu"), + ), + }, }, }) } diff --git a/internal/provider/resource_auth0_global_client.go b/internal/provider/resource_auth0_global_client.go index c04b7c8ce..7b3ee6015 100644 --- a/internal/provider/resource_auth0_global_client.go +++ b/internal/provider/resource_auth0_global_client.go @@ -52,17 +52,24 @@ func createGlobalClient(ctx context.Context, d *schema.ResourceData, m interface func readGlobalClientID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) - clients, err := api.Client.List(management.Parameter("is_global", "true"), management.IncludeFields("client_id")) + + clients, err := api.Client.List( + management.Parameter("is_global", "true"), + management.IncludeFields("client_id"), + ) if err != nil { return diag.FromErr(err) } + if len(clients.Clients) == 0 { - return diag.Errorf("no auth0 global client found") + return diag.Errorf("No auth0 global client found.") } + d.SetId(clients.Clients[0].GetClientID()) return nil } func deleteGlobalClient(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + d.SetId("") return nil } diff --git a/internal/provider/resource_auth0_guardian.go b/internal/provider/resource_auth0_guardian.go index 95b031cca..2a5bc422f 100644 --- a/internal/provider/resource_auth0_guardian.go +++ b/internal/provider/resource_auth0_guardian.go @@ -433,6 +433,5 @@ func deleteGuardian(ctx context.Context, d *schema.ResourceData, m interface{}) } d.SetId("") - return nil } diff --git a/internal/provider/resource_auth0_hook.go b/internal/provider/resource_auth0_hook.go index 74482c70d..0909742e6 100644 --- a/internal/provider/resource_auth0_hook.go +++ b/internal/provider/resource_auth0_hook.go @@ -12,6 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newHook() *schema.Resource { @@ -79,8 +81,9 @@ func newHook() *schema.Resource { } func createHook(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - hook := expandHook(d) api := m.(*management.Management) + + hook := expandHook(d) if err := api.Hook.Create(hook); err != nil { return diag.FromErr(err) } @@ -181,42 +184,36 @@ func checkForUntrackedHookSecrets(ctx context.Context, d *schema.ResourceData, m func upsertHookSecrets(ctx context.Context, d *schema.ResourceData, m interface{}) error { if d.IsNewResource() || d.HasChange("secrets") { - hookSecrets := expandHookSecrets(d) api := m.(*management.Management) - return api.Hook.ReplaceSecrets(d.Id(), hookSecrets) + + hookSecrets := value.MapOfStrings(d.GetRawConfig().GetAttr("secrets")) + if hookSecrets == nil { + return nil + } + + return api.Hook.ReplaceSecrets(d.Id(), *hookSecrets) } return nil } func expandHook(d *schema.ResourceData) *management.Hook { + config := d.GetRawConfig() + hook := &management.Hook{ - Name: String(d, "name"), - Script: String(d, "script"), - TriggerID: String(d, "trigger_id", IsNewResource()), - Enabled: Bool(d, "enabled"), + Name: value.String(config.GetAttr("name")), + Script: value.String(config.GetAttr("script")), + Enabled: value.Bool(config.GetAttr("enabled")), + Dependencies: value.MapOfStrings(config.GetAttr("dependencies")), } - if deps := Map(d, "dependencies"); deps != nil { - hook.Dependencies = &deps + if d.IsNewResource() { + hook.TriggerID = value.String(config.GetAttr("trigger_id")) } return hook } -func expandHookSecrets(d *schema.ResourceData) management.HookSecrets { - hookSecrets := management.HookSecrets{} - secrets := Map(d, "secrets") - - for key, value := range secrets { - if strVal, ok := value.(string); ok { - hookSecrets[key] = strVal - } - } - - return hookSecrets -} - func validateHookName() schema.SchemaValidateDiagFunc { hookNameValidation := validation.StringMatch( regexp.MustCompile(`^[^\s-][\w -]+[^\s-]$`), diff --git a/internal/provider/resource_auth0_hook_test.go b/internal/provider/resource_auth0_hook_test.go index 15efafa07..170914cfd 100644 --- a/internal/provider/resource_auth0_hook_test.go +++ b/internal/provider/resource_auth0_hook_test.go @@ -17,6 +17,17 @@ func TestAccHook(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ + { + Config: testAccHookEmpty, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_hook.my_hook", "name", "pre-user-reg-hook"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "script", "function (user, context, callback) { callback(null, { user }); }"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "trigger_id", "pre-user-registration"), + resource.TestCheckResourceAttrSet("auth0_hook.my_hook", "enabled"), + resource.TestCheckNoResourceAttr("auth0_hook.my_hook", "secrets"), + resource.TestCheckNoResourceAttr("auth0_hook.my_hook", "dependencies"), + ), + }, { Config: fmt.Sprintf(testAccHookCreate, ""), Check: resource.ComposeTestCheckFunc( @@ -30,6 +41,14 @@ func TestAccHook(t *testing.T) { }) } +const testAccHookEmpty = ` +resource "auth0_hook" "my_hook" { + name = "pre-user-reg-hook" + script = "function (user, context, callback) { callback(null, { user }); }" + trigger_id = "pre-user-registration" +} +` + const testAccHookCreate = ` resource "auth0_hook" "my_hook" { name = "pre-user-reg-hook" @@ -81,6 +100,17 @@ func TestAccHookSecrets(t *testing.T) { resource.TestCheckNoResourceAttr("auth0_hook.my_hook", "secrets.bar"), ), }, + { + Config: fmt.Sprintf(testAccHookCreate, testAccHookSecretsEmpty), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_hook.my_hook", "name", "pre-user-reg-hook"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "script", "function (user, context, callback) { callback(null, { user }); }"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "trigger_id", "pre-user-registration"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "enabled", "true"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "secrets.%", "0"), + resource.TestCheckResourceAttr("auth0_hook.my_hook", "dependencies.%", "0"), + ), + }, }, }) } @@ -113,6 +143,11 @@ const testAccHookSecretsUpdateAndRemoval = ` } ` +const testAccHookSecretsEmpty = ` + dependencies = {} + secrets = {} +` + func TestHookNameRegexp(t *testing.T) { for givenHookName, expectedError := range map[string]bool{ "my-hook-1": false, diff --git a/internal/provider/resource_auth0_log_stream.go b/internal/provider/resource_auth0_log_stream.go index e4e89390d..38310e849 100644 --- a/internal/provider/resource_auth0_log_stream.go +++ b/internal/provider/resource_auth0_log_stream.go @@ -6,10 +6,13 @@ import ( "net/http" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newLogStream() *schema.Resource { @@ -223,21 +226,21 @@ func newLogStream() *schema.Resource { } func createLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - logStream := expandLogStream(d) - api := m.(*management.Management) + + logStream := expandLogStream(d) if err := api.LogStream.Create(logStream); err != nil { return diag.FromErr(err) } d.SetId(logStream.GetID()) - // The Management API only allows updating a log stream's status. Therefore, - // if the status field was present in the configuration, we perform an - // additional operation to modify it. - status := String(d, "status") - if status != nil && status != logStream.Status { - if err := api.LogStream.Update(logStream.GetID(), &management.LogStream{Status: status}); err != nil { + // The Management API only allows updating a log stream's status. + // Therefore, if the status field was present in the configuration, + // we perform an additional operation to modify it. + status := d.Get("status").(string) + if status != "" && status != logStream.GetStatus() { + if err := api.LogStream.Update(logStream.GetID(), &management.LogStream{Status: &status}); err != nil { return diag.FromErr(err) } } @@ -247,21 +250,20 @@ func createLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) func readLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + logStream, err := api.LogStream.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } result := multierror.Append( - d.Set("name", logStream.Name), - d.Set("status", logStream.Status), - d.Set("type", logStream.Type), + d.Set("name", logStream.GetName()), + d.Set("status", logStream.GetStatus()), + d.Set("type", logStream.GetType()), d.Set("filters", logStream.Filters), d.Set("sink", flattenLogStreamSink(logStream.Sink)), ) @@ -270,8 +272,9 @@ func readLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) d } func updateLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - logStream := expandLogStream(d) api := m.(*management.Management) + + logStream := expandLogStream(d) if err := api.LogStream.Update(d.Id(), logStream); err != nil { return diag.FromErr(err) } @@ -281,15 +284,15 @@ func updateLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) func deleteLogStream(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.LogStream.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } } + d.SetId("") return nil } @@ -363,86 +366,120 @@ func flattenLogStreamSinkSumo(o *management.LogStreamSinkSumo) interface{} { } } -func expandLogStream(d ResourceData) *management.LogStream { +func expandLogStream(d *schema.ResourceData) *management.LogStream { + config := d.GetRawConfig() + logStream := &management.LogStream{ - Name: String(d, "name"), - Type: String(d, "type", IsNewResource()), - Status: String(d, "status", Not(IsNewResource())), - Filters: List(d, "filters").List(), + Name: value.String(config.GetAttr("name")), } - streamType := d.Get("type").(string) - List(d, "sink").Elem(func(d ResourceData) { - switch streamType { + logStreamType := value.String(config.GetAttr("type")) + if d.IsNewResource() { + logStream.Type = logStreamType + } + + if !d.IsNewResource() { + logStream.Status = value.String(config.GetAttr("status")) + } + + filtersConfig := config.GetAttr("filters") + if !filtersConfig.IsNull() { + filters := make([]map[string]string, 0) + + filtersConfig.ForEachElement(func(_ cty.Value, filter cty.Value) (stop bool) { + filters = append(filters, *value.MapOfStrings(filter)) + return stop + }) + + logStream.Filters = &filters + } + + config.GetAttr("sink").ForEachElement(func(_ cty.Value, sink cty.Value) (stop bool) { + switch *logStreamType { case management.LogStreamTypeAmazonEventBridge: // LogStreamTypeAmazonEventBridge cannot be updated. if d.IsNewResource() { - logStream.Sink = expandLogStreamSinkAmazonEventBridge(d) + logStream.Sink = expandLogStreamSinkAmazonEventBridge(sink) } case management.LogStreamTypeAzureEventGrid: // LogStreamTypeAzureEventGrid cannot be updated. if d.IsNewResource() { - logStream.Sink = expandLogStreamSinkAzureEventGrid(d) + logStream.Sink = expandLogStreamSinkAzureEventGrid(sink) } case management.LogStreamTypeHTTP: - logStream.Sink = expandLogStreamSinkHTTP(d) + logStream.Sink = expandLogStreamSinkHTTP(sink) case management.LogStreamTypeDatadog: - logStream.Sink = expandLogStreamSinkDatadog(d) + logStream.Sink = expandLogStreamSinkDatadog(sink) case management.LogStreamTypeSplunk: - logStream.Sink = expandLogStreamSinkSplunk(d) + logStream.Sink = expandLogStreamSinkSplunk(sink) case management.LogStreamTypeSumo: - logStream.Sink = expandLogStreamSinkSumo(d) + logStream.Sink = expandLogStreamSinkSumo(sink) default: - log.Printf("[WARN]: Unsupported log stream sink %s", streamType) + log.Printf("[WARN]: Unsupported log stream sink %s", logStream.GetType()) log.Printf("[WARN]: Raise an issue with the auth0 provider in order to support it:") log.Printf("[WARN]: https://github.com/auth0/terraform-provider-auth0/issues/new") } + + return stop }) return logStream } -func expandLogStreamSinkAmazonEventBridge(d ResourceData) *management.LogStreamSinkAmazonEventBridge { +func expandLogStreamSinkAmazonEventBridge(config cty.Value) *management.LogStreamSinkAmazonEventBridge { return &management.LogStreamSinkAmazonEventBridge{ - AccountID: String(d, "aws_account_id"), - Region: String(d, "aws_region"), + AccountID: value.String(config.GetAttr("aws_account_id")), + Region: value.String(config.GetAttr("aws_region")), } } -func expandLogStreamSinkAzureEventGrid(d ResourceData) *management.LogStreamSinkAzureEventGrid { +func expandLogStreamSinkAzureEventGrid(config cty.Value) *management.LogStreamSinkAzureEventGrid { return &management.LogStreamSinkAzureEventGrid{ - SubscriptionID: String(d, "azure_subscription_id"), - ResourceGroup: String(d, "azure_resource_group"), - Region: String(d, "azure_region"), - PartnerTopic: String(d, "azure_partner_topic"), + SubscriptionID: value.String(config.GetAttr("azure_subscription_id")), + ResourceGroup: value.String(config.GetAttr("azure_resource_group")), + Region: value.String(config.GetAttr("azure_region")), + PartnerTopic: value.String(config.GetAttr("azure_partner_topic")), } } -func expandLogStreamSinkHTTP(d ResourceData) *management.LogStreamSinkHTTP { - return &management.LogStreamSinkHTTP{ - ContentFormat: String(d, "http_content_format"), - ContentType: String(d, "http_content_type"), - Endpoint: String(d, "http_endpoint"), - Authorization: String(d, "http_authorization"), - CustomHeaders: List(d, "http_custom_headers").List(), +func expandLogStreamSinkHTTP(config cty.Value) *management.LogStreamSinkHTTP { + httpSink := &management.LogStreamSinkHTTP{ + ContentFormat: value.String(config.GetAttr("http_content_format")), + ContentType: value.String(config.GetAttr("http_content_type")), + Endpoint: value.String(config.GetAttr("http_endpoint")), + Authorization: value.String(config.GetAttr("http_authorization")), + } + + customHeadersConfig := config.GetAttr("http_custom_headers") + if !customHeadersConfig.IsNull() { + customHeaders := make([]map[string]string, 0) + + customHeadersConfig.ForEachElement(func(_ cty.Value, httpHeader cty.Value) (stop bool) { + customHeaders = append(customHeaders, *value.MapOfStrings(httpHeader)) + return stop + }) + + httpSink.CustomHeaders = &customHeaders } + + return httpSink } -func expandLogStreamSinkDatadog(d ResourceData) *management.LogStreamSinkDatadog { +func expandLogStreamSinkDatadog(config cty.Value) *management.LogStreamSinkDatadog { return &management.LogStreamSinkDatadog{ - Region: String(d, "datadog_region"), - APIKey: String(d, "datadog_api_key"), + Region: value.String(config.GetAttr("datadog_region")), + APIKey: value.String(config.GetAttr("datadog_api_key")), } } -func expandLogStreamSinkSplunk(d ResourceData) *management.LogStreamSinkSplunk { +func expandLogStreamSinkSplunk(config cty.Value) *management.LogStreamSinkSplunk { return &management.LogStreamSinkSplunk{ - Domain: String(d, "splunk_domain"), - Token: String(d, "splunk_token"), - Port: String(d, "splunk_port"), - Secure: Bool(d, "splunk_secure"), + Domain: value.String(config.GetAttr("splunk_domain")), + Token: value.String(config.GetAttr("splunk_token")), + Port: value.String(config.GetAttr("splunk_port")), + Secure: value.Bool(config.GetAttr("splunk_secure")), } } -func expandLogStreamSinkSumo(d ResourceData) *management.LogStreamSinkSumo { +func expandLogStreamSinkSumo(config cty.Value) *management.LogStreamSinkSumo { return &management.LogStreamSinkSumo{ - SourceAddress: String(d, "sumo_source_address"), + SourceAddress: value.String(config.GetAttr("sumo_source_address")), } } diff --git a/internal/provider/resource_auth0_log_stream_test.go b/internal/provider/resource_auth0_log_stream_test.go index b50381219..a54a18285 100644 --- a/internal/provider/resource_auth0_log_stream_test.go +++ b/internal/provider/resource_auth0_log_stream_test.go @@ -115,6 +115,18 @@ func TestAccLogStreamHTTP(t *testing.T) { resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.http_custom_headers.1.value", "foo"), ), }, + { + Config: template.ParseTestName(testAccLogStreamHTTPConfigEmptyCustomHTTPHeaders, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "name", fmt.Sprintf("Acceptance-Test-LogStream-http-new-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "type", "http"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.http_endpoint", "https://example.com/logs"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.http_content_type", "application/json"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.http_content_format", "JSONLINES"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.http_authorization", "AKIAXXXXXXXXXXXXXXXX"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.http_custom_headers.#", "0"), + ), + }, }, }) } @@ -195,6 +207,20 @@ resource "auth0_log_stream" "my_log_stream" { } ` +const testAccLogStreamHTTPConfigEmptyCustomHTTPHeaders = ` +resource "auth0_log_stream" "my_log_stream" { + name = "Acceptance-Test-LogStream-http-new-{{.testName}}" + type = "http" + sink { + http_endpoint = "https://example.com/logs" + http_content_type = "application/json" + http_content_format = "JSONLINES" + http_authorization = "AKIAXXXXXXXXXXXXXXXX" + http_custom_headers = [] + } +} +` + func TestAccLogStreamEventBridge(t *testing.T) { httpRecorder := recorder.New(t) @@ -511,6 +537,15 @@ func TestAccLogStreamSumo(t *testing.T) { resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.sumo_source_address", "prod.sumo.com"), ), }, + { + Config: template.ParseTestName(logStreamSumoConfigUpdateWithEmptyFilters, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "name", fmt.Sprintf("Acceptance-Test-LogStream-sumo-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "type", "sumo"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "filters.#", "0"), + resource.TestCheckResourceAttr("auth0_log_stream.my_log_stream", "sink.0.sumo_source_address", "prod.sumo.com"), + ), + }, }, }) } @@ -533,10 +568,12 @@ resource "auth0_log_stream" "my_log_stream" { } } ` + const logStreamSumoConfigUpdateWithFilters = ` resource "auth0_log_stream" "my_log_stream" { name = "Acceptance-Test-LogStream-sumo-{{.testName}}" type = "sumo" + filters = [ { type = "category" @@ -547,8 +584,22 @@ resource "auth0_log_stream" "my_log_stream" { name = "auth.signup.fail" } ] + sink { - sumo_source_address = "prod.sumo.com" + sumo_source_address = "prod.sumo.com" + } +} +` + +const logStreamSumoConfigUpdateWithEmptyFilters = ` +resource "auth0_log_stream" "my_log_stream" { + name = "Acceptance-Test-LogStream-sumo-{{.testName}}" + type = "sumo" + + filters = [ ] + + sink { + sumo_source_address = "prod.sumo.com" } } ` diff --git a/internal/provider/resource_auth0_organization.go b/internal/provider/resource_auth0_organization.go index 167287819..62e859e99 100644 --- a/internal/provider/resource_auth0_organization.go +++ b/internal/provider/resource_auth0_organization.go @@ -2,14 +2,15 @@ package provider import ( "context" - "fmt" "net/http" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newOrganization() *schema.Resource { @@ -67,100 +68,59 @@ func newOrganization() *schema.Resource { Elem: &schema.Schema{Type: schema.TypeString}, Description: "Metadata associated with the organization. Maximum of 10 metadata properties allowed.", }, - "connections": { - Type: schema.TypeSet, - Optional: true, - Computed: true, - Deprecated: "Management of organizations through this property has been deprecated in favor of the " + - "`auth0_organization_connection` resource and will be deleted in future versions. It is " + - "advised to migrate all managed organization connections to the new resource type.", - Elem: &schema.Resource{ - Schema: map[string]*schema.Schema{ - "connection_id": { - Type: schema.TypeString, - Required: true, - Description: "The connection ID of the connection to add to the organization.", - }, - "assign_membership_on_login": { - Type: schema.TypeBool, - Optional: true, - Default: false, - Description: "When `true`, all users that log in with this connection will be " + - "automatically granted membership in the organization. When `false`, users must be " + - "granted membership in the organization before logging in with this connection.", - }, - }, - }, - }, }, } } func createOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - organization := expandOrganization(d) - api := m.(*management.Management) + + organization := expandOrganization(d) if err := api.Organization.Create(organization); err != nil { return diag.FromErr(err) } d.SetId(organization.GetID()) - if err := updateOrganizationConnections(d, api); err != nil { - return diag.FromErr(fmt.Errorf("failed to update organization connections: %w", err)) - } - return readOrganization(ctx, d, m) } func readOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + organization, err := api.Organization.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } - organizationConnectionList, err := api.Organization.Connections(d.Id()) - if err != nil { - return diag.FromErr(err) - } - result := multierror.Append( - d.Set("name", organization.Name), - d.Set("display_name", organization.DisplayName), - d.Set("branding", flattenOrganizationBranding(organization.Branding)), - d.Set("metadata", organization.Metadata), - d.Set("connections", flattenOrganizationConnections(organizationConnectionList)), + d.Set("name", organization.GetName()), + d.Set("display_name", organization.GetDisplayName()), + d.Set("branding", flattenOrganizationBranding(organization.GetBranding())), + d.Set("metadata", organization.GetMetadata()), ) return diag.FromErr(result.ErrorOrNil()) } func updateOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - organization := expandOrganization(d) - api := m.(*management.Management) + + organization := expandOrganization(d) if err := api.Organization.Update(d.Id(), organization); err != nil { return diag.FromErr(err) } - if d.HasChange("connections") { - if err := updateOrganizationConnections(d, api); err != nil { - return diag.FromErr(fmt.Errorf("failed to update organization connections: %w", err)) - } - } - return readOrganization(ctx, d, m) } func deleteOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.Organization.Delete(d.Id()); err != nil { if err, ok := err.(management.Error); ok && err.Status() == http.StatusNotFound { d.SetId("") @@ -169,79 +129,39 @@ func deleteOrganization(ctx context.Context, d *schema.ResourceData, m interface return diag.FromErr(err) } + d.SetId("") return nil } -func updateOrganizationConnections(d *schema.ResourceData, api *management.Management) error { - toAdd, toRemove := Diff(d, "connections") - - connectionOperations := make(map[string]string) - toRemove.Elem(func(data ResourceData) { - oldConnectionID, _ := data.GetChange("connection_id") - connectionOperations[oldConnectionID.(string)] = "deleteConnection" - }) - - toAdd.Elem(func(data ResourceData) { - newConnectionID := data.Get("connection_id").(string) - - if _, ok := connectionOperations[newConnectionID]; ok { - delete(connectionOperations, newConnectionID) - } else { - connectionOperations[newConnectionID] = "addConnection" - } - }) - - for key, value := range connectionOperations { - if value == "deleteConnection" { - if err := api.Organization.DeleteConnection(d.Id(), key); err != nil { - return err - } - } - if value == "addConnection" { - organizationConnection := &management.OrganizationConnection{ - ConnectionID: auth0.String(key), - } - if err := api.Organization.AddConnection(d.Id(), organizationConnection); err != nil { - return err - } - } - } - - var err error - Set(d, "connections").Elem(func(data ResourceData) { - connectionID := data.Get("connection_id").(string) - organizationConnection := &management.OrganizationConnection{ - AssignMembershipOnLogin: Bool(data, "assign_membership_on_login"), - } - - err = api.Organization.UpdateConnection(d.Id(), connectionID, organizationConnection) - if err != nil { - return - } - }) - - return err -} - func expandOrganization(d *schema.ResourceData) *management.Organization { + config := d.GetRawConfig() + organization := &management.Organization{ - Name: String(d, "name"), - DisplayName: String(d, "display_name"), + Name: value.String(config.GetAttr("name")), + DisplayName: value.String(config.GetAttr("display_name")), + Branding: expandOrganizationBranding(config.GetAttr("branding")), } if d.HasChange("metadata") { - metadata := Map(d, "metadata") - organization.Metadata = &metadata + organization.Metadata = value.MapOfStrings(config.GetAttr("metadata")) } - List(d, "branding").Elem(func(d ResourceData) { - organization.Branding = &management.OrganizationBranding{ - LogoURL: String(d, "logo_url"), - Colors: Map(d, "colors"), + return organization +} + +func expandOrganizationBranding(brandingList cty.Value) *management.OrganizationBranding { + var organizationBranding *management.OrganizationBranding + + brandingList.ForEachElement(func(_ cty.Value, branding cty.Value) (stop bool) { + organizationBranding = &management.OrganizationBranding{ + LogoURL: value.String(branding.GetAttr("logo_url")), + Colors: value.MapOfStrings(branding.GetAttr("colors")), } + + return stop }) - return organization + return organizationBranding } func flattenOrganizationBranding(organizationBranding *management.OrganizationBranding) []interface{} { @@ -252,23 +172,7 @@ func flattenOrganizationBranding(organizationBranding *management.OrganizationBr return []interface{}{ map[string]interface{}{ "logo_url": organizationBranding.GetLogoURL(), - "colors": organizationBranding.Colors, + "colors": organizationBranding.GetColors(), }, } } - -func flattenOrganizationConnections(connectionList *management.OrganizationConnectionList) []interface{} { - if connectionList == nil { - return nil - } - - connections := make([]interface{}, len(connectionList.OrganizationConnections)) - for index, connection := range connectionList.OrganizationConnections { - connections[index] = map[string]interface{}{ - "connection_id": connection.GetConnectionID(), - "assign_membership_on_login": connection.GetAssignMembershipOnLogin(), - } - } - - return connections -} diff --git a/internal/provider/resource_auth0_organization_connection.go b/internal/provider/resource_auth0_organization_connection.go index 2f76ad6ae..375aef8e6 100644 --- a/internal/provider/resource_auth0_organization_connection.go +++ b/internal/provider/resource_auth0_organization_connection.go @@ -94,9 +94,12 @@ func createOrganizationConnection(ctx context.Context, data *schema.ResourceData api := meta.(*management.Management) organizationID := data.Get("organization_id").(string) + connectionID := data.Get("connection_id").(string) + assignMembershipOnLogin := data.Get("assign_membership_on_login").(bool) + organizationConnection := &management.OrganizationConnection{ - ConnectionID: String(data, "connection_id"), - AssignMembershipOnLogin: Bool(data, "assign_membership_on_login"), + ConnectionID: &connectionID, + AssignMembershipOnLogin: &assignMembershipOnLogin, } if err := api.Organization.AddConnection(organizationID, organizationConnection); err != nil { @@ -113,6 +116,7 @@ func readOrganizationConnection(ctx context.Context, data *schema.ResourceData, organizationID := data.Get("organization_id").(string) connectionID := data.Get("connection_id").(string) + organizationConnection, err := api.Organization.Connection(organizationID, connectionID) if err != nil { return diag.FromErr(err) @@ -132,9 +136,12 @@ func updateOrganizationConnection(ctx context.Context, data *schema.ResourceData organizationID := data.Get("organization_id").(string) connectionID := data.Get("connection_id").(string) + assignMembershipOnLogin := data.Get("assign_membership_on_login").(bool) + organizationConnection := &management.OrganizationConnection{ - AssignMembershipOnLogin: Bool(data, "assign_membership_on_login"), + AssignMembershipOnLogin: &assignMembershipOnLogin, } + if err := api.Organization.UpdateConnection(organizationID, connectionID, organizationConnection); err != nil { return diag.FromErr(err) } @@ -157,6 +164,5 @@ func deleteOrganizationConnection(ctx context.Context, data *schema.ResourceData } data.SetId("") - return nil } diff --git a/internal/provider/resource_auth0_organization_member.go b/internal/provider/resource_auth0_organization_member.go index 632b8262e..a407ad6e0 100644 --- a/internal/provider/resource_auth0_organization_member.go +++ b/internal/provider/resource_auth0_organization_member.go @@ -79,82 +79,74 @@ func importOrganizationMember( } func createOrganizationMember(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api := m.(*management.Management) + userID := d.Get("user_id").(string) orgID := d.Get("organization_id").(string) - api := m.(*management.Management) if err := api.Organization.AddMembers(orgID, []string{userID}); err != nil { return diag.FromErr(err) } d.SetId(resource.UniqueId()) - if err := assignRoles(d, m); err != nil { + if err := assignRoles(d, api); err != nil { return diag.FromErr(fmt.Errorf("failed to assign roles to organization member: %w", err)) } return readOrganizationMember(ctx, d, m) } -func assignRoles(d *schema.ResourceData, m interface{}) error { +func assignRoles(d *schema.ResourceData, api *management.Management) error { + if !d.HasChange("roles") { + return nil + } + orgID := d.Get("organization_id").(string) userID := d.Get("user_id").(string) add, rm := Diff(d, "roles") - err := addMemberRoles(orgID, userID, add.List(), m) - if err != nil { - return err - } - - err = removeMemberRoles(orgID, userID, rm.List(), m) - if err != nil { + if err := addMemberRoles(orgID, userID, add.List(), api); err != nil { return err } - return nil + return removeMemberRoles(orgID, userID, rm.List(), api) } -func removeMemberRoles(orgID string, userID string, roles []interface{}, m interface{}) error { - api := m.(*management.Management) - - rolesToRemove := []string{} - for _, r := range roles { - rolesToRemove = append(rolesToRemove, r.(string)) - } - if len(rolesToRemove) == 0 { +func removeMemberRoles(orgID string, userID string, roles []interface{}, api *management.Management) error { + if len(roles) == 0 { return nil } + var rolesToRemove []string + for _, role := range roles { + rolesToRemove = append(rolesToRemove, role.(string)) + } + err := api.Organization.DeleteMemberRoles(orgID, userID, rolesToRemove) if err != nil { - // Ignore 404 errors as the role may have been deleted - // prior to un-assigning them from the member. + // Ignore 404 errors as the role may have been deleted prior to un-assigning them from the member. if err, ok := err.(management.Error); ok && err.Status() == http.StatusNotFound { return nil } + return err } return nil } -func addMemberRoles(orgID string, userID string, roles []interface{}, m interface{}) error { - api := m.(*management.Management) - - var rolesToAssign []string - for _, r := range roles { - rolesToAssign = append(rolesToAssign, r.(string)) - } - if len(rolesToAssign) == 0 { +func addMemberRoles(orgID string, userID string, roles []interface{}, api *management.Management) error { + if len(roles) == 0 { return nil } - err := api.Organization.AssignMemberRoles(orgID, userID, rolesToAssign) - if err != nil { - return err + var rolesToAssign []string + for _, role := range roles { + rolesToAssign = append(rolesToAssign, role.(string)) } - return nil + return api.Organization.AssignMemberRoles(orgID, userID, rolesToAssign) } func readOrganizationMember(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { @@ -168,20 +160,20 @@ func readOrganizationMember(ctx context.Context, d *schema.ResourceData, m inter return diag.FromErr(err) } - var rolesToSet []interface{} + var rolesToSet []string for _, role := range roles.Roles { - rolesToSet = append(rolesToSet, role.ID) + rolesToSet = append(rolesToSet, role.GetID()) } - result := multierror.Append( - d.Set("roles", rolesToSet), - ) + err = d.Set("roles", rolesToSet) - return diag.FromErr(result.ErrorOrNil()) + return diag.FromErr(err) } func updateOrganizationMember(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - if err := assignRoles(d, m); err != nil { + api := m.(*management.Management) + + if err := assignRoles(d, api); err != nil { return diag.FromErr(fmt.Errorf("failed to assign members to organization. %w", err)) } @@ -196,12 +188,12 @@ func deleteOrganizationMember(ctx context.Context, d *schema.ResourceData, m int if err := api.Organization.DeleteMember(orgID, []string{userID}); err != nil { if err, ok := err.(management.Error); ok && err.Status() == http.StatusNotFound { + d.SetId("") return nil } return diag.FromErr(err) } d.SetId("") - return nil } diff --git a/internal/provider/resource_auth0_organization_test.go b/internal/provider/resource_auth0_organization_test.go index f75f4d962..7813ebfa1 100644 --- a/internal/provider/resource_auth0_organization_test.go +++ b/internal/provider/resource_auth0_organization_test.go @@ -67,14 +67,17 @@ resource auth0_connection acmeinc { } ` -const testAccOrganizationCreate = testAccOrganizationGiven2Connections + ` +const testAccOrganizationEmpty = ` resource auth0_organization acme { name = "test-{{.testName}}" display_name = "Acme Inc. {{.testName}}" +} +` - connections { - connection_id = auth0_connection.acme.id - } +const testAccOrganizationCreate = testAccOrganizationGiven2Connections + ` +resource auth0_organization acme { + name = "test-{{.testName}}" + display_name = "Acme Inc. {{.testName}}" } ` @@ -94,16 +97,6 @@ resource auth0_organization acme { page_background = "#e3e2ff" } } - - connections { - connection_id = auth0_connection.acme.id - assign_membership_on_login = false - } - - connections { - connection_id = auth0_connection.acmeinc.id - assign_membership_on_login = true - } } ` @@ -124,11 +117,6 @@ resource auth0_organization acme { page_background = "#e3e2ff" } } - - connections { - connection_id = auth0_connection.acmeinc.id - assign_membership_on_login = false - } } ` @@ -148,11 +136,6 @@ resource auth0_organization acme { page_background = "#e3e2ff" } } - - connections { - connection_id = auth0_connection.acmeinc.id - assign_membership_on_login = true - } } ` @@ -160,6 +143,7 @@ const testAccOrganizationRemoveAllOptionalParams = ` resource auth0_organization acme { name = "test-{{.testName}}" display_name = "Acme Inc. {{.testName}}" + metadata = {} } ` @@ -169,6 +153,15 @@ func TestAccOrganization(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccOrganizationEmpty, strings.ToLower(t.Name())), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_organization.acme", "name", fmt.Sprintf("test-%s", strings.ToLower(t.Name()))), + resource.TestCheckResourceAttr("auth0_organization.acme", "display_name", fmt.Sprintf("Acme Inc. %s", strings.ToLower(t.Name()))), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.#", "0"), + resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.%", "0"), + ), + }, { Config: template.ParseTestName(testAccOrganizationCreate, strings.ToLower(t.Name())), Check: resource.ComposeTestCheckFunc( @@ -176,9 +169,6 @@ func TestAccOrganization(t *testing.T) { resource.TestCheckResourceAttr("auth0_organization.acme", "display_name", fmt.Sprintf("Acme Inc. %s", strings.ToLower(t.Name()))), resource.TestCheckResourceAttr("auth0_organization.acme", "branding.#", "0"), resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.%", "0"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.#", "1"), - resource.TestCheckResourceAttrSet("auth0_organization.acme", "connections.0.connection_id"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.0.assign_membership_on_login", "false"), ), }, { @@ -192,11 +182,6 @@ func TestAccOrganization(t *testing.T) { resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.primary", "#e3e2f0"), resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.page_background", "#e3e2ff"), resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.%", "1"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.#", "2"), - resource.TestCheckResourceAttrSet("auth0_organization.acme", "connections.0.connection_id"), - resource.TestCheckResourceAttrSet("auth0_organization.acme", "connections.1.connection_id"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.0.assign_membership_on_login", "false"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.1.assign_membership_on_login", "true"), ), }, { @@ -212,9 +197,6 @@ func TestAccOrganization(t *testing.T) { resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.%", "2"), resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.some_key", "some_value"), resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.another_key", "another_value"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.#", "1"), - resource.TestCheckResourceAttrSet("auth0_organization.acme", "connections.0.connection_id"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.0.assign_membership_on_login", "false"), ), }, { @@ -229,9 +211,6 @@ func TestAccOrganization(t *testing.T) { resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.page_background", "#e3e2ff"), resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.%", "1"), resource.TestCheckResourceAttr("auth0_organization.acme", "metadata.some_key", "some_value"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.#", "1"), - resource.TestCheckResourceAttrSet("auth0_organization.acme", "connections.0.connection_id"), - resource.TestCheckResourceAttr("auth0_organization.acme", "connections.0.assign_membership_on_login", "true"), ), }, { diff --git a/internal/provider/resource_auth0_prompt.go b/internal/provider/resource_auth0_prompt.go index 9be4c42b4..9306fbd63 100644 --- a/internal/provider/resource_auth0_prompt.go +++ b/internal/provider/resource_auth0_prompt.go @@ -4,11 +4,14 @@ import ( "context" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newPrompt() *schema.Resource { @@ -26,6 +29,7 @@ func newPrompt() *schema.Resource { "universal_login_experience": { Type: schema.TypeString, Optional: true, + Computed: true, ValidateFunc: validation.StringInSlice([]string{ "new", "classic", }, false), @@ -40,6 +44,7 @@ func newPrompt() *schema.Resource { "webauthn_platform_first_factor": { Type: schema.TypeBool, Optional: true, + Computed: true, Description: "Determines if the login screen uses identifier and biometrics first.", }, }, @@ -71,7 +76,7 @@ func readPrompt(ctx context.Context, d *schema.ResourceData, m interface{}) diag func updatePrompt(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) - prompt := expandPrompt(d) + prompt := expandPrompt(d.GetRawConfig()) if err := api.Prompt.Update(prompt); err != nil { return diag.FromErr(err) } @@ -84,10 +89,16 @@ func deletePrompt(ctx context.Context, d *schema.ResourceData, m interface{}) di return nil } -func expandPrompt(d *schema.ResourceData) *management.Prompt { - return &management.Prompt{ - UniversalLoginExperience: d.Get("universal_login_experience").(string), - IdentifierFirst: Bool(d, "identifier_first"), - WebAuthnPlatformFirstFactor: Bool(d, "webauthn_platform_first_factor"), +func expandPrompt(d cty.Value) *management.Prompt { + prompt := management.Prompt{ + IdentifierFirst: value.Bool(d.GetAttr("identifier_first")), + WebAuthnPlatformFirstFactor: value.Bool(d.GetAttr("webauthn_platform_first_factor")), + } + + ule := d.GetAttr("universal_login_experience") + if !ule.IsNull() { + prompt.UniversalLoginExperience = ule.AsString() } + + return &prompt } diff --git a/internal/provider/resource_auth0_prompt_test.go b/internal/provider/resource_auth0_prompt_test.go index 800075627..13b214ad5 100644 --- a/internal/provider/resource_auth0_prompt_test.go +++ b/internal/provider/resource_auth0_prompt_test.go @@ -8,6 +8,12 @@ import ( "github.com/auth0/terraform-provider-auth0/internal/recorder" ) +const testAccPromptEmpty = ` +resource "auth0_prompt" "prompt" { + identifier_first = false # Required by API to include at least one property +} +` + const testAccPromptCreate = ` resource "auth0_prompt" "prompt" { universal_login_experience = "classic" @@ -38,6 +44,14 @@ func TestAccPrompt(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ + { + Config: testAccPromptEmpty, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("auth0_prompt.prompt", "universal_login_experience"), + resource.TestCheckResourceAttr("auth0_prompt.prompt", "identifier_first", "false"), + resource.TestCheckResourceAttrSet("auth0_prompt.prompt", "webauthn_platform_first_factor"), + ), + }, { Config: testAccPromptCreate, Check: resource.ComposeTestCheckFunc( @@ -62,6 +76,14 @@ func TestAccPrompt(t *testing.T) { resource.TestCheckResourceAttr("auth0_prompt.prompt", "webauthn_platform_first_factor", "true"), ), }, + { + Config: testAccPromptEmpty, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_prompt.prompt", "universal_login_experience", "new"), + resource.TestCheckResourceAttr("auth0_prompt.prompt", "identifier_first", "false"), + resource.TestCheckResourceAttr("auth0_prompt.prompt", "webauthn_platform_first_factor", "true"), + ), + }, }, }) } diff --git a/internal/provider/resource_auth0_resource_server.go b/internal/provider/resource_auth0_resource_server.go index dd65d8cd8..aae234d84 100644 --- a/internal/provider/resource_auth0_resource_server.go +++ b/internal/provider/resource_auth0_resource_server.go @@ -7,10 +7,13 @@ import ( "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newResourceServer() *schema.Resource { @@ -31,7 +34,7 @@ func newResourceServer() *schema.Resource { }, "identifier": { Type: schema.TypeString, - Optional: true, + Required: true, ForceNew: true, Description: "Unique identifier for the resource server. Used as the audience parameter " + "for authorization calls. Cannot be changed once set.", @@ -102,6 +105,7 @@ func newResourceServer() *schema.Resource { "skip_consent_for_verifiable_first_party_clients": { Type: schema.TypeBool, Optional: true, + Computed: true, Description: "Indicates whether to skip user consent for applications flagged as first party.", }, "verification_location": { @@ -116,6 +120,7 @@ func newResourceServer() *schema.Resource { }, "enforce_policies": { Type: schema.TypeBool, + Computed: true, Optional: true, Description: "Indicates whether authorization polices are enforced.", }, @@ -134,8 +139,9 @@ func newResourceServer() *schema.Resource { } func createResourceServer(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - resourceServer := expandResourceServer(d) api := m.(*management.Management) + + resourceServer := expandResourceServer(d) if err := api.ResourceServer.Create(resourceServer); err != nil { return diag.FromErr(err) } @@ -147,53 +153,42 @@ func createResourceServer(ctx context.Context, d *schema.ResourceData, m interfa func readResourceServer(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + resourceServer, err := api.ResourceServer.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } result := multierror.Append( - d.Set("name", resourceServer.Name), - d.Set("identifier", resourceServer.Identifier), - d.Set("scopes", func() []map[string]interface{} { - scopes := make([]map[string]interface{}, len(resourceServer.Scopes)) - for index, scope := range resourceServer.Scopes { - scopes[index] = map[string]interface{}{ - "value": scope.Value, - "description": scope.Description, - } - } - return scopes - }()), - d.Set("signing_alg", resourceServer.SigningAlgorithm), - d.Set("signing_secret", resourceServer.SigningSecret), - d.Set("allow_offline_access", resourceServer.AllowOfflineAccess), - d.Set("token_lifetime", resourceServer.TokenLifetime), - d.Set("token_lifetime_for_web", resourceServer.TokenLifetimeForWeb), + d.Set("name", resourceServer.GetName()), + d.Set("identifier", resourceServer.GetIdentifier()), + d.Set("scopes", flattenResourceServerScopes(resourceServer.GetScopes())), + d.Set("signing_alg", resourceServer.GetSigningAlgorithm()), + d.Set("signing_secret", resourceServer.GetSigningSecret()), + d.Set("allow_offline_access", resourceServer.GetAllowOfflineAccess()), + d.Set("token_lifetime", resourceServer.GetTokenLifetime()), + d.Set("token_lifetime_for_web", resourceServer.GetTokenLifetimeForWeb()), d.Set( "skip_consent_for_verifiable_first_party_clients", - resourceServer.SkipConsentForVerifiableFirstPartyClients, + resourceServer.GetSkipConsentForVerifiableFirstPartyClients(), ), - d.Set("verification_location", resourceServer.VerificationLocation), - d.Set("options", resourceServer.Options), - d.Set("enforce_policies", resourceServer.EnforcePolicies), - d.Set("token_dialect", resourceServer.TokenDialect), + d.Set("verification_location", resourceServer.GetVerificationLocation()), + d.Set("options", resourceServer.GetOptions()), + d.Set("enforce_policies", resourceServer.GetEnforcePolicies()), + d.Set("token_dialect", resourceServer.GetTokenDialect()), ) return diag.FromErr(result.ErrorOrNil()) } func updateResourceServer(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - resourceServer := expandResourceServer(d) - resourceServer.Identifier = nil - api := m.(*management.Management) + + resourceServer := expandResourceServer(d) if err := api.ResourceServer.Update(d.Id(), resourceServer); err != nil { return diag.FromErr(err) } @@ -203,40 +198,76 @@ func updateResourceServer(ctx context.Context, d *schema.ResourceData, m interfa func deleteResourceServer(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.ResourceServer.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } + return diag.FromErr(err) } + d.SetId("") return nil } func expandResourceServer(d *schema.ResourceData) *management.ResourceServer { + config := d.GetRawConfig() + resourceServer := &management.ResourceServer{ - Name: String(d, "name"), - Identifier: String(d, "identifier"), - SigningAlgorithm: String(d, "signing_alg"), - SigningSecret: String(d, "signing_secret", IsNewResource(), HasChange()), - AllowOfflineAccess: Bool(d, "allow_offline_access"), - TokenLifetime: Int(d, "token_lifetime"), - TokenLifetimeForWeb: Int(d, "token_lifetime_for_web"), - VerificationLocation: String(d, "verification_location"), - Options: Map(d, "options"), - EnforcePolicies: Bool(d, "enforce_policies"), - TokenDialect: String(d, "token_dialect", IsNewResource(), HasChange()), - SkipConsentForVerifiableFirstPartyClients: Bool(d, "skip_consent_for_verifiable_first_party_clients"), + Name: value.String(config.GetAttr("name")), + SigningAlgorithm: value.String(config.GetAttr("signing_alg")), + AllowOfflineAccess: value.Bool(config.GetAttr("allow_offline_access")), + TokenLifetime: value.Int(config.GetAttr("token_lifetime")), + TokenLifetimeForWeb: value.Int(config.GetAttr("token_lifetime_for_web")), + VerificationLocation: value.String(config.GetAttr("verification_location")), + EnforcePolicies: value.Bool(config.GetAttr("enforce_policies")), + Options: value.MapOfStrings(config.GetAttr("options")), + SkipConsentForVerifiableFirstPartyClients: value.Bool( + config.GetAttr("skip_consent_for_verifiable_first_party_clients"), + ), + Scopes: expandResourceServerScopes(config.GetAttr("scopes")), + } + + if d.IsNewResource() { + resourceServer.Identifier = value.String(config.GetAttr("identifier")) + } + + if d.IsNewResource() || d.HasChange("signing_secret") { + resourceServer.SigningSecret = value.String(config.GetAttr("signing_secret")) + } + + if d.IsNewResource() || d.HasChange("token_dialect") { + resourceServer.TokenDialect = value.String(config.GetAttr("token_dialect")) } - Set(d, "scopes").Elem(func(d ResourceData) { - resourceServer.Scopes = append(resourceServer.Scopes, &management.ResourceServerScope{ - Value: String(d, "value"), - Description: String(d, "description"), + return resourceServer +} + +func expandResourceServerScopes(scopes cty.Value) *[]management.ResourceServerScope { + resourceServerScopes := make([]management.ResourceServerScope, 0) + + scopes.ForEachElement(func(_ cty.Value, scope cty.Value) (stop bool) { + resourceServerScopes = append(resourceServerScopes, management.ResourceServerScope{ + Value: value.String(scope.GetAttr("value")), + Description: value.String(scope.GetAttr("description")), }) + + return stop }) - return resourceServer + return &resourceServerScopes +} + +func flattenResourceServerScopes(resourceServerScopes []management.ResourceServerScope) []map[string]interface{} { + scopes := make([]map[string]interface{}, len(resourceServerScopes)) + + for index, scope := range resourceServerScopes { + scopes[index] = map[string]interface{}{ + "value": scope.Value, + "description": scope.Description, + } + } + + return scopes } diff --git a/internal/provider/resource_auth0_resource_server_test.go b/internal/provider/resource_auth0_resource_server_test.go index 145f24898..513461103 100644 --- a/internal/provider/resource_auth0_resource_server_test.go +++ b/internal/provider/resource_auth0_resource_server_test.go @@ -43,6 +43,16 @@ func TestAccResourceServer(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccResourceServerConfigEmpty, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "identifier", fmt.Sprintf("https://uat.api.terraform-provider-auth0.com/%s", t.Name())), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "name", ""), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "scopes.#", "0"), + resource.TestCheckResourceAttrSet("auth0_resource_server.my_resource_server", "signing_alg"), + resource.TestCheckResourceAttrSet("auth0_resource_server.my_resource_server", "token_lifetime_for_web"), + ), + }, { Config: template.ParseTestName(testAccResourceServerConfigCreate, t.Name()), Check: resource.ComposeTestCheckFunc( @@ -88,10 +98,29 @@ func TestAccResourceServer(t *testing.T) { ), ), }, + { + Config: template.ParseTestName(testAccResourceServerConfigEmptyAgain, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "identifier", fmt.Sprintf("https://uat.api.terraform-provider-auth0.com/%s", t.Name())), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "scopes.#", "0"), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "allow_offline_access", "false"), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "signing_alg", "RS256"), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "token_lifetime", "7200"), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "token_lifetime_for_web", "3600"), + resource.TestCheckResourceAttr("auth0_resource_server.my_resource_server", "skip_consent_for_verifiable_first_party_clients", "true"), + ), + }, }, }) } +const testAccResourceServerConfigEmpty = ` +resource "auth0_resource_server" "my_resource_server" { + identifier = "https://uat.api.terraform-provider-auth0.com/{{.testName}}" +} +` + const testAccResourceServerConfigCreate = ` resource "auth0_resource_server" "my_resource_server" { name = "Acceptance Test - {{.testName}}" @@ -133,3 +162,10 @@ resource "auth0_resource_server" "my_resource_server" { enforce_policies = true } ` + +const testAccResourceServerConfigEmptyAgain = ` +resource "auth0_resource_server" "my_resource_server" { + identifier = "https://uat.api.terraform-provider-auth0.com/{{.testName}}" + name = "Acceptance Test - {{.testName}}" +} +` diff --git a/internal/provider/resource_auth0_role.go b/internal/provider/resource_auth0_role.go index e652c9d34..5879c0c45 100644 --- a/internal/provider/resource_auth0_role.go +++ b/internal/provider/resource_auth0_role.go @@ -9,6 +9,8 @@ import ( "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newRole() *schema.Resource { @@ -58,25 +60,19 @@ func newRole() *schema.Resource { } func createRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - role := expandRole(d) api := m.(*management.Management) + + role := expandRole(d) if err := api.Role.Create(role); err != nil { return diag.FromErr(err) } - d.SetId(auth0.StringValue(role.ID)) + d.SetId(role.GetID()) - // Enable partial state mode. Sub-resources can potentially cause partial - // state. Therefore, we must explicitly tell Terraform what is safe to - // persist and what is not. - // - // See: https://www.terraform.io/docs/extend/writing-custom-providers.html d.Partial(true) if err := assignRolePermissions(d, m); err != nil { return diag.FromErr(err) } - // We succeeded, disable partial mode. - // This causes Terraform to save all fields again. d.Partial(false) return readRole(ctx, d, m) @@ -84,22 +80,19 @@ func createRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag func readRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + role, err := api.Role.Read(d.Id()) if err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } return diag.FromErr(err) } - d.SetId(role.GetID()) - result := multierror.Append( - d.Set("name", role.Name), - d.Set("description", role.Description), + d.Set("name", role.GetName()), + d.Set("description", role.GetDescription()), ) var permissions []*management.Permission @@ -115,17 +108,22 @@ func readRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag.D if !permissionList.HasNext() { break } + page++ } - result = multierror.Append(result, d.Set("permissions", flattenRolePermissions(permissions))) + result = multierror.Append( + result, + d.Set("permissions", flattenRolePermissions(permissions)), + ) return diag.FromErr(result.ErrorOrNil()) } func updateRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - role := expandRole(d) api := m.(*management.Management) + + role := expandRole(d) if err := api.Role.Update(d.Id(), role); err != nil { return diag.FromErr(err) } @@ -141,22 +139,25 @@ func updateRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag func deleteRole(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + if err := api.Role.Delete(d.Id()); err != nil { - if mErr, ok := err.(management.Error); ok { - if mErr.Status() == http.StatusNotFound { - d.SetId("") - return nil - } + if mErr, ok := err.(management.Error); ok && mErr.Status() == http.StatusNotFound { + d.SetId("") + return nil } + return diag.FromErr(err) } + d.SetId("") return nil } func expandRole(d *schema.ResourceData) *management.Role { + config := d.GetRawConfig() + return &management.Role{ - Name: String(d, "name"), - Description: String(d, "description"), + Name: value.String(config.GetAttr("name")), + Description: value.String(config.GetAttr("description")), } } @@ -202,8 +203,8 @@ func flattenRolePermissions(permissions []*management.Permission) []interface{} var result []interface{} for _, permission := range permissions { result = append(result, map[string]interface{}{ - "name": permission.Name, - "resource_server_identifier": permission.ResourceServerIdentifier, + "name": permission.GetName(), + "resource_server_identifier": permission.GetResourceServerIdentifier(), }) } return result diff --git a/internal/provider/resource_auth0_role_test.go b/internal/provider/resource_auth0_role_test.go index 60ec13222..2096594e1 100644 --- a/internal/provider/resource_auth0_role_test.go +++ b/internal/provider/resource_auth0_role_test.go @@ -58,6 +58,14 @@ func TestAccRole(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccRoleEmpty, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_role.the_one", "name", fmt.Sprintf("The One - Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_role.the_one", "description", ""), + resource.TestCheckResourceAttr("auth0_role.the_one", "permissions.#", "0"), + ), + }, { Config: template.ParseTestName(testAccRoleCreate, t.Name()), Check: resource.ComposeTestCheckFunc( @@ -73,10 +81,24 @@ func TestAccRole(t *testing.T) { resource.TestCheckResourceAttr("auth0_role.the_one", "permissions.#", "2"), ), }, + { + Config: template.ParseTestName(testAccRoleEmptyAgain, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_role.the_one", "name", fmt.Sprintf("The One - Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttr("auth0_role.the_one", "description", " "), // #Management API ignores empty strings for role descriptions + resource.TestCheckResourceAttr("auth0_role.the_one", "permissions.#", "0"), + ), + }, }, }) } +const testAccRoleEmpty = ` +resource auth0_role the_one { + name = "The One - Acceptance Test - {{.testName}}" +} +` + const testAccRoleAux = ` resource auth0_resource_server matrix { name = "Role - Acceptance Test - {{.testName}}" @@ -117,6 +139,13 @@ resource auth0_role the_one { } ` +const testAccRoleEmptyAgain = ` +resource auth0_role the_one { + name = "The One - Acceptance Test - {{.testName}}" + description = " " +} +` + func TestAccRolePermissions(t *testing.T) { httpRecorder := recorder.New(t) diff --git a/internal/provider/resource_auth0_rule.go b/internal/provider/resource_auth0_rule.go index f41186116..6e063f5c0 100644 --- a/internal/provider/resource_auth0_rule.go +++ b/internal/provider/resource_auth0_rule.go @@ -7,10 +7,13 @@ import ( "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) var ruleNameRegexp = regexp.MustCompile(`^[^\s-][\w -]+[^\s-]$`) @@ -55,6 +58,7 @@ func newRule() *schema.Resource { "enabled": { Type: schema.TypeBool, Optional: true, + Computed: true, Description: "Indicates whether the rule is enabled.", }, }, @@ -62,7 +66,7 @@ func newRule() *schema.Resource { } func createRule(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - rule := buildRule(d) + rule := expandRule(d.GetRawConfig()) api := m.(*management.Management) if err := api.Rule.Create(rule); err != nil { return diag.FromErr(err) @@ -97,7 +101,7 @@ func readRule(ctx context.Context, d *schema.ResourceData, m interface{}) diag.D } func updateRule(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - rule := buildRule(d) + rule := expandRule(d.GetRawConfig()) api := m.(*management.Management) if err := api.Rule.Update(d.Id(), rule); err != nil { return diag.FromErr(err) @@ -121,11 +125,11 @@ func deleteRule(ctx context.Context, d *schema.ResourceData, m interface{}) diag return nil } -func buildRule(d *schema.ResourceData) *management.Rule { +func expandRule(d cty.Value) *management.Rule { return &management.Rule{ - Name: String(d, "name"), - Script: String(d, "script"), - Order: Int(d, "order"), - Enabled: Bool(d, "enabled"), + Name: value.String(d.GetAttr("name")), + Script: value.String(d.GetAttr("script")), + Order: value.Int(d.GetAttr("order")), + Enabled: value.Bool(d.GetAttr("enabled")), } } diff --git a/internal/provider/resource_auth0_rule_config.go b/internal/provider/resource_auth0_rule_config.go index 0cbb9983f..564410d20 100644 --- a/internal/provider/resource_auth0_rule_config.go +++ b/internal/provider/resource_auth0_rule_config.go @@ -6,8 +6,11 @@ import ( "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newRuleConfig() *schema.Resource { @@ -41,7 +44,7 @@ func newRuleConfig() *schema.Resource { } func createRuleConfig(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - ruleConfig := buildRuleConfig(d) + ruleConfig := expandRuleConfig(d.GetRawConfig()) key := auth0.StringValue(ruleConfig.Key) ruleConfig.Key = nil api := m.(*management.Management) @@ -71,7 +74,7 @@ func readRuleConfig(ctx context.Context, d *schema.ResourceData, m interface{}) } func updateRuleConfig(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - ruleConfig := buildRuleConfig(d) + ruleConfig := expandRuleConfig(d.GetRawConfig()) ruleConfig.Key = nil api := m.(*management.Management) if err := api.RuleConfig.Upsert(d.Id(), ruleConfig); err != nil { @@ -95,9 +98,9 @@ func deleteRuleConfig(ctx context.Context, d *schema.ResourceData, m interface{} return nil } -func buildRuleConfig(d *schema.ResourceData) *management.RuleConfig { +func expandRuleConfig(d cty.Value) *management.RuleConfig { return &management.RuleConfig{ - Key: String(d, "key"), - Value: String(d, "value"), + Key: value.String(d.GetAttr("key")), + Value: value.String(d.GetAttr("value")), } } diff --git a/internal/provider/resource_auth0_rule_config_test.go b/internal/provider/resource_auth0_rule_config_test.go index 8802f9587..5b4c63ecf 100644 --- a/internal/provider/resource_auth0_rule_config_test.go +++ b/internal/provider/resource_auth0_rule_config_test.go @@ -74,6 +74,14 @@ func TestAccRuleConfig(t *testing.T) { resource.TestCheckResourceAttr("auth0_rule_config.foo", "value", "foo"), ), }, + { + Config: template.ParseTestName(testAccRuleConfigEmptyValue, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_rule_config.foo", "id", fmt.Sprintf("acc_test_key_%s", t.Name())), + resource.TestCheckResourceAttr("auth0_rule_config.foo", "key", fmt.Sprintf("acc_test_key_%s", t.Name())), + resource.TestCheckResourceAttr("auth0_rule_config.foo", "value", ""), + ), + }, }, }) } @@ -98,3 +106,10 @@ resource "auth0_rule_config" "foo" { value = "foo" } ` + +const testAccRuleConfigEmptyValue = ` +resource "auth0_rule_config" "foo" { + key = "acc_test_key_{{.testName}}" + value = "" +} +` diff --git a/internal/provider/resource_auth0_rule_test.go b/internal/provider/resource_auth0_rule_test.go index d196c1b6e..c7a38280e 100644 --- a/internal/provider/resource_auth0_rule_test.go +++ b/internal/provider/resource_auth0_rule_test.go @@ -18,25 +18,60 @@ func TestAccRule(t *testing.T) { ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccRule, t.Name()), + Config: template.ParseTestName(testAccRuleCreate, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_rule.my_rule", "name", fmt.Sprintf("acceptance-test-%s", t.Name())), resource.TestCheckResourceAttr("auth0_rule.my_rule", "script", "function (user, context, callback) { callback(null, user, context); }"), + resource.TestCheckResourceAttrSet("auth0_rule.my_rule", "enabled"), + resource.TestCheckResourceAttrSet("auth0_rule.my_rule", "order"), + ), + }, + { + Config: template.ParseTestName(testAccRuleUpdate, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_rule.my_rule", "name", fmt.Sprintf("acceptance-test-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_rule.my_rule", "script", "function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }"), resource.TestCheckResourceAttr("auth0_rule.my_rule", "enabled", "true"), + resource.TestCheckResourceAttr("auth0_rule.my_rule", "order", "1"), + ), + }, + { + Config: template.ParseTestName(testAccRuleUpdateAgain, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_rule.my_rule", "name", fmt.Sprintf("acceptance-test-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_rule.my_rule", "script", "function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }"), + resource.TestCheckResourceAttr("auth0_rule.my_rule", "enabled", "false"), + resource.TestCheckResourceAttr("auth0_rule.my_rule", "order", "1"), ), }, }, }) } -const testAccRule = ` +const testAccRuleCreate = ` resource "auth0_rule" "my_rule" { name = "acceptance-test-{{.testName}}" script = "function (user, context, callback) { callback(null, user, context); }" +} +` + +const testAccRuleUpdate = ` +resource "auth0_rule" "my_rule" { + name = "acceptance-test-{{.testName}}" + script = "function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }" + order = 1 enabled = true } ` +const testAccRuleUpdateAgain = ` +resource "auth0_rule" "my_rule" { + name = "acceptance-test-{{.testName}}" + script = "function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }" + enabled = false +} +` + func TestRuleNameRegexp(t *testing.T) { vf := validation.StringMatch(ruleNameRegexp, "invalid name") diff --git a/internal/provider/resource_auth0_tenant.go b/internal/provider/resource_auth0_tenant.go index 4f9e943b4..d07cd8399 100644 --- a/internal/provider/resource_auth0_tenant.go +++ b/internal/provider/resource_auth0_tenant.go @@ -12,6 +12,7 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" internalValidation "github.com/auth0/terraform-provider-auth0/internal/validation" + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newTenant() *schema.Resource { @@ -154,8 +155,8 @@ func newTenant() *schema.Resource { "session_lifetime": { Type: schema.TypeFloat, Optional: true, - ValidateFunc: validation.FloatAtLeast(0.01), Default: 168, + ValidateFunc: validation.FloatAtLeast(0.01), Description: "Number of hours during which a session will stay valid.", }, "idle_session_lifetime": { @@ -402,24 +403,24 @@ func readTenant(ctx context.Context, d *schema.ResourceData, m interface{}) diag } result := multierror.Append( - d.Set("change_password", flattenTenantChangePassword(tenant.ChangePassword)), - d.Set("guardian_mfa_page", flattenTenantGuardianMFAPage(tenant.GuardianMFAPage)), - d.Set("default_audience", tenant.DefaultAudience), - d.Set("default_directory", tenant.DefaultDirectory), - d.Set("default_redirection_uri", tenant.DefaultRedirectionURI), - d.Set("friendly_name", tenant.FriendlyName), - d.Set("picture_url", tenant.PictureURL), - d.Set("support_email", tenant.SupportEmail), - d.Set("support_url", tenant.SupportURL), - d.Set("allowed_logout_urls", tenant.AllowedLogoutURLs), - d.Set("session_lifetime", tenant.SessionLifetime), - d.Set("idle_session_lifetime", tenant.IdleSessionLifetime), - d.Set("sandbox_version", tenant.SandboxVersion), - d.Set("enabled_locales", tenant.EnabledLocales), - d.Set("error_page", flattenTenantErrorPage(tenant.ErrorPage)), - d.Set("flags", flattenTenantFlags(tenant.Flags)), - d.Set("universal_login", flattenTenantUniversalLogin(tenant.UniversalLogin)), - d.Set("session_cookie", flattenTenantSessionCookie(tenant.SessionCookie)), + d.Set("change_password", flattenTenantChangePassword(tenant.GetChangePassword())), + d.Set("guardian_mfa_page", flattenTenantGuardianMFAPage(tenant.GetGuardianMFAPage())), + d.Set("default_audience", tenant.GetDefaultAudience()), + d.Set("default_directory", tenant.GetDefaultDirectory()), + d.Set("default_redirection_uri", tenant.GetDefaultRedirectionURI()), + d.Set("friendly_name", tenant.GetFriendlyName()), + d.Set("picture_url", tenant.GetPictureURL()), + d.Set("support_email", tenant.GetSupportEmail()), + d.Set("support_url", tenant.GetSupportURL()), + d.Set("allowed_logout_urls", tenant.GetAllowedLogoutURLs()), + d.Set("session_lifetime", tenant.GetSessionLifetime()), + d.Set("idle_session_lifetime", tenant.GetIdleSessionLifetime()), + d.Set("sandbox_version", tenant.GetSandboxVersion()), + d.Set("enabled_locales", tenant.GetEnabledLocales()), + d.Set("error_page", flattenTenantErrorPage(tenant.GetErrorPage())), + d.Set("flags", flattenTenantFlags(tenant.GetFlags())), + d.Set("universal_login", flattenTenantUniversalLogin(tenant.GetUniversalLogin())), + d.Set("session_cookie", flattenTenantSessionCookie(tenant.GetSessionCookie())), ) return diag.FromErr(result.ErrorOrNil()) @@ -441,25 +442,33 @@ func deleteTenant(ctx context.Context, d *schema.ResourceData, m interface{}) di } func expandTenant(d *schema.ResourceData) *management.Tenant { + config := d.GetRawConfig() + + sessionLifetime := d.Get("session_lifetime").(float64) // Handling separately to preserve default values not honored by `d.GetRawConfig()` + idleSessionLifetime := d.Get("idle_session_lifetime").(float64) // Handling separately to preserve default values not honored by `d.GetRawConfig()` + tenant := &management.Tenant{ - DefaultAudience: String(d, "default_audience"), - DefaultDirectory: String(d, "default_directory"), - DefaultRedirectionURI: String(d, "default_redirection_uri"), - FriendlyName: String(d, "friendly_name"), - PictureURL: String(d, "picture_url"), - SupportEmail: String(d, "support_email"), - SupportURL: String(d, "support_url"), - AllowedLogoutURLs: Slice(d, "allowed_logout_urls"), - SessionLifetime: Float64(d, "session_lifetime"), - SandboxVersion: String(d, "sandbox_version"), - IdleSessionLifetime: Float64(d, "idle_session_lifetime", IsNewResource(), HasChange()), - EnabledLocales: List(d, "enabled_locales").List(), - ChangePassword: expandTenantChangePassword(d), - GuardianMFAPage: expandTenantGuardianMFAPage(d), - ErrorPage: expandTenantErrorPage(d), - Flags: expandTenantFlags(d.GetRawConfig().GetAttr("flags")), - UniversalLogin: expandTenantUniversalLogin(d), - SessionCookie: expandTenantSessionCookie(d), + DefaultAudience: value.String(config.GetAttr("default_audience")), + DefaultDirectory: value.String(config.GetAttr("default_directory")), + DefaultRedirectionURI: value.String(config.GetAttr("default_redirection_uri")), + FriendlyName: value.String(config.GetAttr("friendly_name")), + PictureURL: value.String(config.GetAttr("picture_url")), + SupportEmail: value.String(config.GetAttr("support_email")), + SupportURL: value.String(config.GetAttr("support_url")), + AllowedLogoutURLs: value.Strings(config.GetAttr("allowed_logout_urls")), + SessionLifetime: &sessionLifetime, + SandboxVersion: value.String(config.GetAttr("sandbox_version")), + EnabledLocales: value.Strings(config.GetAttr("enabled_locales")), + ChangePassword: expandTenantChangePassword(config.GetAttr("change_password")), + GuardianMFAPage: expandTenantGuardianMFAPage(config.GetAttr("guardian_mfa_page")), + ErrorPage: expandTenantErrorPage(config.GetAttr("error_page")), + Flags: expandTenantFlags(config.GetAttr("flags")), + UniversalLogin: expandTenantUniversalLogin(config.GetAttr("universal_login")), + SessionCookie: expandTenantSessionCookie(config.GetAttr("session_cookie")), + } + + if d.IsNewResource() || d.HasChange("idle_session_lifetime") { + tenant.IdleSessionLifetime = &idleSessionLifetime } return tenant diff --git a/internal/provider/resource_auth0_tenant_test.go b/internal/provider/resource_auth0_tenant_test.go index d0c0b2bad..38bceb0c4 100644 --- a/internal/provider/resource_auth0_tenant_test.go +++ b/internal/provider/resource_auth0_tenant_test.go @@ -15,13 +15,18 @@ func TestAccTenant(t *testing.T) { resource.Test(t, resource.TestCase{ ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ + { + Config: testAccEmptyTenant, + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "session_lifetime", "168"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "idle_session_lifetime", "72"), + ), + }, { Config: testAccTenantConfigCreate, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "change_password.0.enabled", "true"), - resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "change_password.0.html", "Change Password"), - resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "guardian_mfa_page.0.enabled", "true"), - resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "guardian_mfa_page.0.html", "MFA"), + resource.TestCheckResourceAttrSet("auth0_tenant.my_tenant", "change_password.0.enabled"), + resource.TestCheckResourceAttrSet("auth0_tenant.my_tenant", "guardian_mfa_page.0.enabled"), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "default_audience", ""), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "default_directory", ""), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "error_page.0.html", "Error Page"), @@ -53,15 +58,24 @@ func TestAccTenant(t *testing.T) { Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "enabled_locales.0", "de"), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "enabled_locales.1", "fr"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "default_audience", ""), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "flags.0.disable_clickjack_protection_headers", "false"), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "flags.0.enable_public_signup_user_exists_error", "true"), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "flags.0.use_scope_descriptions_for_consent", "false"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "allowed_logout_urls.#", "0"), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "session_cookie.0.mode", "persistent"), ), }, { - Config: `resource "auth0_tenant" "my_tenant" {}`, + Config: testAccEmptyTenant, Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "enabled_locales.0", "de"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "enabled_locales.1", "fr"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "default_audience", ""), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "flags.0.disable_clickjack_protection_headers", "false"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "flags.0.enable_public_signup_user_exists_error", "true"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "flags.0.use_scope_descriptions_for_consent", "false"), + resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "allowed_logout_urls.#", "0"), resource.TestCheckResourceAttr("auth0_tenant.my_tenant", "session_cookie.0.mode", "persistent"), ), }, @@ -71,16 +85,8 @@ func TestAccTenant(t *testing.T) { const testAccTenantConfigCreate = ` resource "auth0_tenant" "my_tenant" { - change_password { - enabled = true - html = "Change Password" - } - guardian_mfa_page { - enabled = true - html = "MFA" - } - default_audience = "" default_directory = "" + default_audience = "" error_page { html = "Error Page" show_log_link = false @@ -129,7 +135,6 @@ resource "auth0_tenant" "my_tenant" { enabled = true html = "MFA" } - default_audience = "" default_directory = "" error_page { html = "Error Page" @@ -140,9 +145,7 @@ resource "auth0_tenant" "my_tenant" { picture_url = "https://mycompany.org/logo.png" support_email = "support@mycompany.org" support_url = "https://mycompany.org/support" - allowed_logout_urls = [ - "https://mycompany.org/logoutCallback" - ] + allowed_logout_urls = [] session_lifetime = 720 sandbox_version = "12" idle_session_lifetime = 72 @@ -169,6 +172,8 @@ resource "auth0_tenant" "my_tenant" { } ` +const testAccEmptyTenant = `resource "auth0_tenant" "my_tenant" {}` + func TestAccTenantDefaults(t *testing.T) { if os.Getenv("AUTH0_DOMAIN") != recorder.RecordingsDomain { // Only run with recorded HTTP requests because normal E2E tests will naturally configure the tenant @@ -197,5 +202,3 @@ func TestAccTenantDefaults(t *testing.T) { }, }) } - -const testAccEmptyTenant = `resource "auth0_tenant" "my_tenant" {}` diff --git a/internal/provider/resource_auth0_trigger_binding.go b/internal/provider/resource_auth0_trigger_binding.go index 181022d13..b2a0724c6 100644 --- a/internal/provider/resource_auth0_trigger_binding.go +++ b/internal/provider/resource_auth0_trigger_binding.go @@ -4,11 +4,13 @@ import ( "context" "net/http" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func newTriggerBinding() *schema.Resource { @@ -68,7 +70,7 @@ func newTriggerBinding() *schema.Resource { func createTriggerBinding(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { id := d.Get("trigger").(string) - triggerBindings := expandTriggerBindings(d) + triggerBindings := expandTriggerBindings(d.GetRawConfig().GetAttr("actions")) api := m.(*management.Management) if err := api.Action.UpdateBindings(id, triggerBindings); err != nil { return diag.FromErr(err) @@ -96,7 +98,7 @@ func readTriggerBinding(ctx context.Context, d *schema.ResourceData, m interface } func updateTriggerBinding(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - triggerBindings := expandTriggerBindings(d) + triggerBindings := expandTriggerBindings(d.GetRawConfig().GetAttr("actions")) api := m.(*management.Management) if err := api.Action.UpdateBindings(d.Id(), triggerBindings); err != nil { return diag.FromErr(err) @@ -120,17 +122,19 @@ func deleteTriggerBinding(ctx context.Context, d *schema.ResourceData, m interfa return nil } -func expandTriggerBindings(d *schema.ResourceData) []*management.ActionBinding { +func expandTriggerBindings(config cty.Value) []*management.ActionBinding { var triggerBindings []*management.ActionBinding - List(d, "actions").Elem(func(d ResourceData) { + config.ForEachElement(func(_ cty.Value, action cty.Value) (stop bool) { + t := "action_id" triggerBindings = append(triggerBindings, &management.ActionBinding{ Ref: &management.ActionBindingReference{ - Type: auth0.String("action_id"), - Value: String(d, "id"), + Type: &t, + Value: value.String(action.GetAttr("id")), }, - DisplayName: String(d, "display_name"), + DisplayName: value.String(action.GetAttr("display_name")), }) + return stop }) return triggerBindings diff --git a/internal/provider/resource_auth0_trigger_binding_test.go b/internal/provider/resource_auth0_trigger_binding_test.go index 1793fcd2f..26a50f422 100644 --- a/internal/provider/resource_auth0_trigger_binding_test.go +++ b/internal/provider/resource_auth0_trigger_binding_test.go @@ -18,6 +18,15 @@ func TestAccTriggerBinding(t *testing.T) { Steps: []resource.TestStep{ { Config: template.ParseTestName(testAccTriggerBindingConfigCreate, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_action.action_foo", "name", fmt.Sprintf("Test Trigger Binding Foo %s", t.Name())), + resource.TestCheckResourceAttr("auth0_action.action_bar", "name", fmt.Sprintf("Test Trigger Binding Bar %s", t.Name())), + resource.TestCheckResourceAttr("auth0_trigger_binding.login_flow", "actions.#", "1"), + resource.TestCheckResourceAttr("auth0_trigger_binding.login_flow", "actions.0.display_name", fmt.Sprintf("Test Trigger Binding Foo %s", t.Name())), + ), + }, + { + Config: template.ParseTestName(testAccTriggerBindingConfigUpdate, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_action.action_foo", "name", fmt.Sprintf("Test Trigger Binding Foo %s", t.Name())), resource.TestCheckResourceAttr("auth0_action.action_bar", "name", fmt.Sprintf("Test Trigger Binding Bar %s", t.Name())), @@ -27,7 +36,7 @@ func TestAccTriggerBinding(t *testing.T) { ), }, { - Config: template.ParseTestName(testAccTriggerBindingConfigUpdate, t.Name()), + Config: template.ParseTestName(testAccTriggerBindingConfigUpdateAgain, t.Name()), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_action.action_foo", "name", fmt.Sprintf("Test Trigger Binding Foo %s", t.Name())), resource.TestCheckResourceAttr("auth0_action.action_bar", "name", fmt.Sprintf("Test Trigger Binding Bar %s", t.Name())), @@ -36,6 +45,15 @@ func TestAccTriggerBinding(t *testing.T) { resource.TestCheckResourceAttr("auth0_trigger_binding.login_flow", "actions.1.display_name", fmt.Sprintf("Test Trigger Binding Foo %s", t.Name())), ), }, + { + Config: template.ParseTestName(testAccTriggerBindingConfigRemoveAction, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_action.action_foo", "name", fmt.Sprintf("Test Trigger Binding Foo %s", t.Name())), + resource.TestCheckResourceAttr("auth0_action.action_bar", "name", fmt.Sprintf("Test Trigger Binding Bar %s", t.Name())), + resource.TestCheckResourceAttr("auth0_trigger_binding.login_flow", "actions.#", "1"), + resource.TestCheckResourceAttr("auth0_trigger_binding.login_flow", "actions.0.display_name", fmt.Sprintf("Test Trigger Binding Bar %s", t.Name())), + ), + }, }, }) } @@ -72,6 +90,16 @@ resource auth0_action action_bar { ` const testAccTriggerBindingConfigCreate = testAccTriggerBindingAction + ` +resource auth0_trigger_binding login_flow { + trigger = "post-login" + actions { + id = auth0_action.action_foo.id + display_name = auth0_action.action_foo.name + } +} +` + +const testAccTriggerBindingConfigUpdate = testAccTriggerBindingAction + ` resource auth0_trigger_binding login_flow { trigger = "post-login" actions { @@ -85,7 +113,7 @@ resource auth0_trigger_binding login_flow { } ` -const testAccTriggerBindingConfigUpdate = testAccTriggerBindingAction + ` +const testAccTriggerBindingConfigUpdateAgain = testAccTriggerBindingAction + ` resource auth0_trigger_binding login_flow { trigger = "post-login" actions { @@ -98,3 +126,13 @@ resource auth0_trigger_binding login_flow { } } ` + +const testAccTriggerBindingConfigRemoveAction = testAccTriggerBindingAction + ` +resource auth0_trigger_binding login_flow { + trigger = "post-login" + actions { + id = auth0_action.action_bar.id + display_name = auth0_action.action_bar.name + } +} +` diff --git a/internal/provider/resource_auth0_user.go b/internal/provider/resource_auth0_user.go index 0088af512..62fe0c60e 100644 --- a/internal/provider/resource_auth0_user.go +++ b/internal/provider/resource_auth0_user.go @@ -12,6 +12,8 @@ import ( "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) type validateUserFunc func(*management.User) error @@ -141,6 +143,7 @@ func newUser() *schema.Resource { func readUser(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) + user, err := api.User.Read(d.Id()) if err != nil { if err, ok := err.(management.Error); ok && err.Status() == http.StatusNotFound { @@ -151,19 +154,19 @@ func readUser(ctx context.Context, d *schema.ResourceData, m interface{}) diag.D } result := multierror.Append( - d.Set("user_id", user.ID), - d.Set("username", user.Username), - d.Set("name", user.Name), - d.Set("family_name", user.FamilyName), - d.Set("given_name", user.GivenName), - d.Set("nickname", user.Nickname), - d.Set("email", user.Email), - d.Set("email_verified", user.EmailVerified), - d.Set("verify_email", user.VerifyEmail), - d.Set("phone_number", user.PhoneNumber), - d.Set("phone_verified", user.PhoneVerified), - d.Set("blocked", user.Blocked), - d.Set("picture", user.Picture), + d.Set("user_id", user.GetID()), + d.Set("username", user.GetUsername()), + d.Set("name", user.GetName()), + d.Set("family_name", user.GetFamilyName()), + d.Set("given_name", user.GetGivenName()), + d.Set("nickname", user.GetNickname()), + d.Set("email", user.GetEmail()), + d.Set("email_verified", user.GetEmailVerified()), + d.Set("verify_email", user.GetVerifyEmail()), + d.Set("phone_number", user.GetPhoneNumber()), + d.Set("phone_verified", user.GetPhoneVerified()), + d.Set("blocked", user.GetBlocked()), + d.Set("picture", user.GetPicture()), ) var userMeta string @@ -194,17 +197,18 @@ func readUser(ctx context.Context, d *schema.ResourceData, m interface{}) diag.D } func createUser(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { + api := m.(*management.Management) + user, err := expandUser(d) if err != nil { return diag.FromErr(err) } - api := m.(*management.Management) if err := api.User.Create(user); err != nil { return diag.FromErr(err) } - d.SetId(auth0.StringValue(user.ID)) + d.SetId(user.GetID()) if err = updateUserRoles(d, api); err != nil { return diag.FromErr(err) @@ -253,22 +257,41 @@ func deleteUser(ctx context.Context, d *schema.ResourceData, m interface{}) diag } func expandUser(d *schema.ResourceData) (*management.User, error) { + config := d.GetRawConfig() + user := &management.User{ - ID: String(d, "user_id", IsNewResource()), - Connection: String(d, "connection_name"), - Email: String(d, "email", IsNewResource(), HasChange()), - Name: String(d, "name"), - GivenName: String(d, "given_name"), - FamilyName: String(d, "family_name"), - Username: String(d, "username", IsNewResource(), HasChange()), - Nickname: String(d, "nickname"), - Password: String(d, "password", IsNewResource(), HasChange()), - PhoneNumber: String(d, "phone_number", IsNewResource(), HasChange()), - EmailVerified: Bool(d, "email_verified", IsNewResource(), HasChange()), - VerifyEmail: Bool(d, "verify_email", IsNewResource(), HasChange()), - PhoneVerified: Bool(d, "phone_verified", IsNewResource(), HasChange()), - Picture: String(d, "picture"), - Blocked: Bool(d, "blocked"), + Connection: value.String(config.GetAttr("connection_name")), + Name: value.String(config.GetAttr("name")), + GivenName: value.String(config.GetAttr("given_name")), + FamilyName: value.String(config.GetAttr("family_name")), + Nickname: value.String(config.GetAttr("nickname")), + Picture: value.String(config.GetAttr("picture")), + Blocked: value.Bool(config.GetAttr("blocked")), + } + + if d.IsNewResource() { + user.ID = value.String(config.GetAttr("user_id")) + } + if d.IsNewResource() || d.HasChange("email") { + user.Email = value.String(config.GetAttr("email")) + } + if d.IsNewResource() || d.HasChange("username") { + user.Username = value.String(config.GetAttr("username")) + } + if d.IsNewResource() || d.HasChange("password") { + user.Password = value.String(config.GetAttr("password")) + } + if d.IsNewResource() || d.HasChange("phone_number") { + user.PhoneNumber = value.String(config.GetAttr("phone_number")) + } + if d.IsNewResource() || d.HasChange("email_verified") { + user.EmailVerified = value.Bool(config.GetAttr("email_verified")) + } + if d.IsNewResource() || d.HasChange("verify_email") { + user.VerifyEmail = value.Bool(config.GetAttr("verify_email")) + } + if d.IsNewResource() || d.HasChange("phone_verified") { + user.PhoneVerified = value.Bool(config.GetAttr("phone_verified")) } if d.HasChange("user_metadata") { @@ -293,7 +316,7 @@ func expandUser(d *schema.ResourceData) (*management.User, error) { func expandMetadata(d *schema.ResourceData, metadataType string) (map[string]interface{}, error) { oldMetadata, newMetadata := d.GetChange(metadataType + "_metadata") if oldMetadata == "" { - return JSON(d, metadataType+"_metadata") + return value.MapFromJSON(d.GetRawConfig().GetAttr(metadataType + "_metadata")) } if newMetadata == "" { @@ -322,7 +345,7 @@ func expandMetadata(d *schema.ResourceData, metadataType string) (map[string]int func flattenUserRoles(roleList *management.RoleList) []interface{} { var roles []interface{} for _, role := range roleList.Roles { - roles = append(roles, auth0.StringValue(role.ID)) + roles = append(roles, role.GetID()) } return roles } @@ -372,30 +395,36 @@ func validateNoPasswordAndEmailVerifiedSimultaneously() validateUserFunc { } func updateUserRoles(d *schema.ResourceData, api *management.Management) error { - toAdd, toRemove := Diff(d, "roles") + if !d.HasChange("roles") { + return nil + } + + oldValue, newValue := d.GetChange("roles") - if err := removeUserRoles(api, d.Id(), toRemove.List()); err != nil { + rolesToAdd := newValue.(*schema.Set).Difference(oldValue.(*schema.Set)) + rolesToRemove := oldValue.(*schema.Set).Difference(newValue.(*schema.Set)) + + if err := removeUserRoles(api, d.Id(), rolesToRemove.List()); err != nil { return err } - return assignUserRoles(api, d.Id(), toAdd.List()) + return assignUserRoles(api, d.Id(), rolesToAdd.List()) } func removeUserRoles(api *management.Management, userID string, userRolesToRemove []interface{}) error { + if len(userRolesToRemove) == 0 { + return nil + } + var rmRoles []*management.Role for _, rmRole := range userRolesToRemove { role := &management.Role{ID: auth0.String(rmRole.(string))} rmRoles = append(rmRoles, role) } - if len(rmRoles) == 0 { - return nil - } - err := api.User.RemoveRoles(userID, rmRoles) if err != nil { - // Ignore 404 errors as the role may have been deleted - // prior to un-assigning them from the user. + // Ignore 404 errors as the role may have been deleted prior to un-assigning them from the user. if err, ok := err.(management.Error); ok && err.Status() == http.StatusNotFound { return nil } @@ -405,16 +434,17 @@ func removeUserRoles(api *management.Management, userID string, userRolesToRemov } func assignUserRoles(api *management.Management, userID string, userRolesToAdd []interface{}) error { + if len(userRolesToAdd) == 0 { + return nil + } + var addRoles []*management.Role for _, addRole := range userRolesToAdd { - role := &management.Role{ID: auth0.String(addRole.(string))} + roleID := addRole.(string) + role := &management.Role{ID: &roleID} addRoles = append(addRoles, role) } - if len(addRoles) == 0 { - return nil - } - return api.User.AssignRoles(userID, addRoles) } diff --git a/internal/provider/resource_auth0_user_test.go b/internal/provider/resource_auth0_user_test.go index 7abbc4218..d2b07e421 100644 --- a/internal/provider/resource_auth0_user_test.go +++ b/internal/provider/resource_auth0_user_test.go @@ -64,11 +64,21 @@ func TestAccUserMissingRequiredParams(t *testing.T) { }) } -const testAccUserCreate = ` +const testAccUserEmpty = ` resource auth0_user user { connection_name = "Username-Password-Authentication" + user_id = "{{.testName}}" username = "{{.testName}}" + password = "passpass$12$12" + email = "{{.testName}}@acceptance.test.com" +} +` + +const testAccUserUpdate = ` +resource auth0_user user { + connection_name = "Username-Password-Authentication" user_id = "{{.testName}}" + username = "{{.testName}}" email = "{{.testName}}@acceptance.test.com" password = "passpass$12$12" name = "Firstname Lastname" @@ -84,7 +94,6 @@ resource auth0_user user { depends_on = [auth0_role.owner, auth0_role.admin] connection_name = "Username-Password-Authentication" username = "{{.testName}}" - user_id = "{{.testName}}" email = "{{.testName}}@acceptance.test.com" password = "passpass$12$12" name = "Firstname Lastname" @@ -120,7 +129,6 @@ resource auth0_user user { depends_on = [auth0_role.admin] connection_name = "Username-Password-Authentication" username = "{{.testName}}" - user_id = "{{.testName}}" email = "{{.testName}}@acceptance.test.com" password = "passpass$12$12" name = "Firstname Lastname" @@ -147,7 +155,6 @@ const testAccUserUpdateRemovingAllRolesAndUpdatingMetadata = ` resource auth0_user user { connection_name = "Username-Password-Authentication" username = "{{.testName}}" - user_id = "{{.testName}}" email = "{{.testName}}@acceptance.test.com" password = "passpass$12$12" name = "Firstname Lastname" @@ -170,7 +177,6 @@ const testAccUserUpdateRemovingMetadata = ` resource auth0_user user { connection_name = "Username-Password-Authentication" username = "{{.testName}}" - user_id = "{{.testName}}" email = "{{.testName}}@acceptance.test.com" password = "passpass$12$12" name = "Firstname Lastname" @@ -188,7 +194,15 @@ func TestAccUser(t *testing.T) { ProviderFactories: testProviders(httpRecorder), Steps: []resource.TestStep{ { - Config: template.ParseTestName(testAccUserCreate, strings.ToLower(t.Name())), + Config: template.ParseTestName(testAccUserEmpty, strings.ToLower(t.Name())), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_user.user", "connection_name", "Username-Password-Authentication"), + resource.TestCheckResourceAttr("auth0_user.user", "email", fmt.Sprintf("%s@acceptance.test.com", strings.ToLower(t.Name()))), + resource.TestCheckResourceAttr("auth0_user.user", "user_id", fmt.Sprintf("auth0|%s", strings.ToLower(t.Name()))), + ), + }, + { + Config: template.ParseTestName(testAccUserUpdate, strings.ToLower(t.Name())), Check: resource.ComposeTestCheckFunc( resource.TestCheckResourceAttr("auth0_user.user", "connection_name", "Username-Password-Authentication"), resource.TestCheckResourceAttr("auth0_user.user", "username", strings.ToLower(t.Name())), diff --git a/internal/provider/structure_auth0_client.go b/internal/provider/structure_auth0_client.go new file mode 100644 index 000000000..d6a2e66e7 --- /dev/null +++ b/internal/provider/structure_auth0_client.go @@ -0,0 +1,536 @@ +package provider + +import ( + "strconv" + + "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" +) + +func expandClient(d *schema.ResourceData) *management.Client { + config := d.GetRawConfig() + + client := &management.Client{ + Name: value.String(config.GetAttr("name")), + Description: value.String(config.GetAttr("description")), + AppType: value.String(config.GetAttr("app_type")), + LogoURI: value.String(config.GetAttr("logo_uri")), + IsFirstParty: value.Bool(config.GetAttr("is_first_party")), + IsTokenEndpointIPHeaderTrusted: value.Bool(config.GetAttr("is_token_endpoint_ip_header_trusted")), + OIDCConformant: value.Bool(config.GetAttr("oidc_conformant")), + Callbacks: value.Strings(config.GetAttr("callbacks")), + AllowedLogoutURLs: value.Strings(config.GetAttr("allowed_logout_urls")), + AllowedOrigins: value.Strings(config.GetAttr("allowed_origins")), + AllowedClients: value.Strings(config.GetAttr("allowed_clients")), + GrantTypes: value.Strings(config.GetAttr("grant_types")), + OrganizationUsage: value.String(config.GetAttr("organization_usage")), + OrganizationRequireBehavior: value.String(config.GetAttr("organization_require_behavior")), + WebOrigins: value.Strings(config.GetAttr("web_origins")), + SSO: value.Bool(config.GetAttr("sso")), + SSODisabled: value.Bool(config.GetAttr("sso_disabled")), + CrossOriginAuth: value.Bool(config.GetAttr("cross_origin_auth")), + CrossOriginLocation: value.String(config.GetAttr("cross_origin_loc")), + CustomLoginPageOn: value.Bool(config.GetAttr("custom_login_page_on")), + CustomLoginPage: value.String(config.GetAttr("custom_login_page")), + FormTemplate: value.String(config.GetAttr("form_template")), + TokenEndpointAuthMethod: value.String(config.GetAttr("token_endpoint_auth_method")), + InitiateLoginURI: value.String(config.GetAttr("initiate_login_uri")), + EncryptionKey: value.MapOfStrings(config.GetAttr("encryption_key")), + ClientMetadata: value.MapOfStrings(config.GetAttr("client_metadata")), + RefreshToken: expandClientRefreshToken(d), + JWTConfiguration: expandClientJWTConfiguration(d), + Addons: expandClientAddons(d), + NativeSocialLogin: expandClientNativeSocialLogin(d), + Mobile: expandClientMobile(d), + } + + return client +} + +func expandClientRefreshToken(d *schema.ResourceData) *management.ClientRefreshToken { + refreshTokenConfig := d.GetRawConfig().GetAttr("refresh_token") + if refreshTokenConfig.IsNull() { + return nil + } + + var refreshToken management.ClientRefreshToken + + refreshTokenConfig.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + refreshToken.RotationType = value.String(config.GetAttr("rotation_type")) + refreshToken.ExpirationType = value.String(config.GetAttr("expiration_type")) + refreshToken.Leeway = value.Int(config.GetAttr("leeway")) + refreshToken.TokenLifetime = value.Int(config.GetAttr("token_lifetime")) + refreshToken.InfiniteTokenLifetime = value.Bool(config.GetAttr("infinite_token_lifetime")) + refreshToken.InfiniteIdleTokenLifetime = value.Bool(config.GetAttr("infinite_idle_token_lifetime")) + refreshToken.IdleTokenLifetime = value.Int(config.GetAttr("idle_token_lifetime")) + return stop + }) + + if refreshToken == (management.ClientRefreshToken{}) { + return nil + } + + return &refreshToken +} + +func expandClientJWTConfiguration(d *schema.ResourceData) *management.ClientJWTConfiguration { + jwtConfig := d.GetRawConfig().GetAttr("jwt_configuration") + if jwtConfig.IsNull() { + return nil + } + + var jwt management.ClientJWTConfiguration + + jwtConfig.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + jwt.LifetimeInSeconds = value.Int(config.GetAttr("lifetime_in_seconds")) + jwt.Algorithm = value.String(config.GetAttr("alg")) + jwt.Scopes = value.MapOfStrings(config.GetAttr("scopes")) + + if d.IsNewResource() { + jwt.SecretEncoded = value.Bool(config.GetAttr("secret_encoded")) + } + + return stop + }) + + if jwt == (management.ClientJWTConfiguration{}) { + return nil + } + + return &jwt +} + +func expandClientNativeSocialLogin(d *schema.ResourceData) *management.ClientNativeSocialLogin { + nativeSocialLoginConfig := d.GetRawConfig().GetAttr("native_social_login") + if nativeSocialLoginConfig.IsNull() { + return nil + } + + var nativeSocialLogin management.ClientNativeSocialLogin + + nativeSocialLoginConfig.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + nativeSocialLogin.Apple = expandClientNativeSocialLoginSupportEnabled(config.GetAttr("apple")) + nativeSocialLogin.Facebook = expandClientNativeSocialLoginSupportEnabled(config.GetAttr("facebook")) + return stop + }) + + if nativeSocialLogin == (management.ClientNativeSocialLogin{}) { + return nil + } + + return &nativeSocialLogin +} + +func expandClientNativeSocialLoginSupportEnabled(config cty.Value) *management.ClientNativeSocialLoginSupportEnabled { + if config.IsNull() { + return nil + } + + var support management.ClientNativeSocialLoginSupportEnabled + + config.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + support.Enabled = value.Bool(config.GetAttr("enabled")) + return stop + }) + + if support == (management.ClientNativeSocialLoginSupportEnabled{}) { + return nil + } + + return &support +} + +func expandClientMobile(d *schema.ResourceData) *management.ClientMobile { + mobileConfig := d.GetRawConfig().GetAttr("mobile") + if mobileConfig.IsNull() { + return nil + } + + var mobile management.ClientMobile + + mobileConfig.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + mobile.Android = expandClientMobileAndroid(config.GetAttr("android")) + mobile.IOS = expandClientMobileIOS(config.GetAttr("ios")) + return stop + }) + + if mobile == (management.ClientMobile{}) { + return nil + } + + return &mobile +} + +func expandClientMobileAndroid(androidConfig cty.Value) *management.ClientMobileAndroid { + if androidConfig.IsNull() { + return nil + } + + var android management.ClientMobileAndroid + + androidConfig.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + android.AppPackageName = value.String(config.GetAttr("app_package_name")) + android.KeyHashes = value.Strings(config.GetAttr("sha256_cert_fingerprints")) + return stop + }) + + if android == (management.ClientMobileAndroid{}) { + return nil + } + + return &android +} + +func expandClientMobileIOS(iosConfig cty.Value) *management.ClientMobileIOS { + if iosConfig.IsNull() { + return nil + } + + var ios management.ClientMobileIOS + + iosConfig.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + ios.TeamID = value.String(config.GetAttr("team_id")) + ios.AppID = value.String(config.GetAttr("app_bundle_identifier")) + return stop + }) + + if ios == (management.ClientMobileIOS{}) { + return nil + } + + return &ios +} + +func expandClientAddons(d *schema.ResourceData) map[string]interface{} { + if !d.HasChange("addons") { + return nil + } + + addons := make(map[string]interface{}) + var allowedAddons = []string{ + "aws", "azure_blob", "azure_sb", "rms", "mscrm", "slack", "sentry", + "box", "cloudbees", "concur", "dropbox", "echosign", "egnyte", + "firebase", "newrelic", "office365", "salesforce", "salesforce_api", + "salesforce_sandbox_api", "layer", "sap_api", "sharepoint", + "springcm", "wams", "wsfed", "zendesk", "zoom", + } + for _, name := range allowedAddons { + if _, ok := d.GetOk("addons.0." + name); ok { + addons[name] = mapFromState(d.Get("addons.0." + name).(map[string]interface{})) + } + } + + addonsConfig := d.GetRawConfig().GetAttr("addons") + if addonsConfig.IsNull() { + return addons + } + + addonsConfig.ForEachElement(func(_ cty.Value, addonsConfig cty.Value) (stop bool) { + samlpConfig := addonsConfig.GetAttr("samlp") + if samlpConfig.IsNull() { + return stop + } + + samlp := make(map[string]interface{}) + + samlpConfig.ForEachElement(func(_ cty.Value, samlpConfig cty.Value) (stop bool) { + if audience := value.String(samlpConfig.GetAttr("audience")); audience != nil { + samlp["audience"] = audience + } + if authnContextClassRef := value.String(samlpConfig.GetAttr("authn_context_class_ref")); authnContextClassRef != nil { + samlp["authnContextClassRef"] = authnContextClassRef + } + if binding := value.String(samlpConfig.GetAttr("binding")); binding != nil { + samlp["binding"] = binding + } + if signingCert := value.String(samlpConfig.GetAttr("signing_cert")); signingCert != nil { + samlp["signingCert"] = signingCert + } + if destination := value.String(samlpConfig.GetAttr("destination")); destination != nil { + samlp["destination"] = destination + } + + digestAlgorithm := value.String(samlpConfig.GetAttr("digest_algorithm")) + samlp["digestAlgorithm"] = digestAlgorithm + if digestAlgorithm == nil { + samlp["digestAlgorithm"] = "sha1" + } + + nameIdentifierFormat := value.String(samlpConfig.GetAttr("name_identifier_format")) + samlp["nameIdentifierFormat"] = nameIdentifierFormat + if nameIdentifierFormat == nil { + samlp["nameIdentifierFormat"] = "urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified" + } + + if recipient := value.String(samlpConfig.GetAttr("recipient")); recipient != nil { + samlp["recipient"] = recipient + } + + signatureAlgorithm := value.String(samlpConfig.GetAttr("signature_algorithm")) + samlp["signatureAlgorithm"] = signatureAlgorithm + if signatureAlgorithm == nil { + samlp["signatureAlgorithm"] = "rsa-sha1" + } + + createUpnClaim := value.Bool(samlpConfig.GetAttr("create_upn_claim")) + samlp["createUpnClaim"] = createUpnClaim + if createUpnClaim == nil { + samlp["createUpnClaim"] = true + } + + includeAttributeNameFormat := value.Bool(samlpConfig.GetAttr("include_attribute_name_format")) + samlp["includeAttributeNameFormat"] = includeAttributeNameFormat + if includeAttributeNameFormat == nil { + samlp["includeAttributeNameFormat"] = true + } + + mapIdentities := value.Bool(samlpConfig.GetAttr("map_identities")) + samlp["mapIdentities"] = mapIdentities + if mapIdentities == nil { + samlp["mapIdentities"] = true + } + + mapUnknownClaimsAsIs := value.Bool(samlpConfig.GetAttr("map_unknown_claims_as_is")) + samlp["mapUnknownClaimsAsIs"] = mapUnknownClaimsAsIs + if mapUnknownClaimsAsIs == nil { + samlp["mapUnknownClaimsAsIs"] = false + } + + passthroughClaimsWithNoMapping := value.Bool(samlpConfig.GetAttr("passthrough_claims_with_no_mapping")) + samlp["passthroughClaimsWithNoMapping"] = passthroughClaimsWithNoMapping + if passthroughClaimsWithNoMapping == nil { + samlp["passthroughClaimsWithNoMapping"] = true + } + + if signResponse := value.Bool(samlpConfig.GetAttr("sign_response")); signResponse != nil { + samlp["signResponse"] = signResponse + } + + typedAttributes := value.Bool(samlpConfig.GetAttr("typed_attributes")) + samlp["typedAttributes"] = typedAttributes + if typedAttributes == nil { + samlp["typedAttributes"] = true + } + + lifetimeInSeconds := value.Int(samlpConfig.GetAttr("lifetime_in_seconds")) + samlp["lifetimeInSeconds"] = lifetimeInSeconds + if lifetimeInSeconds == nil { + samlp["lifetimeInSeconds"] = 3600 + } + + if mappings := value.MapOfStrings(samlpConfig.GetAttr("mappings")); mappings != nil { + samlp["mappings"] = mappings + } + if nameIdentifierProbes := value.Strings(samlpConfig.GetAttr("name_identifier_probes")); nameIdentifierProbes != nil { + samlp["nameIdentifierProbes"] = nameIdentifierProbes + } + if logout := mapFromState(d.Get("addons.0.samlp.0.logout").(map[string]interface{})); len(logout) != 0 { + samlp["logout"] = logout + } + + return stop + }) + + if len(samlp) > 0 { + addons["samlp"] = samlp + } + + return stop + }) + + return addons +} + +func mapFromState(input map[string]interface{}) map[string]interface{} { + output := make(map[string]interface{}) + + for key, val := range input { + switch v := val.(type) { + case string: + if i, err := strconv.ParseInt(v, 10, 64); err == nil { + output[key] = i + } else if f, err := strconv.ParseFloat(v, 64); err == nil { + output[key] = f + } else if b, err := strconv.ParseBool(v); err == nil { + output[key] = b + } else { + output[key] = v + } + case map[string]interface{}: + output[key] = mapFromState(v) + case []interface{}: + output[key] = v + default: + output[key] = v + } + } + + return output +} + +func flattenCustomSocialConfiguration(customSocial *management.ClientNativeSocialLogin) []interface{} { + if customSocial == nil { + return nil + } + + m := map[string]interface{}{ + "apple": []interface{}{ + map[string]interface{}{ + "enabled": customSocial.GetApple().GetEnabled(), + }, + }, + "facebook": []interface{}{ + map[string]interface{}{ + "enabled": customSocial.GetFacebook().GetEnabled(), + }, + }, + } + + return []interface{}{m} +} + +func flattenClientJwtConfiguration(jwt *management.ClientJWTConfiguration) []interface{} { + if jwt == nil { + return nil + } + + return []interface{}{ + map[string]interface{}{ + "lifetime_in_seconds": jwt.GetLifetimeInSeconds(), + "secret_encoded": jwt.GetSecretEncoded(), + "scopes": jwt.GetScopes(), + "alg": jwt.GetAlgorithm(), + }, + } +} + +func flattenClientRefreshTokenConfiguration(refreshToken *management.ClientRefreshToken) []interface{} { + if refreshToken == nil { + return nil + } + + return []interface{}{ + map[string]interface{}{ + "rotation_type": refreshToken.GetRotationType(), + "expiration_type": refreshToken.GetExpirationType(), + "leeway": refreshToken.GetLeeway(), + "token_lifetime": refreshToken.GetTokenLifetime(), + "infinite_token_lifetime": refreshToken.GetInfiniteTokenLifetime(), + "infinite_idle_token_lifetime": refreshToken.GetInfiniteIdleTokenLifetime(), + "idle_token_lifetime": refreshToken.GetIdleTokenLifetime(), + }, + } +} + +func flattenClientAddons(addons map[string]interface{}) []interface{} { + if addons == nil { + return nil + } + + m := make(map[string]interface{}) + + if v, ok := addons["samlp"]; ok { + samlp := v.(map[string]interface{}) + + samlpMap := map[string]interface{}{ + "audience": samlp["audience"], + "recipient": samlp["recipient"], + "mappings": samlp["mappings"], + "create_upn_claim": samlp["createUpnClaim"], + "passthrough_claims_with_no_mapping": samlp["passthroughClaimsWithNoMapping"], + "map_unknown_claims_as_is": samlp["mapUnknownClaimsAsIs"], + "map_identities": samlp["mapIdentities"], + "signature_algorithm": samlp["signatureAlgorithm"], + "digest_algorithm": samlp["digestAlgorithm"], + "destination": samlp["destination"], + "lifetime_in_seconds": samlp["lifetimeInSeconds"], + "sign_response": samlp["signResponse"], + "name_identifier_format": samlp["nameIdentifierFormat"], + "name_identifier_probes": samlp["nameIdentifierProbes"], + "authn_context_class_ref": samlp["authnContextClassRef"], + "typed_attributes": samlp["typedAttributes"], + "include_attribute_name_format": samlp["includeAttributeNameFormat"], + "binding": samlp["binding"], + "signing_cert": samlp["signingCert"], + } + + if logout, ok := samlp["logout"].(map[string]interface{}); ok { + samlpMap["logout"] = mapToState(logout) + } + + m["samlp"] = []interface{}{samlpMap} + } + + for _, name := range []string{ + "aws", "azure_blob", "azure_sb", "rms", "mscrm", "slack", "sentry", + "box", "cloudbees", "concur", "dropbox", "echosign", "egnyte", + "firebase", "newrelic", "office365", "salesforce", "salesforce_api", + "salesforce_sandbox_api", "layer", "sap_api", "sharepoint", + "springcm", "wams", "wsfed", "zendesk", "zoom", + } { + if v, ok := addons[name]; ok { + if addonType, ok := v.(map[string]interface{}); ok { + m[name] = mapToState(addonType) + } + } + } + + return []interface{}{m} +} + +func flattenClientMobile(mobile *management.ClientMobile) []interface{} { + if mobile == nil { + return nil + } + + m := map[string]interface{}{ + "android": nil, + "ios": nil, + } + + if mobile.GetAndroid() != nil { + m["android"] = []interface{}{ + map[string]interface{}{ + "app_package_name": mobile.GetAndroid().GetAppPackageName(), + "sha256_cert_fingerprints": mobile.GetAndroid().GetKeyHashes(), + }, + } + } + + if mobile.GetIOS() != nil { + m["ios"] = []interface{}{ + map[string]interface{}{ + "team_id": mobile.GetIOS().GetTeamID(), + "app_bundle_identifier": mobile.GetIOS().GetAppID(), + }, + } + } + + return []interface{}{m} +} + +func mapToState(input map[string]interface{}) map[string]interface{} { + output := make(map[string]interface{}) + + for key, v := range input { + switch val := v.(type) { + case bool: + if val { + output[key] = "true" + } else { + output[key] = "false" + } + case float64: + output[key] = strconv.Itoa(int(val)) + case int: + output[key] = strconv.Itoa(val) + default: + output[key] = val + } + } + + return output +} diff --git a/internal/provider/structure_auth0_connection.go b/internal/provider/structure_auth0_connection.go index afeee34e1..667a4c5d5 100644 --- a/internal/provider/structure_auth0_connection.go +++ b/internal/provider/structure_auth0_connection.go @@ -3,14 +3,16 @@ package provider import ( "fmt" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/structure" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) -func flattenConnectionOptions(d ResourceData, options interface{}) ([]interface{}, diag.Diagnostics) { +func flattenConnectionOptions(d *schema.ResourceData, options interface{}) ([]interface{}, diag.Diagnostics) { if options == nil { return nil, nil } @@ -94,7 +96,15 @@ func flattenConnectionOptionsWindowsLive(options *management.ConnectionOptionsWi return m, nil } -func flattenConnectionOptionsAuth0(d ResourceData, options *management.ConnectionOptions) (interface{}, diag.Diagnostics) { +func flattenConnectionOptionsAuth0( + d *schema.ResourceData, + options *management.ConnectionOptions, +) (interface{}, diag.Diagnostics) { + dbSecretConfig, ok := d.GetOk("options.0.configuration") + if !ok { + dbSecretConfig = make(map[string]interface{}) + } + m := map[string]interface{}{ "password_policy": options.GetPasswordPolicy(), "enabled_database_customization": options.GetEnabledDatabaseCustomization(), @@ -102,8 +112,8 @@ func flattenConnectionOptionsAuth0(d ResourceData, options *management.Connectio "import_mode": options.GetImportMode(), "disable_signup": options.GetDisableSignup(), "requires_username": options.GetRequiresUsername(), - "custom_scripts": options.CustomScripts, - "configuration": Map(d, "options.0.configuration"), // Values do not get read back. + "custom_scripts": options.GetCustomScripts(), + "configuration": dbSecretConfig, // Values do not get read back. "non_persistent_attrs": options.GetNonPersistentAttrs(), "set_user_root_attributes": options.GetSetUserAttributes(), } @@ -140,15 +150,15 @@ func flattenConnectionOptionsAuth0(d ResourceData, options *management.Connectio m["upstream_params"] = upstreamParams diags := checkForUnmanagedConfigurationSecrets( - Map(d, "options.0.configuration"), - options.Configuration, + dbSecretConfig.(map[string]interface{}), + options.GetConfiguration(), ) return m, diags } // checkForUnmanagedConfigurationSecrets is used to assess keys diff because values are sent back encrypted. -func checkForUnmanagedConfigurationSecrets(configFromTF, configFromAPI map[string]interface{}) diag.Diagnostics { +func checkForUnmanagedConfigurationSecrets(configFromTF map[string]interface{}, configFromAPI map[string]string) diag.Diagnostics { var warnings diag.Diagnostics for key := range configFromAPI { @@ -170,11 +180,13 @@ func checkForUnmanagedConfigurationSecrets(configFromTF, configFromAPI map[strin return warnings } -func flattenConnectionOptionsGoogleOAuth2(options *management.ConnectionOptionsGoogleOAuth2) (interface{}, diag.Diagnostics) { +func flattenConnectionOptionsGoogleOAuth2( + options *management.ConnectionOptionsGoogleOAuth2, +) (interface{}, diag.Diagnostics) { m := map[string]interface{}{ "client_id": options.GetClientID(), "client_secret": options.GetClientSecret(), - "allowed_audiences": options.AllowedAudiences, + "allowed_audiences": options.GetAllowedAudiences(), "scopes": options.Scopes(), "set_user_root_attributes": options.GetSetUserAttributes(), "non_persistent_attrs": options.GetNonPersistentAttrs(), @@ -189,7 +201,9 @@ func flattenConnectionOptionsGoogleOAuth2(options *management.ConnectionOptionsG return m, nil } -func flattenConnectionOptionsGoogleApps(options *management.ConnectionOptionsGoogleApps) (interface{}, diag.Diagnostics) { +func flattenConnectionOptionsGoogleApps( + options *management.ConnectionOptionsGoogleApps, +) (interface{}, diag.Diagnostics) { m := map[string]interface{}{ "client_id": options.GetClientID(), "client_secret": options.GetClientSecret(), @@ -199,7 +213,7 @@ func flattenConnectionOptionsGoogleApps(options *management.ConnectionOptionsGoo "scopes": options.Scopes(), "set_user_root_attributes": options.GetSetUserAttributes(), "non_persistent_attrs": options.GetNonPersistentAttrs(), - "domain_aliases": options.DomainAliases, + "domain_aliases": options.GetDomainAliases(), "icon_url": options.GetLogoURL(), } @@ -219,7 +233,7 @@ func flattenConnectionOptionsOAuth2(options *management.ConnectionOptionsOAuth2) "scopes": options.Scopes(), "token_endpoint": options.GetTokenURL(), "authorization_endpoint": options.GetAuthorizationURL(), - "scripts": options.Scripts, + "scripts": options.GetScripts(), "set_user_root_attributes": options.GetSetUserAttributes(), "non_persistent_attrs": options.GetNonPersistentAttrs(), "icon_url": options.GetLogoURL(), @@ -363,7 +377,7 @@ func flattenConnectionOptionsOIDC(options *management.ConnectionOptionsOIDC) (in "client_secret": options.GetClientSecret(), "icon_url": options.GetLogoURL(), "tenant_domain": options.GetTenantDomain(), - "domain_aliases": options.DomainAliases, + "domain_aliases": options.GetDomainAliases(), "type": options.GetType(), "scopes": options.Scopes(), "issuer": options.GetIssuer(), @@ -432,9 +446,9 @@ func flattenConnectionOptionsEmail(options *management.ConnectionOptionsEmail) ( func flattenConnectionOptionsAD(options *management.ConnectionOptionsAD) (interface{}, diag.Diagnostics) { m := map[string]interface{}{ "tenant_domain": options.GetTenantDomain(), - "domain_aliases": options.DomainAliases, + "domain_aliases": options.GetDomainAliases(), "icon_url": options.GetLogoURL(), - "ips": options.IPs, + "ips": options.GetIPs(), "use_cert_auth": options.GetCertAuth(), "use_kerberos": options.GetKerberos(), "disable_cache": options.GetDisableCache(), @@ -459,7 +473,7 @@ func flattenConnectionOptionsAzureAD(options *management.ConnectionOptionsAzureA "app_id": options.GetAppID(), "tenant_domain": options.GetTenantDomain(), "domain": options.GetDomain(), - "domain_aliases": options.DomainAliases, + "domain_aliases": options.GetDomainAliases(), "icon_url": options.GetLogoURL(), "identity_api": options.GetIdentityAPI(), "waad_protocol": options.GetWAADProtocol(), @@ -485,7 +499,7 @@ func flattenConnectionOptionsAzureAD(options *management.ConnectionOptionsAzureA func flattenConnectionOptionsADFS(options *management.ConnectionOptionsADFS) (interface{}, diag.Diagnostics) { m := map[string]interface{}{ "tenant_domain": options.GetTenantDomain(), - "domain_aliases": options.DomainAliases, + "domain_aliases": options.GetDomainAliases(), "icon_url": options.GetLogoURL(), "adfs_server": options.GetADFSServer(), "api_enable_users": options.GetEnableUsersAPI(), @@ -502,13 +516,16 @@ func flattenConnectionOptionsADFS(options *management.ConnectionOptionsADFS) (in return m, nil } -func flattenConnectionOptionsSAML(d ResourceData, options *management.ConnectionOptionsSAML) (interface{}, diag.Diagnostics) { +func flattenConnectionOptionsSAML( + d *schema.ResourceData, + options *management.ConnectionOptionsSAML, +) (interface{}, diag.Diagnostics) { m := map[string]interface{}{ "signing_cert": options.GetSigningCert(), "protocol_binding": options.GetProtocolBinding(), "debug": options.GetDebug(), "tenant_domain": options.GetTenantDomain(), - "domain_aliases": options.DomainAliases, + "domain_aliases": options.GetDomainAliases(), "sign_in_endpoint": options.GetSignInEndpoint(), "sign_out_endpoint": options.GetSignOutEndpoint(), "disable_sign_out": options.GetDisableSignOut(), @@ -522,7 +539,7 @@ func flattenConnectionOptionsSAML(d ResourceData, options *management.Connection "non_persistent_attrs": options.GetNonPersistentAttrs(), "entity_id": options.GetEntityID(), "metadata_url": options.GetMetadataURL(), - "metadata_xml": String(d, "options.0.metadata_xml"), // Does not get read back. + "metadata_xml": d.Get("options.0.metadata_xml").(string), // Does not get read back. } if options.IdpInitiated != nil { @@ -559,35 +576,38 @@ func flattenConnectionOptionsSAML(d ResourceData, options *management.Connection return m, nil } -func expandConnection(d ResourceData) (*management.Connection, diag.Diagnostics) { +func expandConnection(d *schema.ResourceData) (*management.Connection, diag.Diagnostics) { + config := d.GetRawConfig() + connection := &management.Connection{ - Name: String(d, "name", IsNewResource()), - DisplayName: String(d, "display_name"), - Strategy: String(d, "strategy", IsNewResource()), - IsDomainConnection: Bool(d, "is_domain_connection"), - EnabledClients: Set(d, "enabled_clients").List(), - Realms: Slice(d, "realms", IsNewResource(), HasChange()), - } - - if metadataKeyMap := Map(d, "metadata"); metadataKeyMap != nil { - connection.Metadata = map[string]string{} - for key, value := range metadataKeyMap { - connection.Metadata[key] = value.(string) - } + DisplayName: value.String(config.GetAttr("display_name")), + IsDomainConnection: value.Bool(config.GetAttr("is_domain_connection")), + EnabledClients: value.Strings(config.GetAttr("enabled_clients")), + Metadata: value.MapOfStrings(config.GetAttr("metadata")), + } + + if d.IsNewResource() { + connection.Name = value.String(config.GetAttr("name")) + connection.Strategy = value.String(config.GetAttr("strategy")) + } + + if d.IsNewResource() || d.HasChange("realms") { + connection.Realms = value.Strings(config.GetAttr("realms")) } var diagnostics diag.Diagnostics strategy := d.Get("strategy").(string) - showAsButton := Bool(d, "show_as_button") - List(d, "options").Elem(func(d ResourceData) { + showAsButton := value.Bool(config.GetAttr("show_as_button")) + + config.GetAttr("options").ForEachElement(func(_ cty.Value, options cty.Value) (stop bool) { switch strategy { case management.ConnectionStrategyAuth0: - connection.Options, diagnostics = expandConnectionOptionsAuth0(d) + connection.Options, diagnostics = expandConnectionOptionsAuth0(options) case management.ConnectionStrategyGoogleOAuth2: - connection.Options, diagnostics = expandConnectionOptionsGoogleOAuth2(d) + connection.Options, diagnostics = expandConnectionOptionsGoogleOAuth2(d, options) case management.ConnectionStrategyGoogleApps: connection.ShowAsButton = showAsButton - connection.Options, diagnostics = expandConnectionOptionsGoogleApps(d) + connection.Options, diagnostics = expandConnectionOptionsGoogleApps(d, options) case management.ConnectionStrategyOAuth2, management.ConnectionStrategyDropbox, management.ConnectionStrategyBitBucket, @@ -607,40 +627,40 @@ func expandConnection(d ResourceData) (*management.Connection, diag.Diagnostics) management.ConnectionStrategyTwitch, management.ConnectionStrategyVimeo, management.ConnectionStrategyCustom: - connection.Options, diagnostics = expandConnectionOptionsOAuth2(d) + connection.Options, diagnostics = expandConnectionOptionsOAuth2(d, options) case management.ConnectionStrategyFacebook: - connection.Options, diagnostics = expandConnectionOptionsFacebook(d) + connection.Options, diagnostics = expandConnectionOptionsFacebook(d, options) case management.ConnectionStrategyApple: - connection.Options, diagnostics = expandConnectionOptionsApple(d) + connection.Options, diagnostics = expandConnectionOptionsApple(d, options) case management.ConnectionStrategyLinkedin: - connection.Options, diagnostics = expandConnectionOptionsLinkedin(d) + connection.Options, diagnostics = expandConnectionOptionsLinkedin(d, options) case management.ConnectionStrategyGitHub: - connection.Options, diagnostics = expandConnectionOptionsGitHub(d) + connection.Options, diagnostics = expandConnectionOptionsGitHub(d, options) case management.ConnectionStrategyWindowsLive: - connection.Options, diagnostics = expandConnectionOptionsWindowsLive(d) + connection.Options, diagnostics = expandConnectionOptionsWindowsLive(d, options) case management.ConnectionStrategySalesforce, management.ConnectionStrategySalesforceCommunity, management.ConnectionStrategySalesforceSandbox: - connection.Options, diagnostics = expandConnectionOptionsSalesforce(d) + connection.Options, diagnostics = expandConnectionOptionsSalesforce(d, options) case management.ConnectionStrategySMS: - connection.Options, diagnostics = expandConnectionOptionsSMS(d) + connection.Options, diagnostics = expandConnectionOptionsSMS(options) case management.ConnectionStrategyOIDC: connection.ShowAsButton = showAsButton - connection.Options, diagnostics = expandConnectionOptionsOIDC(d) + connection.Options, diagnostics = expandConnectionOptionsOIDC(d, options) case management.ConnectionStrategyAD: connection.ShowAsButton = showAsButton - connection.Options, diagnostics = expandConnectionOptionsAD(d) + connection.Options, diagnostics = expandConnectionOptionsAD(options) case management.ConnectionStrategyAzureAD: connection.ShowAsButton = showAsButton - connection.Options, diagnostics = expandConnectionOptionsAzureAD(d) + connection.Options, diagnostics = expandConnectionOptionsAzureAD(d, options) case management.ConnectionStrategyEmail: - connection.Options, diagnostics = expandConnectionOptionsEmail(d) + connection.Options, diagnostics = expandConnectionOptionsEmail(options) case management.ConnectionStrategySAML: connection.ShowAsButton = showAsButton - connection.Options, diagnostics = expandConnectionOptionsSAML(d) + connection.Options, diagnostics = expandConnectionOptionsSAML(options) case management.ConnectionStrategyADFS: connection.ShowAsButton = showAsButton - connection.Options, diagnostics = expandConnectionOptionsADFS(d) + connection.Options, diagnostics = expandConnectionOptionsADFS(options) default: diagnostics = append(diagnostics, diag.Diagnostic{ Severity: diag.Error, @@ -653,440 +673,556 @@ func expandConnection(d ResourceData) (*management.Connection, diag.Diagnostics) AttributePath: cty.Path{cty.GetAttrStep{Name: "strategy"}}, }) } + + return stop }) return connection, diagnostics } -func expandConnectionOptionsGitHub(d ResourceData) (*management.ConnectionOptionsGitHub, diag.Diagnostics) { +func expandConnectionOptionsGitHub( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsGitHub, diag.Diagnostics) { options := &management.ConnectionOptionsGitHub{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsAuth0(d ResourceData) (*management.ConnectionOptions, diag.Diagnostics) { +func expandConnectionOptionsAuth0(config cty.Value) (*management.ConnectionOptions, diag.Diagnostics) { options := &management.ConnectionOptions{ - PasswordPolicy: String(d, "password_policy"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), - SetUserAttributes: String(d, "set_user_root_attributes"), - } - - List(d, "validation").Elem(func(d ResourceData) { - options.Validation = make(map[string]interface{}) - List(d, "username").Elem(func(d ResourceData) { - usernameValidation := make(map[string]*int) - usernameValidation["min"] = Int(d, "min") - usernameValidation["max"] = Int(d, "max") - options.Validation["username"] = usernameValidation - }) - }) + PasswordPolicy: value.String(config.GetAttr("password_policy")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + EnabledDatabaseCustomization: value.Bool(config.GetAttr("enabled_database_customization")), + BruteForceProtection: value.Bool(config.GetAttr("brute_force_protection")), + ImportMode: value.Bool(config.GetAttr("import_mode")), + DisableSignup: value.Bool(config.GetAttr("disable_signup")), + RequiresUsername: value.Bool(config.GetAttr("requires_username")), + CustomScripts: value.MapOfStrings(config.GetAttr("custom_scripts")), + Configuration: value.MapOfStrings(config.GetAttr("configuration")), + } + + config.GetAttr("validation").ForEachElement( + func(_ cty.Value, validation cty.Value) (stop bool) { + validationOption := make(map[string]interface{}) + + validation.GetAttr("username").ForEachElement( + func(_ cty.Value, username cty.Value) (stop bool) { + usernameValidation := make(map[string]*int) + + if min := value.Int(username.GetAttr("min")); min != nil { + usernameValidation["min"] = min + } + if max := value.Int(username.GetAttr("max")); max != nil { + usernameValidation["max"] = max + } + + if len(usernameValidation) > 0 { + validationOption["username"] = usernameValidation + } + + return stop + }, + ) - List(d, "password_history").Elem(func(d ResourceData) { - options.PasswordHistory = make(map[string]interface{}) - options.PasswordHistory["enable"] = Bool(d, "enable") + if len(validationOption) > 0 { + options.Validation = validationOption + } - if size, ok := d.GetOk("size"); ok { - options.PasswordHistory["size"] = auth0.Int(size.(int)) - } - }) + return stop + }, + ) - List(d, "password_no_personal_info").Elem(func(d ResourceData) { - options.PasswordNoPersonalInfo = make(map[string]interface{}) - options.PasswordNoPersonalInfo["enable"] = Bool(d, "enable") - }) + config.GetAttr("password_history").ForEachElement( + func(_ cty.Value, passwordHistory cty.Value) (stop bool) { + passwordHistoryOption := make(map[string]interface{}) - List(d, "password_dictionary").Elem(func(d ResourceData) { - options.PasswordDictionary = make(map[string]interface{}) - options.PasswordDictionary["enable"] = Bool(d, "enable") - options.PasswordDictionary["dictionary"] = Set(d, "dictionary").List() - }) + if enable := value.Bool(passwordHistory.GetAttr("enable")); enable != nil { + passwordHistoryOption["enable"] = enable + } - List(d, "password_complexity_options").Elem(func(d ResourceData) { - options.PasswordComplexityOptions = make(map[string]interface{}) - options.PasswordComplexityOptions["min_length"] = Int(d, "min_length") - }) + if size := value.Int(passwordHistory.GetAttr("size")); size != nil && *size != 0 { + passwordHistoryOption["size"] = size + } - List(d, "mfa").Elem(func(d ResourceData) { - options.MFA = make(map[string]interface{}) - options.MFA["active"] = Bool(d, "active") - options.MFA["return_enroll_settings"] = Bool(d, "return_enroll_settings") - }) + if len(passwordHistoryOption) > 0 { + options.PasswordHistory = passwordHistoryOption + } + + return stop + }, + ) - options.EnabledDatabaseCustomization = Bool(d, "enabled_database_customization") - options.BruteForceProtection = Bool(d, "brute_force_protection") - options.ImportMode = Bool(d, "import_mode") - options.DisableSignup = Bool(d, "disable_signup") - options.RequiresUsername = Bool(d, "requires_username") - options.CustomScripts = Map(d, "custom_scripts") - options.Configuration = Map(d, "configuration") + config.GetAttr("password_no_personal_info").ForEachElement( + func(_ cty.Value, passwordNoPersonalInfo cty.Value) (stop bool) { + if enable := value.Bool(passwordNoPersonalInfo.GetAttr("enable")); enable != nil { + options.PasswordNoPersonalInfo = map[string]interface{}{ + "enable": enable, + } + } + + return stop + }, + ) + + config.GetAttr("password_dictionary").ForEachElement( + func(_ cty.Value, passwordDictionary cty.Value) (stop bool) { + passwordDictionaryOption := make(map[string]interface{}) + + if enable := value.Bool(passwordDictionary.GetAttr("enable")); enable != nil { + passwordDictionaryOption["enable"] = enable + } + if dictionary := value.Strings(passwordDictionary.GetAttr("dictionary")); dictionary != nil { + passwordDictionaryOption["dictionary"] = dictionary + } + + if len(passwordDictionaryOption) > 0 { + options.PasswordDictionary = passwordDictionaryOption + } + + return stop + }, + ) + + config.GetAttr("password_complexity_options").ForEachElement( + func(_ cty.Value, passwordComplexity cty.Value) (stop bool) { + if minLength := value.Int(passwordComplexity.GetAttr("min_length")); minLength != nil { + options.PasswordComplexityOptions = map[string]interface{}{ + "min_length": minLength, + } + } + + return stop + }, + ) + + config.GetAttr("mfa").ForEachElement( + func(_ cty.Value, mfa cty.Value) (stop bool) { + mfaOption := make(map[string]interface{}) + + if active := value.Bool(mfa.GetAttr("active")); active != nil { + mfaOption["active"] = active + } + if returnEnrollSettings := value.Bool(mfa.GetAttr("return_enroll_settings")); returnEnrollSettings != nil { + mfaOption["return_enroll_settings"] = returnEnrollSettings + } + + if len(mfaOption) > 0 { + options.MFA = mfaOption + } + + return stop + }, + ) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsGoogleOAuth2(d ResourceData) (*management.ConnectionOptionsGoogleOAuth2, diag.Diagnostics) { +func expandConnectionOptionsGoogleOAuth2( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsGoogleOAuth2, diag.Diagnostics) { options := &management.ConnectionOptionsGoogleOAuth2{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - AllowedAudiences: Set(d, "allowed_audiences").List(), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + AllowedAudiences: value.Strings(config.GetAttr("allowed_audiences")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsGoogleApps(d ResourceData) (*management.ConnectionOptionsGoogleApps, diag.Diagnostics) { +func expandConnectionOptionsGoogleApps( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsGoogleApps, diag.Diagnostics) { options := &management.ConnectionOptionsGoogleApps{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - Domain: String(d, "domain"), - TenantDomain: String(d, "tenant_domain"), - EnableUsersAPI: Bool(d, "api_enable_users"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), - DomainAliases: Set(d, "domain_aliases").List(), - LogoURL: String(d, "icon_url"), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + Domain: value.String(config.GetAttr("domain")), + TenantDomain: value.String(config.GetAttr("tenant_domain")), + EnableUsersAPI: value.Bool(config.GetAttr("api_enable_users")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), + DomainAliases: value.Strings(config.GetAttr("domain_aliases")), + LogoURL: value.String(config.GetAttr("icon_url")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsOAuth2(d ResourceData) (*management.ConnectionOptionsOAuth2, diag.Diagnostics) { +func expandConnectionOptionsOAuth2( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsOAuth2, diag.Diagnostics) { options := &management.ConnectionOptionsOAuth2{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - AuthorizationURL: String(d, "authorization_endpoint"), - TokenURL: String(d, "token_endpoint"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), - LogoURL: String(d, "icon_url"), - PKCEEnabled: Bool(d, "pkce_enabled"), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + AuthorizationURL: value.String(config.GetAttr("authorization_endpoint")), + TokenURL: value.String(config.GetAttr("token_endpoint")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), + LogoURL: value.String(config.GetAttr("icon_url")), + PKCEEnabled: value.Bool(config.GetAttr("pkce_enabled")), + Scripts: value.MapOfStrings(config.GetAttr("scripts")), } - options.Scripts = Map(d, "scripts") expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsFacebook(d ResourceData) (*management.ConnectionOptionsFacebook, diag.Diagnostics) { +func expandConnectionOptionsFacebook( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsFacebook, diag.Diagnostics) { options := &management.ConnectionOptionsFacebook{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsApple(d ResourceData) (*management.ConnectionOptionsApple, diag.Diagnostics) { +func expandConnectionOptionsApple( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsApple, diag.Diagnostics) { options := &management.ConnectionOptionsApple{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - TeamID: String(d, "team_id"), - KeyID: String(d, "key_id"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + TeamID: value.String(config.GetAttr("team_id")), + KeyID: value.String(config.GetAttr("key_id")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsLinkedin(d ResourceData) (*management.ConnectionOptionsLinkedin, diag.Diagnostics) { +func expandConnectionOptionsLinkedin( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsLinkedin, diag.Diagnostics) { options := &management.ConnectionOptionsLinkedin{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - StrategyVersion: Int(d, "strategy_version"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + StrategyVersion: value.Int(config.GetAttr("strategy_version")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsSalesforce(d ResourceData) (*management.ConnectionOptionsSalesforce, diag.Diagnostics) { +func expandConnectionOptionsSalesforce( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsSalesforce, diag.Diagnostics) { options := &management.ConnectionOptionsSalesforce{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - CommunityBaseURL: String(d, "community_base_url"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + CommunityBaseURL: value.String(config.GetAttr("community_base_url")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsWindowsLive(d ResourceData) (*management.ConnectionOptionsWindowsLive, diag.Diagnostics) { +func expandConnectionOptionsWindowsLive( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsWindowsLive, diag.Diagnostics) { options := &management.ConnectionOptionsWindowsLive{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - StrategyVersion: Int(d, "strategy_version"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + StrategyVersion: value.Int(config.GetAttr("strategy_version")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsSMS(d ResourceData) (*management.ConnectionOptionsSMS, diag.Diagnostics) { +func expandConnectionOptionsSMS(config cty.Value) (*management.ConnectionOptionsSMS, diag.Diagnostics) { options := &management.ConnectionOptionsSMS{ - Name: String(d, "name"), - From: String(d, "from"), - Syntax: String(d, "syntax"), - Template: String(d, "template"), - TwilioSID: String(d, "twilio_sid"), - TwilioToken: String(d, "twilio_token"), - MessagingServiceSID: String(d, "messaging_service_sid"), - Provider: String(d, "provider"), - GatewayURL: String(d, "gateway_url"), - ForwardRequestInfo: Bool(d, "forward_request_info"), - DisableSignup: Bool(d, "disable_signup"), - BruteForceProtection: Bool(d, "brute_force_protection"), - } - - List(d, "totp").Elem(func(d ResourceData) { + Name: value.String(config.GetAttr("name")), + From: value.String(config.GetAttr("from")), + Syntax: value.String(config.GetAttr("syntax")), + Template: value.String(config.GetAttr("template")), + TwilioSID: value.String(config.GetAttr("twilio_sid")), + TwilioToken: value.String(config.GetAttr("twilio_token")), + MessagingServiceSID: value.String(config.GetAttr("messaging_service_sid")), + Provider: value.String(config.GetAttr("provider")), + GatewayURL: value.String(config.GetAttr("gateway_url")), + ForwardRequestInfo: value.Bool(config.GetAttr("forward_request_info")), + DisableSignup: value.Bool(config.GetAttr("disable_signup")), + BruteForceProtection: value.Bool(config.GetAttr("brute_force_protection")), + } + + config.GetAttr("totp").ForEachElement(func(_ cty.Value, totp cty.Value) (stop bool) { options.OTP = &management.ConnectionOptionsOTP{ - TimeStep: Int(d, "time_step"), - Length: Int(d, "length"), + TimeStep: value.Int(totp.GetAttr("time_step")), + Length: value.Int(totp.GetAttr("length")), } + + return stop }) - List(d, "gateway_authentication").Elem(func(d ResourceData) { + config.GetAttr("gateway_authentication").ForEachElement(func(_ cty.Value, auth cty.Value) (stop bool) { options.GatewayAuthentication = &management.ConnectionGatewayAuthentication{ - Method: String(d, "method"), - Subject: String(d, "subject"), - Audience: String(d, "audience"), - Secret: String(d, "secret"), - SecretBase64Encoded: Bool(d, "secret_base64_encoded"), + Method: value.String(auth.GetAttr("method")), + Subject: value.String(auth.GetAttr("subject")), + Audience: value.String(auth.GetAttr("audience")), + Secret: value.String(auth.GetAttr("secret")), + SecretBase64Encoded: value.Bool(auth.GetAttr("secret_base64_encoded")), } + + return stop }) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsEmail(d ResourceData) (*management.ConnectionOptionsEmail, diag.Diagnostics) { +func expandConnectionOptionsEmail(config cty.Value) (*management.ConnectionOptionsEmail, diag.Diagnostics) { options := &management.ConnectionOptionsEmail{ - Name: String(d, "name"), - DisableSignup: Bool(d, "disable_signup"), + Name: value.String(config.GetAttr("name")), + DisableSignup: value.Bool(config.GetAttr("disable_signup")), Email: &management.ConnectionOptionsEmailSettings{ - Syntax: String(d, "syntax"), - From: String(d, "from"), - Subject: String(d, "subject"), - Body: String(d, "template"), + Syntax: value.String(config.GetAttr("syntax")), + From: value.String(config.GetAttr("from")), + Subject: value.String(config.GetAttr("subject")), + Body: value.String(config.GetAttr("template")), }, - BruteForceProtection: Bool(d, "brute_force_protection"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + BruteForceProtection: value.Bool(config.GetAttr("brute_force_protection")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } - List(d, "totp").Elem(func(d ResourceData) { + config.GetAttr("totp").ForEachElement(func(_ cty.Value, totp cty.Value) (stop bool) { options.OTP = &management.ConnectionOptionsOTP{ - TimeStep: Int(d, "time_step"), - Length: Int(d, "length"), + TimeStep: value.Int(totp.GetAttr("time_step")), + Length: value.Int(totp.GetAttr("length")), } + + return stop }) - if authParamsMap := Map(d, "auth_params"); authParamsMap != nil { + if authParamsMap := value.MapOfStrings(config.GetAttr("auth_params")); authParamsMap != nil { options.AuthParams = authParamsMap } var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsAD(d ResourceData) (*management.ConnectionOptionsAD, diag.Diagnostics) { +func expandConnectionOptionsAD(config cty.Value) (*management.ConnectionOptionsAD, diag.Diagnostics) { options := &management.ConnectionOptionsAD{ - DomainAliases: Set(d, "domain_aliases").List(), - TenantDomain: String(d, "tenant_domain"), - LogoURL: String(d, "icon_url"), - IPs: Set(d, "ips").List(), - CertAuth: Bool(d, "use_cert_auth"), - Kerberos: Bool(d, "use_kerberos"), - DisableCache: Bool(d, "disable_cache"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), - BruteForceProtection: Bool(d, "brute_force_protection"), + DomainAliases: value.Strings(config.GetAttr("domain_aliases")), + TenantDomain: value.String(config.GetAttr("tenant_domain")), + LogoURL: value.String(config.GetAttr("icon_url")), + IPs: value.Strings(config.GetAttr("ips")), + CertAuth: value.Bool(config.GetAttr("use_cert_auth")), + Kerberos: value.Bool(config.GetAttr("use_kerberos")), + DisableCache: value.Bool(config.GetAttr("disable_cache")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), + BruteForceProtection: value.Bool(config.GetAttr("brute_force_protection")), } var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsAzureAD(d ResourceData) (*management.ConnectionOptionsAzureAD, diag.Diagnostics) { +func expandConnectionOptionsAzureAD( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsAzureAD, diag.Diagnostics) { options := &management.ConnectionOptionsAzureAD{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - AppID: String(d, "app_id"), - Domain: String(d, "domain"), - DomainAliases: Set(d, "domain_aliases").List(), - TenantDomain: String(d, "tenant_domain"), - MaxGroupsToRetrieve: String(d, "max_groups_to_retrieve"), - UseWSFederation: Bool(d, "use_wsfed"), - WAADProtocol: String(d, "waad_protocol"), - UseCommonEndpoint: Bool(d, "waad_common_endpoint"), - EnableUsersAPI: Bool(d, "api_enable_users"), - LogoURL: String(d, "icon_url"), - IdentityAPI: String(d, "identity_api"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), - TrustEmailVerified: String(d, "should_trust_email_verified_connection"), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + AppID: value.String(config.GetAttr("app_id")), + Domain: value.String(config.GetAttr("domain")), + DomainAliases: value.Strings(config.GetAttr("domain_aliases")), + TenantDomain: value.String(config.GetAttr("tenant_domain")), + MaxGroupsToRetrieve: value.String(config.GetAttr("max_groups_to_retrieve")), + UseWSFederation: value.Bool(config.GetAttr("use_wsfed")), + WAADProtocol: value.String(config.GetAttr("waad_protocol")), + UseCommonEndpoint: value.Bool(config.GetAttr("waad_common_endpoint")), + EnableUsersAPI: value.Bool(config.GetAttr("api_enable_users")), + LogoURL: value.String(config.GetAttr("icon_url")), + IdentityAPI: value.String(config.GetAttr("identity_api")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), + TrustEmailVerified: value.String(config.GetAttr("should_trust_email_verified_connection")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsOIDC(d ResourceData) (*management.ConnectionOptionsOIDC, diag.Diagnostics) { +func expandConnectionOptionsOIDC( + d *schema.ResourceData, + config cty.Value, +) (*management.ConnectionOptionsOIDC, diag.Diagnostics) { options := &management.ConnectionOptionsOIDC{ - ClientID: String(d, "client_id"), - ClientSecret: String(d, "client_secret"), - TenantDomain: String(d, "tenant_domain"), - DomainAliases: Set(d, "domain_aliases").List(), - LogoURL: String(d, "icon_url"), - DiscoveryURL: String(d, "discovery_url"), - AuthorizationEndpoint: String(d, "authorization_endpoint"), - Issuer: String(d, "issuer"), - JWKSURI: String(d, "jwks_uri"), - Type: String(d, "type"), - UserInfoEndpoint: String(d, "userinfo_endpoint"), - TokenEndpoint: String(d, "token_endpoint"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + ClientID: value.String(config.GetAttr("client_id")), + ClientSecret: value.String(config.GetAttr("client_secret")), + TenantDomain: value.String(config.GetAttr("tenant_domain")), + DomainAliases: value.Strings(config.GetAttr("domain_aliases")), + LogoURL: value.String(config.GetAttr("icon_url")), + DiscoveryURL: value.String(config.GetAttr("discovery_url")), + AuthorizationEndpoint: value.String(config.GetAttr("authorization_endpoint")), + Issuer: value.String(config.GetAttr("issuer")), + JWKSURI: value.String(config.GetAttr("jwks_uri")), + Type: value.String(config.GetAttr("type")), + UserInfoEndpoint: value.String(config.GetAttr("userinfo_endpoint")), + TokenEndpoint: value.String(config.GetAttr("token_endpoint")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } expandConnectionOptionsScopes(d, options) var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } -func expandConnectionOptionsSAML(d ResourceData) (*management.ConnectionOptionsSAML, diag.Diagnostics) { +func expandConnectionOptionsSAML(config cty.Value) (*management.ConnectionOptionsSAML, diag.Diagnostics) { options := &management.ConnectionOptionsSAML{ - Debug: Bool(d, "debug"), - SigningCert: String(d, "signing_cert"), - ProtocolBinding: String(d, "protocol_binding"), - TenantDomain: String(d, "tenant_domain"), - DomainAliases: Set(d, "domain_aliases").List(), - SignInEndpoint: String(d, "sign_in_endpoint"), - SignOutEndpoint: String(d, "sign_out_endpoint"), - DisableSignOut: Bool(d, "disable_sign_out"), - SignatureAlgorithm: String(d, "signature_algorithm"), - DigestAglorithm: String(d, "digest_algorithm"), - SignSAMLRequest: Bool(d, "sign_saml_request"), - RequestTemplate: String(d, "request_template"), - UserIDAttribute: String(d, "user_id_attribute"), - LogoURL: String(d, "icon_url"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), - EntityID: String(d, "entity_id"), - MetadataXML: String(d, "metadata_xml"), - MetadataURL: String(d, "metadata_url"), - } - - List(d, "idp_initiated").Elem(func(d ResourceData) { + Debug: value.Bool(config.GetAttr("debug")), + SigningCert: value.String(config.GetAttr("signing_cert")), + ProtocolBinding: value.String(config.GetAttr("protocol_binding")), + TenantDomain: value.String(config.GetAttr("tenant_domain")), + DomainAliases: value.Strings(config.GetAttr("domain_aliases")), + SignInEndpoint: value.String(config.GetAttr("sign_in_endpoint")), + SignOutEndpoint: value.String(config.GetAttr("sign_out_endpoint")), + DisableSignOut: value.Bool(config.GetAttr("disable_sign_out")), + SignatureAlgorithm: value.String(config.GetAttr("signature_algorithm")), + DigestAglorithm: value.String(config.GetAttr("digest_algorithm")), + SignSAMLRequest: value.Bool(config.GetAttr("sign_saml_request")), + RequestTemplate: value.String(config.GetAttr("request_template")), + UserIDAttribute: value.String(config.GetAttr("user_id_attribute")), + LogoURL: value.String(config.GetAttr("icon_url")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), + EntityID: value.String(config.GetAttr("entity_id")), + MetadataXML: value.String(config.GetAttr("metadata_xml")), + MetadataURL: value.String(config.GetAttr("metadata_url")), + } + + config.GetAttr("idp_initiated").ForEachElement(func(_ cty.Value, idp cty.Value) (stop bool) { options.IdpInitiated = &management.ConnectionOptionsSAMLIdpInitiated{ - ClientID: String(d, "client_id"), - ClientProtocol: String(d, "client_protocol"), - ClientAuthorizeQuery: String(d, "client_authorize_query"), + ClientID: value.String(idp.GetAttr("client_id")), + ClientProtocol: value.String(idp.GetAttr("client_protocol")), + ClientAuthorizeQuery: value.String(idp.GetAttr("client_authorize_query")), } + + return stop }) - List(d, "signing_key").Elem(func(d ResourceData) { + config.GetAttr("signing_key").ForEachElement(func(_ cty.Value, key cty.Value) (stop bool) { options.SigningKey = &management.ConnectionOptionsSAMLSigningKey{ - Cert: String(d, "cert"), - Key: String(d, "key"), + Cert: value.String(key.GetAttr("cert")), + Key: value.String(key.GetAttr("key")), } + + return stop }) var err error - options.FieldsMap, err = JSON(d, "fields_map") + options.FieldsMap, err = value.MapFromJSON(config.GetAttr("fields_map")) diagnostics := diag.FromErr(err) - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) diagnostics = append(diagnostics, diag.FromErr(err)...) return options, diagnostics } -func expandConnectionOptionsADFS(d ResourceData) (*management.ConnectionOptionsADFS, diag.Diagnostics) { +func expandConnectionOptionsADFS(config cty.Value) (*management.ConnectionOptionsADFS, diag.Diagnostics) { options := &management.ConnectionOptionsADFS{ - TenantDomain: String(d, "tenant_domain"), - DomainAliases: Set(d, "domain_aliases").List(), - LogoURL: String(d, "icon_url"), - ADFSServer: String(d, "adfs_server"), - EnableUsersAPI: Bool(d, "api_enable_users"), - SetUserAttributes: String(d, "set_user_root_attributes"), - NonPersistentAttrs: castToListOfStrings(Set(d, "non_persistent_attrs").List()), + TenantDomain: value.String(config.GetAttr("tenant_domain")), + DomainAliases: value.Strings(config.GetAttr("domain_aliases")), + LogoURL: value.String(config.GetAttr("icon_url")), + ADFSServer: value.String(config.GetAttr("adfs_server")), + EnableUsersAPI: value.Bool(config.GetAttr("api_enable_users")), + SetUserAttributes: value.String(config.GetAttr("set_user_root_attributes")), + NonPersistentAttrs: value.Strings(config.GetAttr("non_persistent_attrs")), } var err error - options.UpstreamParams, err = JSON(d, "upstream_params") + options.UpstreamParams, err = value.MapFromJSON(config.GetAttr("upstream_params")) return options, diag.FromErr(err) } @@ -1096,21 +1232,13 @@ type scoper interface { SetScopes(enable bool, scopes ...string) } -func expandConnectionOptionsScopes(d ResourceData, s scoper) { - scopesList := Set(d, "scopes").List() - _, scopesDiff := Diff(d, "scopes") +func expandConnectionOptionsScopes(d *schema.ResourceData, s scoper) { + scopesList := Set(d, "options.0.scopes").List() + _, scopesToDisable := Diff(d, "options.0.scopes") for _, scope := range scopesList { s.SetScopes(true, scope.(string)) } - for _, scope := range scopesDiff.List() { + for _, scope := range scopesToDisable.List() { s.SetScopes(false, scope.(string)) } } - -func castToListOfStrings(interfaces []interface{}) *[]string { - var strings []string - for _, v := range interfaces { - strings = append(strings, v.(string)) - } - return &strings -} diff --git a/internal/provider/structure_auth0_connection_test.go b/internal/provider/structure_auth0_connection_test.go index e94293dd3..d09b037e7 100644 --- a/internal/provider/structure_auth0_connection_test.go +++ b/internal/provider/structure_auth0_connection_test.go @@ -57,13 +57,13 @@ func TestCheckForUnmanagedConfigurationSecrets(t *testing.T) { var testCases = []struct { name string givenConfigFromTF map[string]interface{} - givenConfigFromAPI map[string]interface{} + givenConfigFromAPI map[string]string expectedDiagnostics diag.Diagnostics }{ { name: "custom database has no configuration", givenConfigFromTF: map[string]interface{}{}, - givenConfigFromAPI: map[string]interface{}{}, + givenConfigFromAPI: map[string]string{}, expectedDiagnostics: diag.Diagnostics(nil), }, { @@ -71,7 +71,7 @@ func TestCheckForUnmanagedConfigurationSecrets(t *testing.T) { givenConfigFromTF: map[string]interface{}{ "foo": "bar", }, - givenConfigFromAPI: map[string]interface{}{ + givenConfigFromAPI: map[string]string{ "foo": "bar", }, expectedDiagnostics: diag.Diagnostics(nil), @@ -81,7 +81,7 @@ func TestCheckForUnmanagedConfigurationSecrets(t *testing.T) { givenConfigFromTF: map[string]interface{}{ "foo": "bar", }, - givenConfigFromAPI: map[string]interface{}{ + givenConfigFromAPI: map[string]string{ "foo": "bar", "anotherFoo": "anotherBar", }, diff --git a/internal/provider/structure_auth0_guardian.go b/internal/provider/structure_auth0_guardian.go index 176a95c59..583c0d287 100644 --- a/internal/provider/structure_auth0_guardian.go +++ b/internal/provider/structure_auth0_guardian.go @@ -2,7 +2,10 @@ package provider import ( "github.com/auth0/go-auth0/management" + "github.com/hashicorp/go-cty/cty" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func flattenMultiFactorPolicy(api *management.Management) (string, error) { @@ -217,7 +220,7 @@ func updatePhoneFactor(d *schema.ResourceData, api *management.Management) error return err } - return configurePhone(d, api) + return configurePhone(d.GetRawConfig(), api) } return api.Guardian.MultiFactor.Phone.Enable(false) @@ -241,101 +244,87 @@ func hasBlockPresentInNewState(d *schema.ResourceData, factor string) bool { return false } -func configurePhone(d *schema.ResourceData, api *management.Management) error { - m := make(map[string]interface{}) - List(d, "phone").Elem(func(d ResourceData) { - m["provider"] = String(d, "provider") - m["message_types"] = Slice(d, "message_types") - m["options"] = List(d, "options") - }) +func configurePhone(config cty.Value, api *management.Management) error { + var err error + + config.GetAttr("phone").ForEachElement(func(_ cty.Value, phone cty.Value) (stop bool) { + mfaProvider := &management.MultiFactorProvider{ + Provider: value.String(phone.GetAttr("provider")), + } + if err = api.Guardian.MultiFactor.Phone.UpdateProvider(mfaProvider); err != nil { + return true + } - if p, ok := m["provider"]; ok && p != nil { - provider := p.(*string) - switch *provider { + options := phone.GetAttr("options") + switch mfaProvider.GetProvider() { case "twilio": - if err := updateTwilioOptions(m["options"].(Iterator), api); err != nil { - return err + if err = updateTwilioOptions(options, api); err != nil { + return true } case "auth0": - if err := updateAuth0Options(m["options"].(Iterator), api); err != nil { - return err + if err = updateAuth0Options(options, api); err != nil { + return true } } - multiFactorProvider := &management.MultiFactorProvider{Provider: provider} - if err := api.Guardian.MultiFactor.Phone.UpdateProvider(multiFactorProvider); err != nil { - return err + messageTypes := &management.PhoneMessageTypes{ + MessageTypes: value.Strings(phone.GetAttr("message_types")), + } + if err = api.Guardian.MultiFactor.Phone.UpdateMessageTypes(messageTypes); err != nil { + return true } - } - messageTypes := fromInterfaceSliceToStringSlice(m["message_types"].([]interface{})) - if len(messageTypes) == 0 { - return nil - } + return stop + }) - return api.Guardian.MultiFactor.Phone.UpdateMessageTypes( - &management.PhoneMessageTypes{MessageTypes: &messageTypes}, - ) + return err } -func updateAuth0Options(opts Iterator, api *management.Management) error { +func updateAuth0Options(options cty.Value, api *management.Management) error { var err error - opts.Elem(func(d ResourceData) { + + options.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { err = api.Guardian.MultiFactor.SMS.UpdateTemplate( &management.MultiFactorSMSTemplate{ - EnrollmentMessage: String(d, "enrollment_message"), - VerificationMessage: String(d, "verification_message"), + EnrollmentMessage: value.String(config.GetAttr("enrollment_message")), + VerificationMessage: value.String(config.GetAttr("verification_message")), }, ) + + return stop }) return err } -func updateTwilioOptions(opts Iterator, api *management.Management) error { - m := make(map[string]*string) - - opts.Elem(func(d ResourceData) { - m["sid"] = String(d, "sid") - m["auth_token"] = String(d, "auth_token") - m["from"] = String(d, "from") - m["messaging_service_sid"] = String(d, "messaging_service_sid") - m["enrollment_message"] = String(d, "enrollment_message") - m["verification_message"] = String(d, "verification_message") - }) - - err := api.Guardian.MultiFactor.SMS.UpdateTwilio( - &management.MultiFactorProviderTwilio{ - From: m["from"], - MessagingServiceSid: m["messaging_service_sid"], - AuthToken: m["auth_token"], - SID: m["sid"], - }, - ) - if err != nil { - return err - } +func updateTwilioOptions(options cty.Value, api *management.Management) error { + var err error - return api.Guardian.MultiFactor.SMS.UpdateTemplate( - &management.MultiFactorSMSTemplate{ - EnrollmentMessage: m["enrollment_message"], - VerificationMessage: m["verification_message"], - }, - ) -} + options.ForEachElement(func(_ cty.Value, config cty.Value) (stop bool) { + if err = api.Guardian.MultiFactor.SMS.UpdateTwilio( + &management.MultiFactorProviderTwilio{ + From: value.String(config.GetAttr("from")), + MessagingServiceSid: value.String(config.GetAttr("messaging_service_sid")), + AuthToken: value.String(config.GetAttr("auth_token")), + SID: value.String(config.GetAttr("sid")), + }, + ); err != nil { + return true + } -func fromInterfaceSliceToStringSlice(from []interface{}) []string { - length := len(from) - if length == 0 { - return nil - } + if err = api.Guardian.MultiFactor.SMS.UpdateTemplate( + &management.MultiFactorSMSTemplate{ + EnrollmentMessage: value.String(config.GetAttr("enrollment_message")), + VerificationMessage: value.String(config.GetAttr("verification_message")), + }, + ); err != nil { + return true + } - stringArray := make([]string, length) - for i, v := range from { - stringArray[i] = v.(string) - } + return stop + }) - return stringArray + return err } func updateWebAuthnRoaming(d *schema.ResourceData, api *management.Management) error { @@ -346,11 +335,14 @@ func updateWebAuthnRoaming(d *schema.ResourceData, api *management.Management) e var webAuthnSettings management.MultiFactorWebAuthnSettings - List(d, "webauthn_roaming").Elem(func(d ResourceData) { - webAuthnSettings.OverrideRelyingParty = Bool(d, "override_relying_party") - webAuthnSettings.RelyingPartyIdentifier = String(d, "relying_party_identifier") - webAuthnSettings.UserVerification = String(d, "user_verification") - }) + 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 + }, + ) if webAuthnSettings == (management.MultiFactorWebAuthnSettings{}) { return nil @@ -370,10 +362,13 @@ func updateWebAuthnPlatform(d *schema.ResourceData, api *management.Management) var webAuthnSettings management.MultiFactorWebAuthnSettings - List(d, "webauthn_platform").Elem(func(d ResourceData) { - webAuthnSettings.OverrideRelyingParty = Bool(d, "override_relying_party") - webAuthnSettings.RelyingPartyIdentifier = String(d, "relying_party_identifier") - }) + 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 + }, + ) if webAuthnSettings == (management.MultiFactorWebAuthnSettings{}) { return nil @@ -393,11 +388,18 @@ func updateDUO(d *schema.ResourceData, api *management.Management) error { var duoSettings management.MultiFactorDUOSettings - List(d, "duo").Elem(func(d ResourceData) { - duoSettings.SecretKey = String(d, "secret_key") - duoSettings.Hostname = String(d, "hostname") - duoSettings.IntegrationKey = String(d, "integration_key") - }) + 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 + }, + ) + + if duoSettings == (management.MultiFactorDUOSettings{}) { + return nil + } return api.Guardian.MultiFactor.DUO.Update(&duoSettings) } @@ -411,37 +413,48 @@ func updatePush(d *schema.ResourceData, api *management.Management) error { return err } - var amazonSNS *management.MultiFactorProviderAmazonSNS - List(d, "amazon_sns", HasChange()).Elem(func(d ResourceData) { - amazonSNS = &management.MultiFactorProviderAmazonSNS{ - AccessKeyID: String(d, "aws_access_key_id"), - SecretAccessKeyID: String(d, "aws_secret_access_key"), - Region: String(d, "aws_region"), - APNSPlatformApplicationARN: String(d, "sns_apns_platform_application_arn"), - GCMPlatformApplicationARN: String(d, "sns_gcm_platform_application_arn"), + var err error + d.GetRawConfig().GetAttr("push").ForEachElement(func(_ cty.Value, push cty.Value) (stop bool) { + if d.HasChange("push.0.amazon_sns") { + 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 amazonSNS != nil { - if err := api.Guardian.MultiFactor.Push.UpdateAmazonSNS(amazonSNS); err != nil { - return err - } - } - var customApp *management.MultiFactorPushCustomApp - List(d, "custom_app", HasChange()).Elem(func(d ResourceData) { - customApp = &management.MultiFactorPushCustomApp{ - AppName: String(d, "app_name"), - AppleAppLink: String(d, "apple_app_link"), - GoogleAppLink: String(d, "google_app_link"), + if d.HasChange("push.0.custom_app") { + 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 }) - if customApp != nil { - if err := api.Guardian.MultiFactor.Push.UpdateCustomApp(customApp); err != nil { - return err - } - } - return nil + return err } return api.Guardian.MultiFactor.Push.Enable(false) diff --git a/internal/provider/structure_auth0_tenant.go b/internal/provider/structure_auth0_tenant.go index 5db465334..e6e75c2e9 100644 --- a/internal/provider/structure_auth0_tenant.go +++ b/internal/provider/structure_auth0_tenant.go @@ -3,6 +3,8 @@ package provider import ( "github.com/auth0/go-auth0/management" "github.com/hashicorp/go-cty/cty" + + "github.com/auth0/terraform-provider-auth0/internal/value" ) func flattenTenantChangePassword(changePassword *management.TenantChangePassword) []interface{} { @@ -100,67 +102,70 @@ func flattenTenantSessionCookie(sessionCookie *management.TenantSessionCookie) [ return []interface{}{m} } -func expandTenantChangePassword(d ResourceData) *management.TenantChangePassword { +func expandTenantChangePassword(config cty.Value) *management.TenantChangePassword { var changePassword management.TenantChangePassword - List(d, "change_password").Elem(func(d ResourceData) { - changePassword.Enabled = Bool(d, "enabled") - changePassword.HTML = String(d, "html") + config.ForEachElement(func(_ cty.Value, d cty.Value) (stop bool) { + changePassword.Enabled = value.Bool(d.GetAttr("enabled")) + changePassword.HTML = value.String(d.GetAttr("html")) + return stop }) return &changePassword } -func expandTenantGuardianMFAPage(d ResourceData) *management.TenantGuardianMFAPage { +func expandTenantGuardianMFAPage(config cty.Value) *management.TenantGuardianMFAPage { var mfa management.TenantGuardianMFAPage - List(d, "guardian_mfa_page").Elem(func(d ResourceData) { - mfa.Enabled = Bool(d, "enabled") - mfa.HTML = String(d, "html") + config.ForEachElement(func(_ cty.Value, d cty.Value) (stop bool) { + mfa.Enabled = value.Bool(d.GetAttr("enabled")) + mfa.HTML = value.String(d.GetAttr("html")) + return stop }) return &mfa } -func expandTenantErrorPage(d ResourceData) *management.TenantErrorPage { +func expandTenantErrorPage(config cty.Value) *management.TenantErrorPage { var errorPage management.TenantErrorPage - List(d, "error_page").Elem(func(d ResourceData) { - errorPage.HTML = String(d, "html") - errorPage.ShowLogLink = Bool(d, "show_log_link") - errorPage.URL = String(d, "url") + config.ForEachElement(func(_ cty.Value, d cty.Value) (stop bool) { + errorPage.HTML = value.String(d.GetAttr("html")) + errorPage.ShowLogLink = value.Bool(d.GetAttr("show_log_link")) + errorPage.URL = value.String(d.GetAttr("url")) + return stop }) return &errorPage } -func expandTenantFlags(flagsList cty.Value) *management.TenantFlags { +func expandTenantFlags(config cty.Value) *management.TenantFlags { var tenantFlags *management.TenantFlags - flagsList.ForEachElement(func(_ cty.Value, flags cty.Value) (stop bool) { + config.ForEachElement(func(_ cty.Value, flags cty.Value) (stop bool) { tenantFlags = &management.TenantFlags{ - EnableClientConnections: Flag(flags, "enable_client_connections"), - EnableAPIsSection: Flag(flags, "enable_apis_section"), - EnablePipeline2: Flag(flags, "enable_pipeline2"), - EnableDynamicClientRegistration: Flag(flags, "enable_dynamic_client_registration"), - EnableCustomDomainInEmails: Flag(flags, "enable_custom_domain_in_emails"), - UniversalLogin: Flag(flags, "universal_login"), - EnableLegacyLogsSearchV2: Flag(flags, "enable_legacy_logs_search_v2"), - DisableClickjackProtectionHeaders: Flag(flags, "disable_clickjack_protection_headers"), - EnablePublicSignupUserExistsError: Flag(flags, "enable_public_signup_user_exists_error"), - UseScopeDescriptionsForConsent: Flag(flags, "use_scope_descriptions_for_consent"), - AllowLegacyDelegationGrantTypes: Flag(flags, "allow_legacy_delegation_grant_types"), - AllowLegacyROGrantTypes: Flag(flags, "allow_legacy_ro_grant_types"), - AllowLegacyTokenInfoEndpoint: Flag(flags, "allow_legacy_tokeninfo_endpoint"), - EnableLegacyProfile: Flag(flags, "enable_legacy_profile"), - EnableIDTokenAPI2: Flag(flags, "enable_idtoken_api2"), - NoDisclosureEnterpriseConnections: Flag(flags, "no_disclose_enterprise_connections"), - DisableManagementAPISMSObfuscation: Flag(flags, "disable_management_api_sms_obfuscation"), - EnableADFSWAADEmailVerification: Flag(flags, "enable_adfs_waad_email_verification"), - RevokeRefreshTokenGrant: Flag(flags, "revoke_refresh_token_grant"), - DashboardLogStreams: Flag(flags, "dashboard_log_streams_next"), - DashboardInsightsView: Flag(flags, "dashboard_insights_view"), - DisableFieldsMapFix: Flag(flags, "disable_fields_map_fix"), + EnableClientConnections: value.Bool(flags.GetAttr("enable_client_connections")), + EnableAPIsSection: value.Bool(flags.GetAttr("enable_apis_section")), + EnablePipeline2: value.Bool(flags.GetAttr("enable_pipeline2")), + EnableDynamicClientRegistration: value.Bool(flags.GetAttr("enable_dynamic_client_registration")), + EnableCustomDomainInEmails: value.Bool(flags.GetAttr("enable_custom_domain_in_emails")), + UniversalLogin: value.Bool(flags.GetAttr("universal_login")), + EnableLegacyLogsSearchV2: value.Bool(flags.GetAttr("enable_legacy_logs_search_v2")), + DisableClickjackProtectionHeaders: value.Bool(flags.GetAttr("disable_clickjack_protection_headers")), + EnablePublicSignupUserExistsError: value.Bool(flags.GetAttr("enable_public_signup_user_exists_error")), + UseScopeDescriptionsForConsent: value.Bool(flags.GetAttr("use_scope_descriptions_for_consent")), + AllowLegacyDelegationGrantTypes: value.Bool(flags.GetAttr("allow_legacy_delegation_grant_types")), + AllowLegacyROGrantTypes: value.Bool(flags.GetAttr("allow_legacy_ro_grant_types")), + AllowLegacyTokenInfoEndpoint: value.Bool(flags.GetAttr("allow_legacy_tokeninfo_endpoint")), + EnableLegacyProfile: value.Bool(flags.GetAttr("enable_legacy_profile")), + EnableIDTokenAPI2: value.Bool(flags.GetAttr("enable_idtoken_api2")), + NoDisclosureEnterpriseConnections: value.Bool(flags.GetAttr("no_disclose_enterprise_connections")), + DisableManagementAPISMSObfuscation: value.Bool(flags.GetAttr("disable_management_api_sms_obfuscation")), + EnableADFSWAADEmailVerification: value.Bool(flags.GetAttr("enable_adfs_waad_email_verification")), + RevokeRefreshTokenGrant: value.Bool(flags.GetAttr("revoke_refresh_token_grant")), + DashboardLogStreams: value.Bool(flags.GetAttr("dashboard_log_streams_next")), + DashboardInsightsView: value.Bool(flags.GetAttr("dashboard_insights_view")), + DisableFieldsMapFix: value.Bool(flags.GetAttr("disable_fields_map_fix")), } return stop @@ -169,26 +174,31 @@ func expandTenantFlags(flagsList cty.Value) *management.TenantFlags { return tenantFlags } -func expandTenantUniversalLogin(d ResourceData) *management.TenantUniversalLogin { +func expandTenantUniversalLogin(config cty.Value) *management.TenantUniversalLogin { var universalLogin management.TenantUniversalLogin - List(d, "universal_login").Elem(func(d ResourceData) { - List(d, "colors").Elem(func(d ResourceData) { + config.ForEachElement(func(_ cty.Value, d cty.Value) (stop bool) { + colors := d.GetAttr("colors") + + colors.ForEachElement(func(_ cty.Value, color cty.Value) (stop bool) { universalLogin.Colors = &management.TenantUniversalLoginColors{ - Primary: String(d, "primary"), - PageBackground: String(d, "page_background"), + Primary: value.String(color.GetAttr("primary")), + PageBackground: value.String(color.GetAttr("page_background")), } + return stop }) + return stop }) return &universalLogin } -func expandTenantSessionCookie(d ResourceData) *management.TenantSessionCookie { +func expandTenantSessionCookie(config cty.Value) *management.TenantSessionCookie { var sessionCookie management.TenantSessionCookie - List(d, "session_cookie").Elem(func(d ResourceData) { - sessionCookie.Mode = String(d, "mode") + config.ForEachElement(func(_ cty.Value, d cty.Value) (stop bool) { + sessionCookie.Mode = value.String(d.GetAttr("mode")) + return stop }) return &sessionCookie diff --git a/test/data/recordings/TestAccAction.yaml b/test/data/recordings/TestAccAction.yaml index 748cdf34d..b8eb78b10 100644 --- a/test/data/recordings/TestAccAction.yaml +++ b/test/data/recordings/TestAccAction.yaml @@ -1,1046 +1,1118 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 208 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onExecutePostLogin = async (event, api) =\u003e {};","secrets":[{"name":"foo","value":"111111"}]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:02.572151888Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"pending","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:02.572151888Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:02.572151888Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:02.572151888Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:02.572151888Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:02.572151888Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:02.572151888Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:02.572151888Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:02.572151888Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:02.572151888Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 313 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","secrets":[{"name":"foo","value":"123456"},{"name":"bar","value":"654321"}]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 313 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","secrets":[{"name":"foo","value":"123456"},{"name":"bar","value":"654321"}]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"pending","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 7 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 8 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 9 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 10 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 11 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 12 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 13 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8/deploy - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":false,"number":1,"secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.602982243Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}],"action":{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.815277135Z","all_changes_deployed":false}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 14 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 15 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 16 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 17 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:10.824316012Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 18 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 265 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"pending","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T08:56:27.734059659Z","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"692d0bff-d81b-43c0-b882-89f5bdf22852","deployed":true,"number":1,"built_at":"2022-08-30T08:56:27.734059659Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:27.602982243Z","updated_at":"2022-08-30T08:56:27.734409751Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 25 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8/deploy - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"id":"33e5487a-75e3-42e3-8f72-d6f9d7a5767c","deployed":false,"number":2,"secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:46.868107624Z","updated_at":"2022-08-30T08:56:46.868107624Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}],"action":{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.767800355Z","all_changes_deployed":false}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 26 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"33e5487a-75e3-42e3-8f72-d6f9d7a5767c","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-08-30T08:56:46.977066930Z","created_at":"2022-08-30T08:56:46.868107624Z","updated_at":"2022-08-30T08:56:46.978616918Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"id":"33e5487a-75e3-42e3-8f72-d6f9d7a5767c","deployed":true,"number":2,"built_at":"2022-08-30T08:56:46.977066930Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:46.868107624Z","updated_at":"2022-08-30T08:56:46.978616918Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 27 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"c15fe9d4-2e1b-4566-9246-c70c08893dc8","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-08-30T08:56:02.558313085Z","updated_at":"2022-08-30T08:56:29.778351897Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"current_version":{"id":"33e5487a-75e3-42e3-8f72-d6f9d7a5767c","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-08-30T08:56:46.977066930Z","created_at":"2022-08-30T08:56:46.868107624Z","updated_at":"2022-08-30T08:56:46.978616918Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"}],"id":"33e5487a-75e3-42e3-8f72-d6f9d7a5767c","deployed":true,"number":2,"built_at":"2022-08-30T08:56:46.977066930Z","secrets":[{"name":"foo","updated_at":"2022-08-30T08:56:10.824316012Z"},{"name":"bar","updated_at":"2022-08-30T08:56:10.824316012Z"}],"status":"built","created_at":"2022-08-30T08:56:46.868107624Z","updated_at":"2022-08-30T08:56:46.978616918Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 28 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/c15fe9d4-2e1b-4566-9246-c70c08893dc8 - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 195 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onExecutePostLogin = async (event, api) =\u003e {};","dependencies":[],"secrets":[]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 392 + uncompressed: false + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:02.431398773Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"pending","secrets":[],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 1 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:02.431398773Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:02.431398773Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:02.431398773Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:02.431398773Z","code":"exports.onExecutePostLogin = async (event, api) => {};","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 281 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","secrets":[{"name":"foo","value":"111111"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"pending","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb/deploy + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":false,"number":1,"secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.749282173Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}],"action":{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.332314769Z","all_changes_deployed":false}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:04.340999221Z","code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 327 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"},{"name":"moment","version":"2.29.4"}],"secrets":[{"name":"foo","value":"123456"}]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"},{"name":"moment","version":"2.29.4"}],"runtime":"node16","status":"pending","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 17 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"},{"name":"moment","version":"2.29.4"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 18 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"},{"name":"moment","version":"2.29.4"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"},{"name":"moment","version":"2.29.4"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"auth0","version":"2.42.0"},{"name":"moment","version":"2.29.4"}],"runtime":"node16","status":"building","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","code":"exports.onContinuePostLogin = async (event, api) => {};","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-10-10T14:21:12.865746873Z","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {};","dependencies":[{"name":"auth0","version":"2.41.0"}],"id":"28886ff0-acdd-4a6a-9aa0-e36c04e0fbbb","deployed":true,"number":1,"built_at":"2022-10-10T14:21:12.865746873Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:04.340999221Z"}],"status":"built","created_at":"2022-10-10T14:21:12.749282173Z","updated_at":"2022-10-10T14:21:12.866497281Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb/deploy + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":false,"number":2,"secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.310147060Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}],"action":{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.758888522Z","all_changes_deployed":false}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 25 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 26 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:14.765430642Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"runtime":"node16","status":"built","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 224 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(event)\n};\"\n","dependencies":[],"secrets":[]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:25.262743135Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[],"runtime":"node16","status":"pending","secrets":[],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 28 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:25.262743135Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 29 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"a1f490bd-870b-49fc-b8b3-b9854eac7bcb","name":"Test Action TestAccAction","supported_triggers":[{"id":"post-login","version":"v3"}],"created_at":"2022-10-10T14:21:02.421013552Z","updated_at":"2022-10-10T14:21:25.262743135Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"4e9fd503-6220-4854-8b11-16d424707f4d","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","runtime":"node16","status":"BUILT","number":2,"build_time":"2022-10-10T14:21:23.444396286Z","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(event)\n};\"\n","dependencies":[{"name":"moment","version":"2.29.4"},{"name":"auth0","version":"2.42.0"}],"id":"4e9fd503-6220-4854-8b11-16d424707f4d","deployed":true,"number":2,"built_at":"2022-10-10T14:21:23.444396286Z","secrets":[{"name":"foo","updated_at":"2022-10-10T14:21:14.765430642Z"}],"status":"built","created_at":"2022-10-10T14:21:23.310147060Z","updated_at":"2022-10-10T14:21:23.446398115Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v3"}]},"all_changes_deployed":false}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/a1f490bd-870b-49fc-b8b3-b9854eac7bcb + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms diff --git a/test/data/recordings/TestAccBranding.yaml b/test/data/recordings/TestAccBranding.yaml index 571d0e0fd..79ba6b8d7 100644 --- a/test/data/recordings/TestAccBranding.yaml +++ b/test/data/recordings/TestAccBranding.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: PATCH response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -258,20 +258,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 158 + content_length: 213 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","logo_url":"https://mycompany.org/v1/logo.png"} + {"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","logo_url":"https://mycompany.org/v2/logo.png","font":{"url":"https://mycompany.org/font/myfont.ttf"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: PATCH response: @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 @@ -290,6 +290,42 @@ interactions: code: 200 duration: 1ms - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 165 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + "\u003c!DOCTYPE html\u003e\u003chtml\u003e\u003chead\u003e{%- auth0:head -%}\u003c/head\u003e\u003cbody\u003e{%- auth0:widget -%}\u003c/body\u003e\u003c/html\u003e" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/templates/universal-login + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -307,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -318,14 +354,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 9 + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -354,14 +390,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v2/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 10 + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -379,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -390,14 +426,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 11 + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -415,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -426,14 +462,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v2/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 12 + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -451,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -462,14 +498,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#0059d6","page_background":"#000000"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 13 + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -487,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -498,32 +534,32 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v2/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 14 + - id: 15 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 213 + content_length: 185 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"colors":{"primary":"#ffa629","page_background":"#ffffff"},"favicon_url":"https://mycompany.org/favicon.ico","logo_url":"https://mycompany.org/v2/logo.png","font":{"url":"https://mycompany.org/font/myfont.ttf"}} + {"colors":{"primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","logo_url":"https://mycompany.org/v3/logo.png","font":{"url":"https://mycompany.org/font/myfont.ttf"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: PATCH response: @@ -534,14 +570,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#ffa629","page_background":"#ffffff"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v3/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 15 + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -559,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -570,14 +606,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#ffa629","page_background":"#ffffff"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v3/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 16 + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -595,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -606,14 +642,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v2/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#ffa629","page_background":"#ffffff"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v3/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 17 + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -631,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding method: GET response: @@ -642,14 +678,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"colors":{"primary":"#ffa629","page_background":"#ffffff"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v2/logo.png"}' + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v3/logo.png"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 18 + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -667,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -678,14 +714,266 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v2/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#ffa629","page_background":"#ffffff"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v3/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 19 + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v3/logo.png"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v3/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 99 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"favicon_url":"https://mycompany.org/favicon.ico","logo_url":"https://mycompany.org/v1/logo.png"} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 25 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"colors":{"page_background":"#000000","primary":"#0059d6"},"favicon_url":"https://mycompany.org/favicon.ico","font":{"url":"https://mycompany.org/font/myfont.ttf"},"logo_url":"https://mycompany.org/v1/logo.png"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 26 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -703,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings method: GET response: @@ -714,7 +1002,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v2/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#ffa629","page_background":"#ffffff"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/v1/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"page_background":"#000000","primary":"#0059d6"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' headers: Content-Type: - application/json; charset=utf-8 diff --git a/test/data/recordings/TestAccBrandingTheme.yaml b/test/data/recordings/TestAccBrandingTheme.yaml index 9f5bdca00..dcb3ed78c 100644 --- a/test/data/recordings/TestAccBrandingTheme.yaml +++ b/test/data/recordings/TestAccBrandingTheme.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"borders":{"button_border_radius":1,"button_border_weight":1,"buttons_style":"pill","input_border_radius":3,"input_border_weight":1,"inputs_style":"pill","show_widget_shadow":false,"widget_border_weight":1,"widget_corner_radius":3},"colors":{"body_text":"#FF00CC","error":"#FF00CC","header":"#FF00CC","icons":"#FF00CC","input_background":"#FF00CC","input_border":"#FF00CC","input_filled_text":"#FF00CC","input_labels_placeholders":"#FF00CC","links_focused_components":"#FF00CC","primary_button":"#FF00CC","primary_button_label":"#FF00CC","secondary_button_border":"#FF00CC","secondary_button_label":"#FF00CC","success":"#FF00CC","widget_background":"#FF00CC","widget_border":"#FF00CC"},"fonts":{"body_text":{"bold":false,"size":100},"buttons_text":{"bold":false,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":false,"size":100},"links":{"bold":false,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":false,"size":100},"title":{"bold":false,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1294 + content_length: 1380 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"}} + {"displayName":"My branding","borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"base_focus_color":"#BBBBBB","base_hover_color":"#CCCCCC","body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"displayName":"My branding","borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"base_focus_color":"#BBBBBB","base_hover_color":"#CCCCCC","body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"displayName":"My branding","borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"base_focus_color":"#BBBBBB","base_hover_color":"#CCCCCC","body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV"}' + body: '{"displayName":"My branding","borders":{"button_border_radius":2,"button_border_weight":2,"buttons_style":"pill","input_border_radius":2,"input_border_weight":2,"inputs_style":"pill","show_widget_shadow":true,"widget_border_weight":2,"widget_corner_radius":2},"colors":{"base_focus_color":"#BBBBBB","base_hover_color":"#CCCCCC","body_text":"#00FF00","error":"#00FF00","header":"#00FF00","icons":"#00FF00","input_background":"#00FF00","input_border":"#00FF00","input_filled_text":"#00FF00","input_labels_placeholders":"#00FF00","links_focused_components":"#00FF00","primary_button":"#00FF00","primary_button_label":"#00FF00","secondary_button_border":"#00FF00","secondary_button_label":"#00FF00","success":"#00FF00","widget_background":"#00FF00","widget_border":"#00FF00"},"fonts":{"body_text":{"bold":true,"size":100},"buttons_text":{"bold":true,"size":100},"font_url":"https://google.com/font.woff","input_labels":{"bold":true,"size":100},"links":{"bold":true,"size":100},"links_style":"normal","reference_text_size":12,"subtitle":{"bold":true,"size":100},"title":{"bold":true,"size":100}},"page_background":{"background_color":"#000000","background_image_url":"https://google.com/background.png","page_layout":"center"},"widget":{"header_text_alignment":"center","logo_height":55,"logo_position":"center","logo_url":"https://google.com/logo.png","social_buttons_layout":"top"},"themeId":"qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3"}' headers: Content-Type: - application/json; charset=utf-8 @@ -270,8 +270,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/c0B0m9iQPcvkvo43MVzVx1ahRnBRV1IV + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/branding/themes/qeoI4Y8ZYPqlOG9HbpSc0mFoBl9RD9V3 method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccClient.yaml b/test/data/recordings/TestAccClient.yaml index 118545619..890b62d94 100644 --- a/test/data/recordings/TestAccClient.yaml +++ b/test/data/recordings/TestAccClient.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 2076 + content_length: 43 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"} + {"name":"Acceptance Test - TestAccClient"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 1988 + content_length: 996 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"http://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signResponse":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","organization_usage":"deny","organization_require_behavior":"no_prompt"} + {"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","app_type":"non_interactive","logo_uri":"https://example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"test","form_template":"test","token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"initiate_login_uri":"https://example.com/login","organization_usage":"deny","organization_require_behavior":"no_prompt"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"http://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signResponse":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"test","form_template":"test","token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"http://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signResponse":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"test","form_template":"test","token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"http://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signResponse":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"test","form_template":"test","token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' headers: Content-Type: - application/json; charset=utf-8 @@ -254,6 +254,150 @@ interactions: code: 200 duration: 1ms - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccClient","description":"Test Application Long Description","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"test","form_template":"test","token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 722 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - TestAccClient","description":"","app_type":"non_interactive","logo_uri":"https://another-example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":[],"allowed_origins":[],"web_origins":[],"allowed_clients":[],"allowed_logout_urls":[],"sso":true,"sso_disabled":true,"cross_origin_auth":true,"grant_types":[],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"","form_template":"","token_endpoint_auth_method":"client_secret_post","client_metadata":{},"initiate_login_uri":"https://example.com/login-uri","organization_usage":"deny","organization_require_behavior":"no_prompt"} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccClient","description":"","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://another-example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":[],"allowed_origins":[],"web_origins":[],"allowed_clients":[],"allowed_logout_urls":[],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":true,"sso_disabled":true,"cross_origin_auth":true,"grant_types":[],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"","form_template":"","token_endpoint_auth_method":"client_secret_post","client_metadata":{},"initiate_login_uri":"https://example.com/login-uri","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccClient","description":"","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://another-example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":[],"allowed_origins":[],"web_origins":[],"allowed_clients":[],"allowed_logout_urls":[],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":true,"sso_disabled":true,"cross_origin_auth":true,"grant_types":[],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"","form_template":"","token_endpoint_auth_method":"client_secret_post","client_metadata":{},"initiate_login_uri":"https://example.com/login-uri","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccClient","description":"","client_id":"DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s","client_secret":"[REDACTED]","app_type":"non_interactive","logo_uri":"https://another-example.com/logoUri","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":[],"allowed_origins":[],"web_origins":[],"allowed_clients":[],"allowed_logout_urls":[],"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":true,"sso_disabled":true,"cross_origin_auth":true,"grant_types":[],"cross_origin_loc":"https://example.com/cross-origin-loc","custom_login_page_on":true,"custom_login_page":"","form_template":"","token_endpoint_auth_method":"client_secret_post","client_metadata":{},"initiate_login_uri":"https://example.com/login-uri","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -270,8 +414,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/mFzlS9dNXcqavyQl6nZsgFZdBPxIHUdz + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DoaU3b5c9h7jmsAqx0S9KrGsK151JY1s method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccClientGrant.yaml b/test/data/recordings/TestAccClientGrant.yaml index 470a8a16b..88ad96422 100644 --- a/test/data/recordings/TestAccClientGrant.yaml +++ b/test/data/recordings/TestAccClientGrant.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]} + {"name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 458 uncompressed: false - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -38,42 +38,6 @@ interactions: code: 201 duration: 1ms - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -102,14 +66,14 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 duration: 1ms - - id: 3 + - id: 2 request: proto: HTTP/1.1 proto_major: 1 @@ -127,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -138,14 +102,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 4 + - id: 3 request: proto: HTTP/1.1 proto_major: 1 @@ -163,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -174,14 +138,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 5 + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -193,13 +157,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]} + {"client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants method: POST response: @@ -208,16 +172,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 176 uncompressed: false - body: '{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}' + body: '{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 duration: 1ms - - id: 6 + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -235,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -246,14 +210,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 7 + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -271,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -282,14 +246,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 8 + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -307,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -318,14 +282,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 9 + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -354,14 +318,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 10 + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -379,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -390,14 +354,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 11 + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -415,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -426,14 +390,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 12 + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -451,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -462,14 +426,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 13 + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -487,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_4fMoWIcbHVGN26h5 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_Nc85pdnqsFno5ZIu method: PATCH response: proto: HTTP/2.0 @@ -498,14 +462,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]}' + body: '{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 14 + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -523,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -534,14 +498,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 15 + - id: 14 request: proto: HTTP/1.1 proto_major: 1 @@ -559,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -570,14 +534,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 16 + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -595,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -606,14 +570,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 17 + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -631,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -642,14 +606,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 18 + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -667,8 +631,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -678,14 +642,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 19 + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -703,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -714,14 +678,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 20 + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -739,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -750,14 +714,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":["create:foo"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 21 + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -775,8 +739,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_4fMoWIcbHVGN26h5 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_Nc85pdnqsFno5ZIu method: PATCH response: proto: HTTP/2.0 @@ -786,14 +750,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}' + body: '{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 22 + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -811,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -822,14 +786,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 23 + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -847,8 +811,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -858,14 +822,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 24 + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -883,8 +847,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -894,14 +858,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 25 + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -919,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -930,14 +894,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 26 + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -955,8 +919,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -966,14 +930,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 27 + - id: 26 request: proto: HTTP/1.1 proto_major: 1 @@ -991,8 +955,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -1002,50 +966,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 28 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - id: 29 + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -1063,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -1074,14 +1002,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_4fMoWIcbHVGN26h5","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_Nc85pdnqsFno5ZIu","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 30 + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -1098,8 +1026,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_4fMoWIcbHVGN26h5 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_Nc85pdnqsFno5ZIu method: DELETE response: proto: HTTP/2.0 @@ -1116,7 +1044,7 @@ interactions: status: 204 No Content code: 204 duration: 1ms - - id: 31 + - id: 29 request: proto: HTTP/1.1 proto_major: 1 @@ -1134,7 +1062,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -1145,14 +1073,14 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - Client Grant Alt - TestAccClientGrant","client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant Alt - TestAccClientGrant","client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 duration: 1ms - - id: 32 + - id: 30 request: proto: HTTP/1.1 proto_major: 1 @@ -1170,8 +1098,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/M0rToku9ckjob2KCkYoopd7udxzgyoOG + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc method: GET response: proto: HTTP/2.0 @@ -1181,14 +1109,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant Alt - TestAccClientGrant","client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant Alt - TestAccClientGrant","client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 33 + - id: 31 request: proto: HTTP/1.1 proto_major: 1 @@ -1200,13 +1128,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]} + {"client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants method: POST response: @@ -1215,16 +1143,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 176 uncompressed: false - body: '{"id":"cgr_L5dR0g3oPr2xLoJY","client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}' + body: '{"id":"cgr_utHixW4XJDFfA8hK","client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 duration: 1ms - - id: 34 + - id: 32 request: proto: HTTP/1.1 proto_major: 1 @@ -1242,7 +1170,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -1253,14 +1181,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_L5dR0g3oPr2xLoJY","client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_utHixW4XJDFfA8hK","client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 35 + - id: 33 request: proto: HTTP/1.1 proto_major: 1 @@ -1278,8 +1206,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/M0rToku9ckjob2KCkYoopd7udxzgyoOG + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: GET response: proto: HTTP/2.0 @@ -1289,14 +1217,50 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant Alt - TestAccClientGrant","client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"id":"633ee7a230fccf79fdc7d630","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 36 + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 120 + uncompressed: false + body: '{"client_secret":"[REDACTED]","signing_keys":[{"cert":"[REDACTED]"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 429 Too Many Requests + code: 429 + duration: 1ms + - id: 35 request: proto: HTTP/1.1 proto_major: 1 @@ -1314,8 +1278,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: GET response: proto: HTTP/2.0 @@ -1325,14 +1289,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd1218b95459f65e484d8","name":"Acceptance Test - Client Grant - TestAccClientGrant","identifier":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}]}' + body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 37 + - id: 36 request: proto: HTTP/1.1 proto_major: 1 @@ -1350,8 +1314,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc method: GET response: proto: HTTP/2.0 @@ -1361,14 +1325,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Client Grant - TestAccClientGrant","client_id":"3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Client Grant Alt - TestAccClientGrant","client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 38 + - id: 37 request: proto: HTTP/1.1 proto_major: 1 @@ -1386,7 +1350,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants?include_totals=true&page=0&per_page=50 method: GET response: @@ -1397,14 +1361,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":4,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_L5dR0g3oPr2xLoJY","client_id":"M0rToku9ckjob2KCkYoopd7udxzgyoOG","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]}]}' + body: '{"total":5,"start":0,"limit":50,"client_grants":[{"id":"cgr_F4BqCN0e5Grfa2Nj","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ZK11IyPr7cZLYwqC","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_r65kKhuS0nFMavVE","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_ue6qTIisPLwqJezK","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF","audience":"https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/","scope":["read:client_grants","create:client_grants","delete:client_grants","update:client_grants","read:users","update:users","delete:users","create:users","read:users_app_metadata","update:users_app_metadata","delete:users_app_metadata","create:users_app_metadata","read:user_custom_blocks","create:user_custom_blocks","delete:user_custom_blocks","create:user_tickets","read:clients","update:clients","delete:clients","create:clients","read:client_keys","update:client_keys","delete:client_keys","create:client_keys","read:connections","update:connections","delete:connections","create:connections","read:resource_servers","update:resource_servers","delete:resource_servers","create:resource_servers","read:device_credentials","update:device_credentials","delete:device_credentials","create:device_credentials","read:rules","update:rules","delete:rules","create:rules","read:rules_configs","update:rules_configs","delete:rules_configs","read:hooks","update:hooks","delete:hooks","create:hooks","read:actions","update:actions","delete:actions","create:actions","read:email_provider","update:email_provider","delete:email_provider","create:email_provider","blacklist:tokens","read:stats","read:insights","read:tenant_settings","update:tenant_settings","read:logs","read:logs_users","read:shields","create:shields","update:shields","delete:shields","read:anomaly_blocks","delete:anomaly_blocks","update:triggers","read:triggers","read:grants","delete:grants","read:guardian_factors","update:guardian_factors","read:guardian_enrollments","delete:guardian_enrollments","create:guardian_enrollment_tickets","read:user_idp_tokens","create:passwords_checking_job","delete:passwords_checking_job","read:custom_domains","delete:custom_domains","create:custom_domains","update:custom_domains","read:email_templates","create:email_templates","update:email_templates","read:mfa_policies","update:mfa_policies","read:roles","create:roles","delete:roles","update:roles","read:prompts","update:prompts","read:branding","update:branding","delete:branding","read:log_streams","create:log_streams","delete:log_streams","update:log_streams","create:signing_keys","read:signing_keys","update:signing_keys","read:limits","update:limits","create:role_members","read:role_members","delete:role_members","read:entitlements","read:attack_protection","update:attack_protection","read:organizations_summary","read:organizations","update:organizations","create:organizations","delete:organizations","create:organization_members","read:organization_members","delete:organization_members","create:organization_connections","read:organization_connections","update:organization_connections","delete:organization_connections","create:organization_member_roles","read:organization_member_roles","delete:organization_member_roles","create:organization_invitations","read:organization_invitations","delete:organization_invitations"]},{"id":"cgr_utHixW4XJDFfA8hK","client_id":"DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc","audience":"https://uat.tf.terraform-provider-auth0.com/client-grant/TestAccClientGrant","scope":[]}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 39 + - id: 38 request: proto: HTTP/1.1 proto_major: 1 @@ -1421,8 +1385,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_L5dR0g3oPr2xLoJY + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/client-grants/cgr_utHixW4XJDFfA8hK method: DELETE response: proto: HTTP/2.0 @@ -1439,7 +1403,7 @@ interactions: status: 204 No Content code: 204 duration: 1ms - - id: 40 + - id: 39 request: proto: HTTP/1.1 proto_major: 1 @@ -1456,8 +1420,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/3imd3gqDzPmYPJfZwo1G59eS7HQZ5HCT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eQnIfZSx2ZG0JwNUjGgcuueJYtDYXLmf method: DELETE response: proto: HTTP/2.0 @@ -1474,7 +1438,7 @@ interactions: status: 204 No Content code: 204 duration: 1ms - - id: 41 + - id: 40 request: proto: HTTP/1.1 proto_major: 1 @@ -1491,8 +1455,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd1218b95459f65e484d8 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/633ee7a230fccf79fdc7d630 method: DELETE response: proto: HTTP/2.0 @@ -1509,7 +1473,7 @@ interactions: status: 204 No Content code: 204 duration: 1ms - - id: 42 + - id: 41 request: proto: HTTP/1.1 proto_major: 1 @@ -1526,8 +1490,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/M0rToku9ckjob2KCkYoopd7udxzgyoOG + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/DF9kiHSjEqZzW5SHmxINSCrWvRnRR2tc method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccClientJWTConfiguration.yaml b/test/data/recordings/TestAccClientJWTConfiguration.yaml new file mode 100644 index 000000000..2e36caeac --- /dev/null +++ b/test/data/recordings/TestAccClientJWTConfiguration.yaml @@ -0,0 +1,576 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 101 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","app_type":"non_interactive"} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"Ect5res5gdD951iS3Gg4FJPOUgsaSbgT","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 1 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Ect5res5gdD951iS3Gg4FJPOUgsaSbgT + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"Ect5res5gdD951iS3Gg4FJPOUgsaSbgT","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Ect5res5gdD951iS3Gg4FJPOUgsaSbgT + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"Ect5res5gdD951iS3Gg4FJPOUgsaSbgT","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Ect5res5gdD951iS3Gg4FJPOUgsaSbgT + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"Ect5res5gdD951iS3Gg4FJPOUgsaSbgT","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Ect5res5gdD951iS3Gg4FJPOUgsaSbgT + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 208 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","app_type":"non_interactive","jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 6 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5eEZnMhA4OpSuhyYHqhpCYJJUhZmOaZf + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 196 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","app_type":"non_interactive","jwt_configuration":{"secret_encoded":false,"scopes":{},"alg":"RS256","lifetime_in_seconds":1}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"bqdSAQz9riQXClJf1OrvgFtZDCprjiCR","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"scopes":{},"alg":"RS256","lifetime_in_seconds":1},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 11 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/bqdSAQz9riQXClJf1OrvgFtZDCprjiCR + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"bqdSAQz9riQXClJf1OrvgFtZDCprjiCR","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"scopes":{},"alg":"RS256","lifetime_in_seconds":1},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/bqdSAQz9riQXClJf1OrvgFtZDCprjiCR + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"bqdSAQz9riQXClJf1OrvgFtZDCprjiCR","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"scopes":{},"alg":"RS256","lifetime_in_seconds":1},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/bqdSAQz9riQXClJf1OrvgFtZDCprjiCR + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"bqdSAQz9riQXClJf1OrvgFtZDCprjiCR","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"scopes":{},"alg":"RS256","lifetime_in_seconds":1},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/bqdSAQz9riQXClJf1OrvgFtZDCprjiCR + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - JWT Config - TestAccClientJWTConfiguration","client_id":"bqdSAQz9riQXClJf1OrvgFtZDCprjiCR","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"scopes":{},"alg":"RS256","lifetime_in_seconds":1},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/bqdSAQz9riQXClJf1OrvgFtZDCprjiCR + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms diff --git a/test/data/recordings/TestAccClientJwtScopes.yaml b/test/data/recordings/TestAccClientJwtScopes.yaml deleted file mode 100644 index d88912c9f..000000000 --- a/test/data/recordings/TestAccClientJwtScopes.yaml +++ /dev/null @@ -1,290 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 149 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","jwt_configuration":{"secret_encoded":true,"alg":"RS256","lifetime_in_seconds":300}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 412 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 5 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 6 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - JWT Scopes - TestAccClientJwtScopes","client_id":"lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 7 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lzT1hSaIvXWgyDucoTTqAakYkoHtCU3a - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms diff --git a/test/data/recordings/TestAccClientMobile.yaml b/test/data/recordings/TestAccClientMobile.yaml index 26e16510c..1f4854b14 100644 --- a/test/data/recordings/TestAccClientMobile.yaml +++ b/test/data/recordings/TestAccClientMobile.yaml @@ -13,13 +13,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"native","mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}}} + {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"native","mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"team_id":"9JA89QQLNQ","app_bundle_identifier":"com.my.bundle.id"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"team_id":"9JA89QQLNQ","app_bundle_identifier":"com.my.bundle.id"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"team_id":"9JA89QQLNQ","app_bundle_identifier":"com.my.bundle.id"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"team_id":"9JA89QQLNQ","app_bundle_identifier":"com.my.bundle.id"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF"]},"ios":{"team_id":"9JA89QQLNQ","app_bundle_identifier":"com.my.bundle.id"}},"native_social_login":{"apple":{"enabled":true},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 601 + content_length: 346 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"lifetime_in_seconds":36000},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}}} + {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"native","mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -294,21 +294,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 611 + content_length: 244 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"lifetime_in_seconds":36000},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}}} + {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"native","mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]}},"native_social_login":{"facebook":{"enabled":false}}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: PATCH response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example"},"ios":{"app_bundle_identifier":"com.my.auth0.bundle","team_id":"1111111111"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -398,6 +398,150 @@ interactions: code: 200 duration: 1ms - id: 11 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"native","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 166 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - Mobile - TestAccClientMobile","app_type":"non_interactive","native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Mobile - TestAccClientMobile","client_id":"C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"mobile":{"android":{"app_package_name":"com.example","sha256_cert_fingerprints":["DE:AD:BE:EF","CA:DE:FF:AA"]},"ios":{"team_id":"1111111111","app_bundle_identifier":"com.my.auth0.bundle"}},"native_social_login":{"apple":{"enabled":false},"facebook":{"enabled":false}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -414,8 +558,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/eSGAUdxQ2qz9ikZKcQ1IeThhIqYTxboM + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/C9GmFaOkgZQsWm4Gjs3WWbwoAeUs8m1y method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccClientRefreshToken.yaml b/test/data/recordings/TestAccClientRefreshToken.yaml new file mode 100644 index 000000000..a0ade74db --- /dev/null +++ b/test/data/recordings/TestAccClientRefreshToken.yaml @@ -0,0 +1,362 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 170 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","app_type":"spa","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring"}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 1 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 302 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","app_type":"spa","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":60,"token_lifetime":256000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":128000}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":60,"token_lifetime":256000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":128000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":60,"token_lifetime":256000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":128000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":60,"token_lifetime":256000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":128000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":60,"token_lifetime":256000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":128000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshToken","client_id":"F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":60,"token_lifetime":256000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":128000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/F2SRLw2CdyNymC1tx1Wkbcw0pgvzwDOi + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms diff --git a/test/data/recordings/TestAccClientRefreshTokenApplied.yaml b/test/data/recordings/TestAccClientRefreshTokenApplied.yaml deleted file mode 100644 index beddbc065..000000000 --- a/test/data/recordings/TestAccClientRefreshTokenApplied.yaml +++ /dev/null @@ -1,146 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 177 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - Refresh Token - TestAccClientRefreshTokenApplied","app_type":"spa","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring"}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshTokenApplied","client_id":"ZPXBowgFeQmMONr4Zipj5Xy1UQLdYziy","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ZPXBowgFeQmMONr4Zipj5Xy1UQLdYziy - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshTokenApplied","client_id":"ZPXBowgFeQmMONr4Zipj5Xy1UQLdYziy","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ZPXBowgFeQmMONr4Zipj5Xy1UQLdYziy - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Refresh Token - TestAccClientRefreshTokenApplied","client_id":"ZPXBowgFeQmMONr4Zipj5Xy1UQLdYziy","client_secret":"[REDACTED]","app_type":"spa","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ZPXBowgFeQmMONr4Zipj5Xy1UQLdYziy - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms diff --git a/test/data/recordings/TestAccClientRotateSecret.yaml b/test/data/recordings/TestAccClientRotateSecret.yaml index 8cd239a4b..094d21642 100644 --- a/test/data/recordings/TestAccClientRotateSecret.yaml +++ b/test/data/recordings/TestAccClientRotateSecret.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 383 + content_length: 71 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"lifetime_in_seconds":36000},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true} + {"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT/rotate-secret + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE/rotate-secret method: POST response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"4pquelo92OG0mDXu35XMiOzf2OwSE0vT","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"Acceptance Test - Rotate Secret - TestAccClientRotateSecret","client_id":"LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -306,8 +306,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4pquelo92OG0mDXu35XMiOzf2OwSE0vT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/LIweeonLFjQV4Arh26DY1Yl8ZcvLAQKE method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccClientSSOIntegration.yaml b/test/data/recordings/TestAccClientSSOIntegration.yaml deleted file mode 100644 index 4605201d2..000000000 --- a/test/data/recordings/TestAccClientSSOIntegration.yaml +++ /dev/null @@ -1,290 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 693 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","app_type":"sso_integration","addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient","signatureAlgorithm":"rsa-sha1","typedAttributes":true}}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient","signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient","signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient","signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient","signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1046 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"lifetime_in_seconds":36000},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient-different","signResponse":false,"signatureAlgorithm":"rsa-sha1","typedAttributes":true}}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient-different","signResponse":false,"signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 5 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient-different","signResponse":false,"signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 6 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegration","client_id":"sFMxBFsifzrckGGqSAdrn39pQBXgtsEv","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"samlp":{"audience":"http://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":true,"destination":"http://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":true,"mapUnknownClaimsAsIs":false,"mappings":{"email":"username"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","passthroughClaimsWithNoMapping":false,"recipient":"http://tableau-server-test.domain.eu.com/recipient-different","signResponse":false,"signatureAlgorithm":"rsa-sha1","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 7 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/sFMxBFsifzrckGGqSAdrn39pQBXgtsEv - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms diff --git a/test/data/recordings/TestAccClientSSOIntegrationWithSAML.yaml b/test/data/recordings/TestAccClientSSOIntegrationWithSAML.yaml new file mode 100644 index 000000000..5e6ff03d0 --- /dev/null +++ b/test/data/recordings/TestAccClientSSOIntegrationWithSAML.yaml @@ -0,0 +1,362 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1244 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","app_type":"sso_integration","addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"https://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"https://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 1 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"https://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"https://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{"callback":"https://example.com/callback","slo_enabled":true},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 960 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","app_type":"sso_integration","addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":[],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":[],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":[],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":[],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":[],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - SSO Integration - TestAccClientSSOIntegrationWithSAML","client_id":"Co1BOCHsF40hys7jQKCbpaEsYjMYKiit","client_secret":"[REDACTED]","app_type":"sso_integration","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://tableau-server-test.domain.eu.com/audience-different","createUpnClaim":false,"destination":"https://tableau-server-test.domain.eu.com/destination","digestAlgorithm":"sha256","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:attrname-format:basic","nameIdentifierProbes":[],"passthroughClaimsWithNoMapping":false,"recipient":"https://tableau-server-test.domain.eu.com/recipient-different","signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/Co1BOCHsF40hys7jQKCbpaEsYjMYKiit + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms diff --git a/test/data/recordings/TestAccClientZeroValueCheck.yaml b/test/data/recordings/TestAccClientZeroValueCheck.yaml deleted file mode 100644 index 027d00398..000000000 --- a/test/data/recordings/TestAccClientZeroValueCheck.yaml +++ /dev/null @@ -1,434 +0,0 @@ ---- -version: 2 -interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 99 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","is_first_party":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 387 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"lifetime_in_seconds":36000},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 5 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 6 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 7 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 388 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"lifetime_in_seconds":36000},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 9 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 10 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - Zero Value Check - TestAccClientZeroValueCheck","client_id":"kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt","client_secret":"[REDACTED]","is_first_party":false,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 11 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kkq0HhHFmHjhgbjRHCC30lbGzU8rOFkt - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms diff --git a/test/data/recordings/TestAccConnection.yaml b/test/data/recordings/TestAccConnection.yaml index 223b75cca..27a4ca5f5 100644 --- a/test/data/recordings/TestAccConnection.yaml +++ b/test/data/recordings/TestAccConnection.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 782 + content_length: 801 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-Connection-TestAccConnection","strategy":"auth0","is_domain_connection":true,"metadata":{"key1":"foo","key2":"bar"},"options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"passwordPolicy":"fair","password_history":{"enable":true,"size":5},"password_no_personal_info":{"enable":true},"password_dictionary":{"dictionary":["password","admin","1234"],"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false,"brute_force_protection":true,"import_mode":false,"disable_signup":false,"requires_username":true,"customScripts":{"get_user":"myFunction"},"configuration":{"foo":"bar"},"non_persistent_attrs":null,"upstream_params":{"screen_name":{"alias":"login_hint"}}}} + {"name":"Acceptance-Test-Connection-TestAccConnection","strategy":"auth0","is_domain_connection":true,"metadata":{"key1":"foo","key2":"bar"},"options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"passwordPolicy":"fair","password_history":{"enable":true,"size":5},"password_no_personal_info":{"enable":true},"password_dictionary":{"dictionary":["1234","admin","password"],"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false,"brute_force_protection":true,"import_mode":false,"disable_signup":false,"requires_username":true,"customScripts":{"get_user":"myFunction"},"configuration":{"foo":"bar"},"non_persistent_attrs":["gender","hair_color"],"upstream_params":{"screen_name":{"alias":"login_hint"}}}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"fair","validation":{"username":{"max":40,"min":10}},"password_history":{"enable":true,"size":5},"password_no_personal_info":{"enable":true},"password_dictionary":{"dictionary":["password","admin","1234"],"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false,"brute_force_protection":true,"import_mode":false,"disable_signup":false,"requires_username":true,"customScripts":{"get_user":"myFunction"},"non_persistent_attrs":null,"upstream_params":{"screen_name":{"alias":"login_hint"}},"configuration":{"foo":"2.0$f260feceb9db3767913d46e125b20901$976a45238feef8974517cce4595dd6a6$4e323f5a7753b667ebe7d06c7f4d2161acba7dd4c8c623ef53c10bb4c9e5be10"},"strategy_version":2},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"fair","validation":{"username":{"max":40,"min":10}},"password_history":{"enable":true,"size":5},"password_no_personal_info":{"enable":true},"password_dictionary":{"dictionary":["1234","admin","password"],"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false,"brute_force_protection":true,"import_mode":false,"disable_signup":false,"requires_username":true,"customScripts":{"get_user":"myFunction"},"non_persistent_attrs":["gender","hair_color"],"upstream_params":{"screen_name":{"alias":"login_hint"}},"configuration":{"foo":"2.0$7031f5be1ad9aa9d82ba7f66882a6f75$e184a8197f4ba295e8ae9084f37cecd3$7efb4d998fde45872f1d10b6226df839fdd529199028c13de20b7d1dc7426fdf"},"strategy_version":2},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"import_mode":false,"configuration":{"foo":"2.0$f260feceb9db3767913d46e125b20901$976a45238feef8974517cce4595dd6a6$4e323f5a7753b667ebe7d06c7f4d2161acba7dd4c8c623ef53c10bb4c9e5be10"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","upstream_params":{"screen_name":{"alias":"login_hint"}},"password_history":{"size":5,"enable":true},"strategy_version":2,"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["password","admin","1234"]},"non_persistent_attrs":null,"brute_force_protection":true,"password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"import_mode":false,"configuration":{"foo":"2.0$7031f5be1ad9aa9d82ba7f66882a6f75$e184a8197f4ba295e8ae9084f37cecd3$7efb4d998fde45872f1d10b6226df839fdd529199028c13de20b7d1dc7426fdf"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","upstream_params":{"screen_name":{"alias":"login_hint"}},"password_history":{"size":5,"enable":true},"strategy_version":2,"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["1234","admin","password"]},"non_persistent_attrs":["gender","hair_color"],"brute_force_protection":true,"password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"import_mode":false,"configuration":{"foo":"2.0$f260feceb9db3767913d46e125b20901$976a45238feef8974517cce4595dd6a6$4e323f5a7753b667ebe7d06c7f4d2161acba7dd4c8c623ef53c10bb4c9e5be10"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","upstream_params":{"screen_name":{"alias":"login_hint"}},"password_history":{"size":5,"enable":true},"strategy_version":2,"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["password","admin","1234"]},"non_persistent_attrs":null,"brute_force_protection":true,"password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"import_mode":false,"configuration":{"foo":"2.0$7031f5be1ad9aa9d82ba7f66882a6f75$e184a8197f4ba295e8ae9084f37cecd3$7efb4d998fde45872f1d10b6226df839fdd529199028c13de20b7d1dc7426fdf"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","upstream_params":{"screen_name":{"alias":"login_hint"}},"password_history":{"size":5,"enable":true},"strategy_version":2,"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["1234","admin","password"]},"non_persistent_attrs":["gender","hair_color"],"brute_force_protection":true,"password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"import_mode":false,"configuration":{"foo":"2.0$f260feceb9db3767913d46e125b20901$976a45238feef8974517cce4595dd6a6$4e323f5a7753b667ebe7d06c7f4d2161acba7dd4c8c623ef53c10bb4c9e5be10"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","upstream_params":{"screen_name":{"alias":"login_hint"}},"password_history":{"size":5,"enable":true},"strategy_version":2,"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["password","admin","1234"]},"non_persistent_attrs":null,"brute_force_protection":true,"password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":true},"validation":{"username":{"max":40,"min":10}},"import_mode":false,"configuration":{"foo":"2.0$7031f5be1ad9aa9d82ba7f66882a6f75$e184a8197f4ba295e8ae9084f37cecd3$7efb4d998fde45872f1d10b6226df839fdd529199028c13de20b7d1dc7426fdf"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","upstream_params":{"screen_name":{"alias":"login_hint"}},"password_history":{"size":5,"enable":true},"strategy_version":2,"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["1234","admin","password"]},"non_persistent_attrs":["gender","hair_color"],"brute_force_protection":true,"password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":false},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 651 + content_length: 523 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"is_domain_connection":true,"metadata":{"key1":"foo","key2":"bar"},"options":{"mfa":{"active":true,"return_enroll_settings":false},"passwordPolicy":"fair","password_history":{"enable":true,"size":5},"password_no_personal_info":{"enable":true},"password_dictionary":{"dictionary":["password","admin","1234"],"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":true,"brute_force_protection":false,"import_mode":false,"disable_signup":false,"requires_username":true,"customScripts":{"get_user":"myFunction"},"configuration":{"foo":"bar"},"set_user_root_attributes":"on_first_login","non_persistent_attrs":null}} + {"is_domain_connection":true,"metadata":{"key1":"foo","key2":"bar"},"options":{"mfa":{"active":true,"return_enroll_settings":false},"passwordPolicy":"fair","password_history":{"enable":true,"size":5},"password_no_personal_info":{"enable":true},"enabledDatabaseCustomization":true,"brute_force_protection":false,"import_mode":false,"disable_signup":false,"requires_username":true,"customScripts":{"get_user":"myFunction"},"configuration":{"foo":"bar"},"set_user_root_attributes":"on_first_login","non_persistent_attrs":[]}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":false},"import_mode":false,"configuration":{"foo":"2.0$090ce5353b12c3c970383c79b027bba7$4dd749e5b8535d7ccd7fb9e688ba4c08$b9819f11de7be675237247eaf42155ecc7ae6d1e5e72a3238fd7c50f3ab71abd"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","password_history":{"size":5,"enable":true},"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["password","admin","1234"]},"non_persistent_attrs":null,"brute_force_protection":false,"set_user_root_attributes":"on_first_login","password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":false},"import_mode":false,"configuration":{"foo":"2.0$6635e1a90329065c01ababa0391a964e$ad362d4efc91aff458da3f64c1f8ba1b$f45a3b53c9b16a400c48317e52575e256efccb724e55e78104c307753db084d6"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","password_history":{"size":5,"enable":true},"requires_username":true,"non_persistent_attrs":[],"brute_force_protection":false,"set_user_root_attributes":"on_first_login","password_no_personal_info":{"enable":true},"enabledDatabaseCustomization":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":false},"import_mode":false,"configuration":{"foo":"2.0$090ce5353b12c3c970383c79b027bba7$4dd749e5b8535d7ccd7fb9e688ba4c08$b9819f11de7be675237247eaf42155ecc7ae6d1e5e72a3238fd7c50f3ab71abd"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","password_history":{"size":5,"enable":true},"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["password","admin","1234"]},"non_persistent_attrs":null,"brute_force_protection":false,"set_user_root_attributes":"on_first_login","password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":false},"import_mode":false,"configuration":{"foo":"2.0$6635e1a90329065c01ababa0391a964e$ad362d4efc91aff458da3f64c1f8ba1b$f45a3b53c9b16a400c48317e52575e256efccb724e55e78104c307753db084d6"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","password_history":{"size":5,"enable":true},"requires_username":true,"non_persistent_attrs":[],"brute_force_protection":false,"set_user_root_attributes":"on_first_login","password_no_personal_info":{"enable":true},"enabledDatabaseCustomization":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_OZUr6X4CxL6TxCxv","options":{"mfa":{"active":true,"return_enroll_settings":false},"import_mode":false,"configuration":{"foo":"2.0$090ce5353b12c3c970383c79b027bba7$4dd749e5b8535d7ccd7fb9e688ba4c08$b9819f11de7be675237247eaf42155ecc7ae6d1e5e72a3238fd7c50f3ab71abd"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","password_history":{"size":5,"enable":true},"requires_username":true,"password_dictionary":{"enable":true,"dictionary":["password","admin","1234"]},"non_persistent_attrs":null,"brute_force_protection":false,"set_user_root_attributes":"on_first_login","password_no_personal_info":{"enable":true},"password_complexity_options":{"min_length":6},"enabledDatabaseCustomization":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' + body: '{"id":"con_GHOrBshks5rXjcCC","options":{"mfa":{"active":true,"return_enroll_settings":false},"import_mode":false,"configuration":{"foo":"2.0$6635e1a90329065c01ababa0391a964e$ad362d4efc91aff458da3f64c1f8ba1b$f45a3b53c9b16a400c48317e52575e256efccb724e55e78104c307753db084d6"},"customScripts":{"get_user":"myFunction"},"disable_signup":false,"passwordPolicy":"fair","password_history":{"size":5,"enable":true},"requires_username":true,"non_persistent_attrs":[],"brute_force_protection":false,"set_user_root_attributes":"on_first_login","password_no_personal_info":{"enable":true},"enabledDatabaseCustomization":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnection","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnection"],"metadata":{"key1":"foo","key2":"bar"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -270,8 +270,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_OZUr6X4CxL6TxCxv + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_GHOrBshks5rXjcCC method: DELETE response: proto: HTTP/2.0 @@ -279,12 +279,12 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2022-09-20T18:14:26.428Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 + status: 202 Accepted + code: 202 duration: 1ms diff --git a/test/data/recordings/TestAccConnectionWithEnabledClients.yaml b/test/data/recordings/TestAccConnectionWithEnabledClients.yaml index 07f7d1054..eb2fddae9 100644 --- a/test/data/recordings/TestAccConnectionWithEnabledClients.yaml +++ b/test/data/recordings/TestAccConnectionWithEnabledClients.yaml @@ -1,718 +1,1006 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 163 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"4diCRNqD7SImuekoIPEkE6miJeWmiXpt","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4diCRNqD7SImuekoIPEkE6miJeWmiXpt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"4diCRNqD7SImuekoIPEkE6miJeWmiXpt","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 163 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"XTZlZXwery7T2AyLHHVbKgZNiq71T86V","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/XTZlZXwery7T2AyLHHVbKgZNiq71T86V - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"XTZlZXwery7T2AyLHHVbKgZNiq71T86V","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 163 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 5 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 163 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 7 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 281 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","strategy":"auth0","is_domain_connection":true,"enabled_clients":["TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS","4diCRNqD7SImuekoIPEkE6miJeWmiXpt","XTZlZXwery7T2AyLHHVbKgZNiq71T86V","5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w"]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"id":"con_JYl2L164eCDuk03R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["4diCRNqD7SImuekoIPEkE6miJeWmiXpt","XTZlZXwery7T2AyLHHVbKgZNiq71T86V","5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w","TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 9 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_JYl2L164eCDuk03R - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_JYl2L164eCDuk03R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["4diCRNqD7SImuekoIPEkE6miJeWmiXpt","XTZlZXwery7T2AyLHHVbKgZNiq71T86V","5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w","TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 10 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4diCRNqD7SImuekoIPEkE6miJeWmiXpt - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"4diCRNqD7SImuekoIPEkE6miJeWmiXpt","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 11 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/XTZlZXwery7T2AyLHHVbKgZNiq71T86V - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"XTZlZXwery7T2AyLHHVbKgZNiq71T86V","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 12 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 13 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 14 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_JYl2L164eCDuk03R - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_JYl2L164eCDuk03R","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["4diCRNqD7SImuekoIPEkE6miJeWmiXpt","XTZlZXwery7T2AyLHHVbKgZNiq71T86V","5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w","TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 15 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_JYl2L164eCDuk03R - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"deleted_at":"2022-08-30T08:59:29.775Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 1ms - - id: 16 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TQp6XCSKLNQy5M1O0rM2IyexdQVvuDzS - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms - - id: 17 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/5AP4Dmf8XRQL1HZNsOiGxfr4hy0bn38w - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms - - id: 18 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/XTZlZXwery7T2AyLHHVbKgZNiq71T86V - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms - - id: 19 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4diCRNqD7SImuekoIPEkE6miJeWmiXpt - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 163 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 1 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 163 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 163 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 5 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 163 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","app_type":"non_interactive"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"kduvSYzOvync9opeW5KHP10LsPFFbMiJ","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kduvSYzOvync9opeW5KHP10LsPFFbMiJ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"kduvSYzOvync9opeW5KHP10LsPFFbMiJ","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 281 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","strategy":"auth0","is_domain_connection":true,"enabled_clients":["9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","kduvSYzOvync9opeW5KHP10LsPFFbMiJ"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 523 + uncompressed: false + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","kduvSYzOvync9opeW5KHP10LsPFFbMiJ"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 9 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","kduvSYzOvync9opeW5KHP10LsPFFbMiJ"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kduvSYzOvync9opeW5KHP10LsPFFbMiJ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"kduvSYzOvync9opeW5KHP10LsPFFbMiJ","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","kduvSYzOvync9opeW5KHP10LsPFFbMiJ"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":["cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","kduvSYzOvync9opeW5KHP10LsPFFbMiJ"],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 16 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 3 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 17 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kduvSYzOvync9opeW5KHP10LsPFFbMiJ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 4 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"kduvSYzOvync9opeW5KHP10LsPFFbMiJ","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 18 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 2 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Application - Acceptance Test - 1 - TestAccConnectionWithEnabledClients","description":"Test Applications Long Description","client_id":"cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/kduvSYzOvync9opeW5KHP10LsPFFbMiJ + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/9NoYmbEtWODJ4G1zVWJxpLEEMBU0SzuG + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/TArmqNGXckI8QgBGrjGaCKZPXpDIPy0k + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/cdPcMlObMXFX1LqDMIAxP5l2GgIq4wPp + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 51 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"is_domain_connection":true,"enabled_clients":[]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 25 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 26 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_qsGQirRSlRRYeluB","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionWithEnabledClients","is_domain_connection":true,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionWithEnabledClients"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_qsGQirRSlRRYeluB + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2022-09-20T18:25:10.294Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 1ms diff --git a/test/data/recordings/TestAccDataClientById.yaml b/test/data/recordings/TestAccDataClientById.yaml index e1576f69b..8e64339db 100644 --- a/test/data/recordings/TestAccDataClientById.yaml +++ b/test/data/recordings/TestAccDataClientById.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 2084 + content_length: 80 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"} + {"name":"Acceptance Test - TestAccDataClientById","app_type":"non_interactive"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: GET response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientById","client_id":"UGKXtXtBHKHdtseHkakqT7yNDT5116IC","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -254,114 +254,6 @@ interactions: code: 200 duration: 1ms - id: 7 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 8 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 9 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientById","description":"Test Application Long Description","client_id":"JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -378,8 +270,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/JBlgLlsn8YpQf7XOOtqDw0VGs2QGjdbd + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/UGKXtXtBHKHdtseHkakqT7yNDT5116IC method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccDataClientByName.yaml b/test/data/recordings/TestAccDataClientByName.yaml index a28f5c268..d23f7a0c9 100644 --- a/test/data/recordings/TestAccDataClientByName.yaml +++ b/test/data/recordings/TestAccDataClientByName.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 2086 + content_length: 82 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"} + {"name":"Acceptance Test - TestAccDataClientByName","app_type":"non_interactive"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: false - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"My App","client_id":"oZGzW6Pcxf3rZdzSUPv8NlPA7ij7MlM1"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 method: GET response: @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"My App","client_id":"oZGzW6Pcxf3rZdzSUPv8NlPA7ij7MlM1"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"My App","client_id":"oZGzW6Pcxf3rZdzSUPv8NlPA7ij7MlM1"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: GET response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"My App","client_id":"oZGzW6Pcxf3rZdzSUPv8NlPA7ij7MlM1"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + body: '{"name":"Acceptance Test - TestAccDataClientByName","client_id":"keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","implicit","refresh_token","client_credentials"],"custom_login_page_on":true,"refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -398,150 +398,6 @@ interactions: code: 200 duration: 1ms - id: 11 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 12 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 13 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN"},{"tenant":"terraform-provider-auth0-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 14 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -558,8 +414,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/7trmMcrvdpsiNj00B2SUr0UFSQR7Z4oN + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/keZfSCwk5E7ce0UrJYAeaVjwNXOgS50T method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccEmail.yaml b/test/data/recordings/TestAccEmail.yaml index 2ddad2060..43832d443 100644 --- a/test/data/recordings/TestAccEmail.yaml +++ b/test/data/recordings/TestAccEmail.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: POST response: @@ -28,7 +28,7 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 112 uncompressed: false body: '{"name":"ses","enabled":true,"default_from_address":"accounts@example.com","credentials":{"region":"us-east-1"}}' headers: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: PATCH response: @@ -343,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true method: GET response: @@ -398,6 +398,150 @@ interactions: code: 200 duration: 1ms - id: 11 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"mailgun","enabled":true,"default_from_address":"accounts@example.com","credentials":{"domain":"example.com","region":"eu"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 149 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"mailgun","enabled":false,"default_from_address":"","credentials":{"api_key":"MAILGUNXXXXXXXXXXXXXXX","region":"eu","domain":"example.com"}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"mailgun","enabled":false,"default_from_address":"","credentials":{"domain":"example.com","region":"eu"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"mailgun","enabled":false,"default_from_address":"","credentials":{"domain":"example.com","region":"eu"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider?fields=name%2Cenabled%2Cdefault_from_address%2Ccredentials%2Csettings&include_fields=true + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"name":"mailgun","enabled":false,"default_from_address":"","credentials":{"domain":"example.com","region":"eu"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -414,7 +558,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/emails/provider method: DELETE response: diff --git a/test/data/recordings/TestAccGlobalClient.yaml b/test/data/recordings/TestAccGlobalClient.yaml index 80cc63c51..d6cbe0d2d 100644 --- a/test/data/recordings/TestAccGlobalClient.yaml +++ b/test/data/recordings/TestAccGlobalClient.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id&include_fields=true&include_totals=true&is_global=true&per_page=50 method: GET response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: PATCH response: @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id&include_fields=true&include_totals=true&is_global=true&per_page=50 method: GET response: @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":true,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -330,20 +330,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 304 + content_length: 31 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"All Applications","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e"} + {"custom_login_page_on":false} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: PATCH response: @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 @@ -415,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf method: GET response: @@ -426,7 +426,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' + body: '{"name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf","client_secret":"[REDACTED]","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":true,"callbacks":[],"jwt_configuration":{"alg":"RS256"},"signing_keys":[{"cert":"[REDACTED]"}],"sso":false,"sso_disabled":false,"cross_origin_auth":false,"custom_login_page_on":false,"custom_login_page":"\u003chtml\u003eTEST123\u003c/html\u003e","refresh_token":{"rotation_type":"non-rotating","expiration_type":"non-expiring","leeway":0,"token_lifetime":2592000,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":true,"idle_token_lifetime":1296000}}' headers: Content-Type: - application/json; charset=utf-8 diff --git a/test/data/recordings/TestAccGuardian.yaml b/test/data/recordings/TestAccGuardian.yaml index a90931f95..947601b54 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -64,8 +64,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -100,8 +100,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -136,8 +136,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -172,8 +172,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -208,8 +208,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -244,8 +244,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -343,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -415,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -451,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -487,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -496,8 +496,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -523,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -532,8 +532,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -559,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -568,8 +568,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -595,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -604,8 +604,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -631,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -640,8 +640,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -667,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -676,7 +676,7 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 120 uncompressed: false body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: @@ -703,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -712,8 +712,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -739,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -775,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -811,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -847,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -883,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -919,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -955,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -964,8 +964,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -991,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1000,8 +1000,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1027,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1036,8 +1036,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1063,7 +1063,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1072,8 +1072,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1099,7 +1099,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1108,8 +1108,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1135,7 +1135,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1144,8 +1144,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1171,7 +1171,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1207,7 +1207,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1243,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1279,7 +1279,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1315,7 +1315,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1351,7 +1351,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1387,7 +1387,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1396,8 +1396,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1423,7 +1423,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1432,8 +1432,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1459,7 +1459,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1468,8 +1468,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1495,7 +1495,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1504,14 +1504,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 42 request: @@ -1531,8 +1531,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: proto: HTTP/2.0 @@ -1540,14 +1540,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 43 request: @@ -1567,7 +1567,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1576,8 +1576,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1603,7 +1603,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1612,8 +1612,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1639,7 +1639,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1675,7 +1675,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1711,7 +1711,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1747,7 +1747,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1783,7 +1783,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1819,7 +1819,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1855,7 +1855,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1864,8 +1864,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -1891,7 +1891,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1900,8 +1900,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1927,7 +1927,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1936,8 +1936,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1963,7 +1963,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1972,8 +1972,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1999,7 +1999,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -2008,8 +2008,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2035,7 +2035,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -2044,8 +2044,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2071,7 +2071,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2107,7 +2107,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2143,7 +2143,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2179,7 +2179,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2215,7 +2215,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2251,7 +2251,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2260,36 +2260,36 @@ interactions: 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":true,"trial_expired":false}]' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 63 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -2298,7 +2298,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":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":true,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 @@ -2323,8 +2323,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: proto: HTTP/2.0 @@ -2332,8 +2332,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2359,8 +2359,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: proto: HTTP/2.0 @@ -2368,8 +2368,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2395,8 +2395,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -2404,14 +2404,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 67 request: @@ -2431,7 +2431,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -2440,8 +2440,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2467,7 +2467,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -2476,8 +2476,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2503,7 +2503,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -2512,8 +2512,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2539,7 +2539,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2575,7 +2575,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2611,7 +2611,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2647,7 +2647,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2683,7 +2683,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -2692,8 +2692,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 2 + uncompressed: false body: '[]' headers: Content-Type: @@ -2719,7 +2719,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -2728,8 +2728,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2755,7 +2755,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -2764,8 +2764,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2791,7 +2791,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -2800,8 +2800,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2827,7 +2827,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -2836,8 +2836,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2863,7 +2863,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -2872,8 +2872,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2899,7 +2899,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -2908,8 +2908,44 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 429 Too Many Requests + code: 429 + duration: 1ms + - 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/latest + 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: @@ -2917,7 +2953,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 81 + - id: 82 request: proto: HTTP/1.1 proto_major: 1 @@ -2935,7 +2971,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -2944,8 +2980,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2953,7 +2989,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 82 + - id: 83 request: proto: HTTP/1.1 proto_major: 1 @@ -2971,7 +3007,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -2980,8 +3016,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: diff --git a/test/data/recordings/TestAccGuardianDUO.yaml b/test/data/recordings/TestAccGuardianDUO.yaml index ec6f59704..d6cabf25d 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -64,8 +64,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -100,14 +100,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 3 request: @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: proto: HTTP/2.0 @@ -136,8 +136,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -150,21 +150,21 @@ interactions: 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/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: proto: HTTP/2.0 @@ -172,9 +172,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -186,21 +186,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 61 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + {"host":"api-hostname","ikey":"someKey","skey":"someSecret"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: PUT response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":true}' + body: '{"host":"api-hostname","ikey":"someKey","skey":"someSecret"}' headers: Content-Type: - application/json; charset=utf-8 @@ -222,21 +222,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 61 + content_length: 18 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"host":"api-hostname","ikey":"someKey","skey":"someSecret"} + {"enabled":false} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -244,9 +244,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"host":"api-hostname","ikey":"someKey","skey":"someSecret"}' + content_length: 17 + uncompressed: false + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -258,22 +258,22 @@ interactions: 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":false}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ 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":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":true,"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 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ 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":true,"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: '{"ikey":"someKey","skey":"someSecret","host":"api-hostname"}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"ikey":"someKey","skey":"someSecret","host":"api-hostname"}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -426,7 +426,7 @@ 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":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":true,"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 @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: proto: HTTP/2.0 @@ -462,7 +462,7 @@ 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":true,"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: '{"ikey":"someKey","skey":"someSecret","host":"api-hostname"}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"ikey":"someKey","skey":"someSecret","host":"api-hostname"}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -534,7 +534,7 @@ 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":false,"trial_expired":false},{"name":"email","enabled":false,"trial_expired":false},{"name":"duo","enabled":true,"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 @@ -559,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: proto: HTTP/2.0 @@ -568,14 +568,14 @@ interactions: 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":true,"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: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 16 request: @@ -595,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo/settings method: GET response: @@ -631,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -640,8 +640,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -667,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -676,8 +676,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -703,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -712,8 +712,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -739,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -748,8 +748,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -775,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -784,36 +784,36 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 22 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -822,7 +822,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":false}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -847,8 +847,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -858,7 +858,7 @@ 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":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 @@ -883,8 +883,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -894,7 +894,7 @@ 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 @@ -919,8 +919,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -930,7 +930,7 @@ 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":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 @@ -942,31 +942,31 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 3 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: PUT 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}]' + content_length: 2 + uncompressed: false + body: '[]' headers: Content-Type: - application/json; charset=utf-8 @@ -978,21 +978,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 3 + 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: proto: HTTP/2.0 @@ -1000,9 +1000,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '[]' + content_length: 17 + uncompressed: false + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -1027,8 +1027,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: proto: HTTP/2.0 @@ -1036,8 +1036,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1063,8 +1063,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: proto: HTTP/2.0 @@ -1072,8 +1072,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1099,8 +1099,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: proto: HTTP/2.0 @@ -1108,8 +1108,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1135,8 +1135,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -1144,8 +1144,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1171,8 +1171,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: proto: HTTP/2.0 @@ -1180,8 +1180,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1207,8 +1207,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: proto: HTTP/2.0 @@ -1216,14 +1216,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 34 request: @@ -1243,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1252,8 +1252,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1279,7 +1279,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1288,8 +1288,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: diff --git a/test/data/recordings/TestAccGuardianPhone.yaml b/test/data/recordings/TestAccGuardianPhone.yaml index 36ee394e6..bc1dda8f3 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -64,35 +64,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 16 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 2 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 34 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + {"provider":"phone-message-hook"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: PUT response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":true}' + body: '{"provider":"phone-message-hook"}' headers: Content-Type: - application/json; charset=utf-8 @@ -114,21 +114,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 34 + content_length: 26 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"phone-message-hook"} + {"message_types":["sms"]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: PUT response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"phone-message-hook"}' + body: '{"message_types":["sms"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 26 + content_length: 18 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"message_types":["sms"]} + {"enabled":false} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -172,9 +172,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"message_types":["sms"]}' + content_length: 17 + uncompressed: false + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: proto: HTTP/2.0 @@ -208,8 +208,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: proto: HTTP/2.0 @@ -244,8 +244,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -280,8 +280,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -294,22 +294,22 @@ interactions: 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":false}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + 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 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ 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: '{"message_types":["sms"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: proto: HTTP/2.0 @@ -424,14 +424,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"message_types":["sms"]}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 12 request: @@ -451,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -487,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -523,7 +523,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -559,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -595,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -631,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -667,43 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.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: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -721,7 +685,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 20 + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -739,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -757,7 +721,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 21 + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -775,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -793,7 +757,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 22 + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -811,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -829,7 +793,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 23 + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -847,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -865,7 +829,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 24 + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -883,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -901,7 +865,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 25 + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -919,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -937,7 +901,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 26 + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -955,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -973,7 +937,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 27 + - id: 26 request: proto: HTTP/1.1 proto_major: 1 @@ -991,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1009,7 +973,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 28 + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -1027,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -1045,7 +1009,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 29 + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -1063,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -1081,7 +1045,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 30 + - id: 29 request: proto: HTTP/1.1 proto_major: 1 @@ -1099,7 +1063,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1108,8 +1072,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -1117,26 +1081,26 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 31 + - id: 30 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 72 + content_length: 21 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enrollment_message":"enroll foo","verification_message":"verify foo"} + {"provider":"auth0"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: PUT response: proto: HTTP/2.0 @@ -1146,33 +1110,33 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' + body: '{"provider":"auth0"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 32 + - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 21 + content_length: 72 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"auth0"} + {"enrollment_message":"enroll foo","verification_message":"verify foo"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: PUT response: proto: HTTP/2.0 @@ -1182,14 +1146,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"auth0"}' + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 33 + - id: 32 request: proto: HTTP/1.1 proto_major: 1 @@ -1207,7 +1171,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: PUT response: @@ -1225,7 +1189,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 34 + - id: 33 request: proto: HTTP/1.1 proto_major: 1 @@ -1243,7 +1207,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1252,8 +1216,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1261,7 +1225,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 35 + - id: 34 request: proto: HTTP/1.1 proto_major: 1 @@ -1279,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1288,8 +1252,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1297,7 +1261,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 36 + - id: 35 request: proto: HTTP/1.1 proto_major: 1 @@ -1315,7 +1279,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1324,8 +1288,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1333,7 +1297,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 37 + - id: 36 request: proto: HTTP/1.1 proto_major: 1 @@ -1351,7 +1315,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1360,52 +1324,52 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - - id: 38 + - id: 37 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 18 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":false} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET + - Go-Auth0-SDK/latest + 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: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 17 + uncompressed: false + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 39 + - id: 38 request: proto: HTTP/1.1 proto_major: 1 @@ -1423,8 +1387,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1433,15 +1397,15 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + uncompressed: true + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - - id: 40 + - id: 39 request: proto: HTTP/1.1 proto_major: 1 @@ -1459,7 +1423,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1477,7 +1441,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 41 + - id: 40 request: proto: HTTP/1.1 proto_major: 1 @@ -1495,7 +1459,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -1513,7 +1477,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 42 + - id: 41 request: proto: HTTP/1.1 proto_major: 1 @@ -1531,7 +1495,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -1549,7 +1513,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 43 + - id: 42 request: proto: HTTP/1.1 proto_major: 1 @@ -1567,7 +1531,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -1585,7 +1549,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 44 + - id: 43 request: proto: HTTP/1.1 proto_major: 1 @@ -1603,7 +1567,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1621,7 +1585,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 45 + - id: 44 request: proto: HTTP/1.1 proto_major: 1 @@ -1639,7 +1603,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1657,7 +1621,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 46 + - id: 45 request: proto: HTTP/1.1 proto_major: 1 @@ -1675,7 +1639,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -1693,7 +1657,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 47 + - id: 46 request: proto: HTTP/1.1 proto_major: 1 @@ -1711,7 +1675,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -1729,7 +1693,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 48 + - id: 47 request: proto: HTTP/1.1 proto_major: 1 @@ -1747,7 +1711,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -1765,7 +1729,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 49 + - id: 48 request: proto: HTTP/1.1 proto_major: 1 @@ -1783,7 +1747,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1801,7 +1765,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 50 + - id: 49 request: proto: HTTP/1.1 proto_major: 1 @@ -1819,7 +1783,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1837,7 +1801,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 51 + - id: 50 request: proto: HTTP/1.1 proto_major: 1 @@ -1855,7 +1819,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -1873,7 +1837,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 52 + - id: 51 request: proto: HTTP/1.1 proto_major: 1 @@ -1891,7 +1855,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -1909,7 +1873,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 53 + - id: 52 request: proto: HTTP/1.1 proto_major: 1 @@ -1927,7 +1891,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -1945,7 +1909,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 54 + - id: 53 request: proto: HTTP/1.1 proto_major: 1 @@ -1963,7 +1927,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1972,8 +1936,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -1981,26 +1945,26 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 55 + - id: 54 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 81 + content_length: 22 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"} + {"provider":"twilio"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: PUT response: proto: HTTP/2.0 @@ -2010,33 +1974,33 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"from":"from bar","messaging_service_sid":"foo","auth_token":"bar","sid":"foo"}' + body: '{"provider":"twilio"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 56 + - id: 55 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 72 + content_length: 81 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enrollment_message":"enroll foo","verification_message":"verify foo"} + {"from":"from bar","messaging_service_sid":"foo","auth_token":"bar","sid":"foo"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: PUT response: proto: HTTP/2.0 @@ -2046,33 +2010,33 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' + 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: 1ms - - id: 57 + - id: 56 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 22 + content_length: 72 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"provider":"twilio"} + {"enrollment_message":"enroll foo","verification_message":"verify foo"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: PUT response: proto: HTTP/2.0 @@ -2082,14 +2046,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"provider":"twilio"}' + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 58 + - id: 57 request: proto: HTTP/1.1 proto_major: 1 @@ -2107,7 +2071,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: PUT response: @@ -2116,35 +2080,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"message_types":["sms"]}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - - id: 59 + - id: 58 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: PUT response: proto: HTTP/2.0 @@ -2154,14 +2118,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":false}' + body: '{"message_types":["sms"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 60 + - id: 59 request: proto: HTTP/1.1 proto_major: 1 @@ -2179,8 +2143,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -2188,16 +2152,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - - id: 61 + - id: 60 request: proto: HTTP/1.1 proto_major: 1 @@ -2215,7 +2179,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -2224,8 +2188,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2233,7 +2197,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 62 + - id: 61 request: proto: HTTP/1.1 proto_major: 1 @@ -2251,7 +2215,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -2260,8 +2224,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2269,7 +2233,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 63 + - id: 62 request: proto: HTTP/1.1 proto_major: 1 @@ -2287,7 +2251,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -2296,8 +2260,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -2305,7 +2269,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 64 + - id: 63 request: proto: HTTP/1.1 proto_major: 1 @@ -2323,7 +2287,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2341,7 +2305,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 65 + - id: 64 request: proto: HTTP/1.1 proto_major: 1 @@ -2359,7 +2323,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2377,7 +2341,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 66 + - id: 65 request: proto: HTTP/1.1 proto_major: 1 @@ -2395,7 +2359,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -2413,7 +2377,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 67 + - id: 66 request: proto: HTTP/1.1 proto_major: 1 @@ -2431,7 +2395,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -2449,7 +2413,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 68 + - id: 67 request: proto: HTTP/1.1 proto_major: 1 @@ -2467,7 +2431,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -2485,7 +2449,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 69 + - id: 68 request: proto: HTTP/1.1 proto_major: 1 @@ -2503,7 +2467,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: GET response: @@ -2521,7 +2485,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 70 + - id: 69 request: proto: HTTP/1.1 proto_major: 1 @@ -2539,7 +2503,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -2557,7 +2521,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 71 + - id: 70 request: proto: HTTP/1.1 proto_major: 1 @@ -2575,7 +2539,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -2593,7 +2557,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 72 + - id: 71 request: proto: HTTP/1.1 proto_major: 1 @@ -2611,7 +2575,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: @@ -2629,7 +2593,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 73 + - id: 72 request: proto: HTTP/1.1 proto_major: 1 @@ -2647,7 +2611,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -2665,7 +2629,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 74 + - id: 73 request: proto: HTTP/1.1 proto_major: 1 @@ -2683,7 +2647,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -2692,16 +2656,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - - id: 75 + - id: 74 request: proto: HTTP/1.1 proto_major: 1 @@ -2719,8 +2683,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: proto: HTTP/2.0 @@ -2730,14 +2694,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"auth_token":"bar","sid":"foo","from":"from bar","messaging_service_sid":"foo"}' + body: '{"enrollment_message":"enroll foo","verification_message":"verify foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 76 + - id: 75 request: proto: HTTP/1.1 proto_major: 1 @@ -2755,8 +2719,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: GET response: proto: HTTP/2.0 @@ -2766,14 +2730,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"auth_token":"bar","sid":"foo","from":"from bar","messaging_service_sid":"foo"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 77 + - id: 76 request: proto: HTTP/1.1 proto_major: 1 @@ -2791,8 +2755,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -2802,14 +2766,14 @@ 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: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 78 + - id: 77 request: proto: HTTP/1.1 proto_major: 1 @@ -2827,8 +2791,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -2838,14 +2802,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"message_types":["sms"]}' + 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: 1ms - - id: 79 + - id: 78 request: proto: HTTP/1.1 proto_major: 1 @@ -2863,8 +2827,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/message-types method: GET response: proto: HTTP/2.0 @@ -2873,15 +2837,15 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + uncompressed: true + body: '{"message_types":["sms"]}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - - id: 80 + - id: 79 request: proto: HTTP/1.1 proto_major: 1 @@ -2899,7 +2863,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/phone/selected-provider method: GET response: @@ -2917,7 +2881,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 81 + - id: 80 request: proto: HTTP/1.1 proto_major: 1 @@ -2935,7 +2899,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/templates method: GET response: @@ -2953,7 +2917,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 82 + - id: 81 request: proto: HTTP/1.1 proto_major: 1 @@ -2971,7 +2935,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms/providers/twilio method: GET response: @@ -2989,7 +2953,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 83 + - id: 82 request: proto: HTTP/1.1 proto_major: 1 @@ -3007,7 +2971,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -3016,8 +2980,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3025,7 +2989,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 84 + - id: 83 request: proto: HTTP/1.1 proto_major: 1 @@ -3043,7 +3007,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -3052,8 +3016,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3061,7 +3025,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 85 + - id: 84 request: proto: HTTP/1.1 proto_major: 1 @@ -3079,7 +3043,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -3088,8 +3052,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3097,7 +3061,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 86 + - id: 85 request: proto: HTTP/1.1 proto_major: 1 @@ -3115,7 +3079,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -3124,8 +3088,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3133,7 +3097,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 87 + - id: 86 request: proto: HTTP/1.1 proto_major: 1 @@ -3151,7 +3115,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -3160,8 +3124,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3169,7 +3133,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 88 + - id: 87 request: proto: HTTP/1.1 proto_major: 1 @@ -3187,7 +3151,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -3205,7 +3169,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 89 + - id: 88 request: proto: HTTP/1.1 proto_major: 1 @@ -3223,7 +3187,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -3241,7 +3205,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 90 + - id: 89 request: proto: HTTP/1.1 proto_major: 1 @@ -3259,7 +3223,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -3277,7 +3241,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 91 + - id: 90 request: proto: HTTP/1.1 proto_major: 1 @@ -3295,7 +3259,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -3313,7 +3277,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 92 + - id: 91 request: proto: HTTP/1.1 proto_major: 1 @@ -3331,7 +3295,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -3340,8 +3304,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 2 + uncompressed: false body: '[]' headers: Content-Type: @@ -3349,7 +3313,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 93 + - id: 92 request: proto: HTTP/1.1 proto_major: 1 @@ -3367,7 +3331,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -3376,8 +3340,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3385,7 +3349,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 94 + - id: 93 request: proto: HTTP/1.1 proto_major: 1 @@ -3403,7 +3367,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -3412,8 +3376,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3421,7 +3385,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 95 + - id: 94 request: proto: HTTP/1.1 proto_major: 1 @@ -3439,7 +3403,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -3448,16 +3412,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - - id: 96 + - id: 95 request: proto: HTTP/1.1 proto_major: 1 @@ -3475,8 +3439,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: proto: HTTP/2.0 @@ -3484,8 +3448,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3493,7 +3457,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 97 + - id: 96 request: proto: HTTP/1.1 proto_major: 1 @@ -3511,8 +3475,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: proto: HTTP/2.0 @@ -3520,8 +3484,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3529,7 +3493,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 98 + - id: 97 request: proto: HTTP/1.1 proto_major: 1 @@ -3547,8 +3511,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -3556,16 +3520,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - - id: 99 + - id: 98 request: proto: HTTP/1.1 proto_major: 1 @@ -3583,7 +3547,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -3592,8 +3556,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3601,7 +3565,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 100 + - id: 99 request: proto: HTTP/1.1 proto_major: 1 @@ -3619,7 +3583,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -3628,8 +3592,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -3637,7 +3601,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 101 + - id: 100 request: proto: HTTP/1.1 proto_major: 1 @@ -3655,7 +3619,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -3664,8 +3628,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: diff --git a/test/data/recordings/TestAccGuardianPush.yaml b/test/data/recordings/TestAccGuardianPush.yaml index 8c37319da..1c07b0cce 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/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -64,8 +64,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -100,8 +100,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -136,8 +136,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -172,35 +172,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 5 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/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -208,9 +208,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -222,22 +222,22 @@ interactions: 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":true}' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ 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 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ 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 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ 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 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ 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 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -426,7 +426,7 @@ 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 @@ -438,31 +438,31 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 18 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":false} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors - method: GET + - Go-Auth0-SDK/latest + 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: '[{"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: 17 + uncompressed: false + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -496,8 +496,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: proto: HTTP/2.0 @@ -532,8 +532,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -559,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: proto: HTTP/2.0 @@ -568,8 +568,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -582,21 +582,21 @@ interactions: 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/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -604,9 +604,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -618,21 +618,57 @@ interactions: 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/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification/providers/sns + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 429 Too Many Requests + code: 429 + duration: 1ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 184 + 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"} + 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 response: proto: HTTP/2.0 @@ -642,14 +678,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":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: 1ms - - id: 18 + - id: 19 request: proto: HTTP/1.1 proto_major: 1 @@ -667,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -685,7 +721,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 19 + - id: 20 request: proto: HTTP/1.1 proto_major: 1 @@ -703,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -721,7 +757,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 20 + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -739,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -757,7 +793,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 21 + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -775,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -793,7 +829,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 22 + - id: 23 request: proto: HTTP/1.1 proto_major: 1 @@ -811,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -829,7 +865,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 23 + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -847,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -865,7 +901,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 24 + - id: 25 request: proto: HTTP/1.1 proto_major: 1 @@ -883,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -892,8 +928,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -901,7 +937,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 25 + - id: 26 request: proto: HTTP/1.1 proto_major: 1 @@ -919,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -928,8 +964,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -937,7 +973,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 26 + - id: 27 request: proto: HTTP/1.1 proto_major: 1 @@ -955,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -964,8 +1000,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -973,7 +1009,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 27 + - id: 28 request: proto: HTTP/1.1 proto_major: 1 @@ -991,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1000,35 +1036,35 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - - id: 28 + - id: 29 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/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: proto: HTTP/2.0 @@ -1036,36 +1072,36 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 16 + uncompressed: false + body: '{"enabled":true}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 29 + - id: 30 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 17 + content_length: 169 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"enabled":true} + {"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"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts/mfa-push + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -1074,14 +1110,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":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: 1ms - - id: 30 + - id: 31 request: proto: HTTP/1.1 proto_major: 1 @@ -1099,7 +1135,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1117,7 +1153,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 31 + - id: 32 request: proto: HTTP/1.1 proto_major: 1 @@ -1135,7 +1171,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1153,7 +1189,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 32 + - id: 33 request: proto: HTTP/1.1 proto_major: 1 @@ -1171,7 +1207,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1189,7 +1225,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 33 + - id: 34 request: proto: HTTP/1.1 proto_major: 1 @@ -1207,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1225,7 +1261,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 34 + - id: 35 request: proto: HTTP/1.1 proto_major: 1 @@ -1243,7 +1279,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1261,7 +1297,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 35 + - id: 36 request: proto: HTTP/1.1 proto_major: 1 @@ -1279,7 +1315,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1297,7 +1333,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 36 + - id: 37 request: proto: HTTP/1.1 proto_major: 1 @@ -1315,7 +1351,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1324,8 +1360,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1333,7 +1369,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 37 + - id: 38 request: proto: HTTP/1.1 proto_major: 1 @@ -1351,7 +1387,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1360,8 +1396,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1369,7 +1405,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 38 + - id: 39 request: proto: HTTP/1.1 proto_major: 1 @@ -1387,7 +1423,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1396,8 +1432,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1405,7 +1441,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 39 + - id: 40 request: proto: HTTP/1.1 proto_major: 1 @@ -1423,7 +1459,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1432,8 +1468,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1441,7 +1477,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 40 + - id: 41 request: proto: HTTP/1.1 proto_major: 1 @@ -1459,7 +1495,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1468,52 +1504,52 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - - id: 41 + - id: 42 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 18 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"enabled":false} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: GET + - Go-Auth0-SDK/latest + 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: -1 - uncompressed: true - body: '["all-applications"]' + content_length: 17 + uncompressed: false + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 42 + - id: 43 request: proto: HTTP/1.1 proto_major: 1 @@ -1531,8 +1567,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1542,14 +1578,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: 1ms - - id: 43 + - id: 44 request: proto: HTTP/1.1 proto_major: 1 @@ -1567,8 +1603,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -1578,14 +1614,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":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: 1ms - - id: 44 + - id: 45 request: proto: HTTP/1.1 proto_major: 1 @@ -1603,8 +1639,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -1614,34 +1650,34 @@ 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: 1ms - - id: 45 + - id: 46 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 3 + 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1650,33 +1686,33 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[]' + 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: 1ms - - id: 46 + - id: 47 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 18 + content_length: 3 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: proto: HTTP/2.0 @@ -1684,16 +1720,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 2 + uncompressed: false + body: '[]' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 47 + - id: 48 request: proto: HTTP/1.1 proto_major: 1 @@ -1711,8 +1747,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: proto: HTTP/2.0 @@ -1720,8 +1756,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1729,7 +1765,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 48 + - id: 49 request: proto: HTTP/1.1 proto_major: 1 @@ -1747,8 +1783,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: proto: HTTP/2.0 @@ -1756,8 +1792,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1765,7 +1801,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 49 + - id: 50 request: proto: HTTP/1.1 proto_major: 1 @@ -1783,8 +1819,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: proto: HTTP/2.0 @@ -1792,8 +1828,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1801,7 +1837,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 50 + - id: 51 request: proto: HTTP/1.1 proto_major: 1 @@ -1819,8 +1855,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: proto: HTTP/2.0 @@ -1828,16 +1864,16 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - - id: 51 + - id: 52 request: proto: HTTP/1.1 proto_major: 1 @@ -1855,7 +1891,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1864,8 +1900,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1873,7 +1909,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 52 + - id: 53 request: proto: HTTP/1.1 proto_major: 1 @@ -1891,7 +1927,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1900,8 +1936,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1909,7 +1945,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 53 + - id: 54 request: proto: HTTP/1.1 proto_major: 1 @@ -1927,7 +1963,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1936,8 +1972,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1945,7 +1981,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 54 + - id: 55 request: proto: HTTP/1.1 proto_major: 1 @@ -1963,7 +1999,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1972,8 +2008,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: diff --git a/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml b/test/data/recordings/TestAccGuardianWebAuthnPlatform.yaml index f9ad5b0db..f058c056b 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -64,8 +64,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -100,8 +100,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -136,8 +136,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -172,8 +172,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -208,8 +208,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings method: GET response: @@ -343,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -379,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -415,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings method: GET response: @@ -424,14 +424,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"overrideRelyingParty":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 12 request: @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings method: GET response: proto: HTTP/2.0 @@ -462,7 +462,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"overrideRelyingParty":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ 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":true,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' + body: '["all-applications"]' headers: Content-Type: - application/json; charset=utf-8 @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -534,7 +534,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"overrideRelyingParty":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":true,"trial_expired":false},{"name":"recovery-code","enabled":false,"trial_expired":false}]' headers: Content-Type: - application/json; charset=utf-8 @@ -546,22 +546,22 @@ interactions: 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms - method: PUT + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform/settings + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -570,7 +570,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled":false}' + body: '{"overrideRelyingParty":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -595,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: proto: HTTP/2.0 @@ -604,8 +604,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -631,8 +631,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -640,14 +640,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 18 request: @@ -667,7 +667,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -676,8 +676,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -703,7 +703,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -712,8 +712,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -739,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -748,8 +748,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -775,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -811,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -847,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -883,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -919,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -928,8 +928,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 2 + uncompressed: false body: '[]' headers: Content-Type: @@ -955,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -964,8 +964,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -991,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -1000,8 +1000,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1027,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1036,8 +1036,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1063,7 +1063,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1072,8 +1072,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1099,7 +1099,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -1108,8 +1108,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1135,7 +1135,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -1144,8 +1144,44 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 429 Too Many Requests + code: 429 + duration: 1ms + - id: 32 + 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/latest + 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: @@ -1153,7 +1189,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 32 + - id: 33 request: proto: HTTP/1.1 proto_major: 1 @@ -1171,7 +1207,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1180,8 +1216,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1189,7 +1225,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 33 + - id: 34 request: proto: HTTP/1.1 proto_major: 1 @@ -1207,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1216,8 +1252,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: diff --git a/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml b/test/data/recordings/TestAccGuardianWebAuthnRoaming.yaml index 5cc9d4dff..a8b93caac 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.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -64,8 +64,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -100,8 +100,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 16 + uncompressed: false body: '{"enabled":true}' headers: Content-Type: @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -136,8 +136,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -172,8 +172,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -208,8 +208,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -307,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -316,14 +316,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"userVerification":"required","overrideRelyingParty":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 9 request: @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"userVerification":"required","overrideRelyingParty":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ 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":true,"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 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -426,7 +426,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"userVerification":"required","overrideRelyingParty":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":true,"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 @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: proto: HTTP/2.0 @@ -462,7 +462,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"userVerification":"required","overrideRelyingParty":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ 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":true,"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 @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -534,7 +534,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"userVerification":"required","overrideRelyingParty":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":true,"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 @@ -559,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: proto: HTTP/2.0 @@ -570,7 +570,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"userVerification":"required","overrideRelyingParty":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -595,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -606,7 +606,7 @@ 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":true,"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 @@ -631,8 +631,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -642,7 +642,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"userVerification":"required","overrideRelyingParty":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":true,"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 @@ -667,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: proto: HTTP/2.0 @@ -678,7 +678,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '["all-applications"]' + body: '{"userVerification":"required","overrideRelyingParty":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -703,8 +703,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: proto: HTTP/2.0 @@ -714,7 +714,7 @@ 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":true,"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 @@ -739,8 +739,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: proto: HTTP/2.0 @@ -749,13 +749,13 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + 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":true,"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: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 21 request: @@ -775,7 +775,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming/settings method: GET response: @@ -811,7 +811,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -820,8 +820,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -847,7 +847,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: @@ -856,8 +856,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -883,7 +883,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: @@ -892,8 +892,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -919,7 +919,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -928,8 +928,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -955,7 +955,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -964,8 +964,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -991,7 +991,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1027,7 +1027,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1063,7 +1063,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: GET response: @@ -1099,7 +1099,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors method: GET response: @@ -1135,7 +1135,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/policies method: PUT response: @@ -1144,8 +1144,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 2 + uncompressed: false body: '[]' headers: Content-Type: @@ -1171,7 +1171,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/sms method: PUT response: @@ -1180,8 +1180,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1207,7 +1207,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/email method: PUT response: @@ -1216,8 +1216,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1243,7 +1243,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/otp method: PUT response: @@ -1252,8 +1252,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1279,7 +1279,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: @@ -1288,14 +1288,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled":false}' + content_length: 120 + uncompressed: false + body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 429 Too Many Requests + code: 429 duration: 1ms - id: 36 request: @@ -1315,8 +1315,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/recovery-code method: PUT response: proto: HTTP/2.0 @@ -1324,8 +1324,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1351,8 +1351,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-roaming method: PUT response: proto: HTTP/2.0 @@ -1360,8 +1360,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1387,8 +1387,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/webauthn-platform method: PUT response: proto: HTTP/2.0 @@ -1396,14 +1396,14 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 17 uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' + body: '{"enabled":false}' headers: Content-Type: - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 + status: 200 OK + code: 200 duration: 1ms - id: 39 request: @@ -1423,7 +1423,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/duo method: PUT response: @@ -1432,8 +1432,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: @@ -1459,7 +1459,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/guardian/factors/push-notification method: PUT response: @@ -1468,8 +1468,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 17 + uncompressed: false body: '{"enabled":false}' headers: Content-Type: diff --git a/test/data/recordings/TestAccHook.yaml b/test/data/recordings/TestAccHook.yaml index 4d2b59d6e..cc76a0928 100644 --- a/test/data/recordings/TestAccHook.yaml +++ b/test/data/recordings/TestAccHook.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 156 + content_length: 141 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","triggerId":"pre-user-registration","enabled":true} + {"name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","triggerId":"pre-user-registration"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 208 uncompressed: false - body: '{"id":"01GBPZWEFDT9RFR6PN6939RZZE","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"triggerId":"pre-user-registration","enabled":true}' + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"triggerId":"pre-user-registration","enabled":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWEFDT9RFR6PN6939RZZE/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{}' + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":false,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,44 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWEFDT9RFR6PN6939RZZE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N method: GET response: proto: HTTP/2.0 @@ -102,14 +138,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWEFDT9RFR6PN6939RZZE","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":false,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 3 + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -127,8 +163,44 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWEFDT9RFR6PN6939RZZE/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N method: GET response: proto: HTTP/2.0 @@ -138,6 +210,42 @@ interactions: trailer: { } content_length: -1 uncompressed: true + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":false,"triggerId":"pre-user-registration"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false body: '{}' headers: Content-Type: @@ -145,7 +253,43 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 4 + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 120 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","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/hooks/01GEPVQEH9SX3RSTYY561TR92N + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"triggerId":"pre-user-registration","enabled":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -163,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWEFDT9RFR6PN6939RZZE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N method: GET response: proto: HTTP/2.0 @@ -174,14 +318,50 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWEFDT9RFR6PN6939RZZE","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 5 + - id: 9 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -199,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWEFDT9RFR6PN6939RZZE/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N method: GET response: proto: HTTP/2.0 @@ -210,6 +390,42 @@ interactions: trailer: { } content_length: -1 uncompressed: true + body: '{"id":"01GEPVQEH9SX3RSTYY561TR92N","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":true,"triggerId":"pre-user-registration"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false body: '{}' headers: Content-Type: @@ -217,7 +433,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 6 + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -234,8 +450,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWEFDT9RFR6PN6939RZZE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQEH9SX3RSTYY561TR92N method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccHookSecrets.yaml b/test/data/recordings/TestAccHookSecrets.yaml index c45657b22..7e5a507ad 100644 --- a/test/data/recordings/TestAccHookSecrets.yaml +++ b/test/data/recordings/TestAccHookSecrets.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 223 uncompressed: false - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"triggerId":"pre-user-registration","enabled":true}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"triggerId":"pre-user-registration","enabled":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -64,8 +64,8 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true + content_length: 2 + uncompressed: false body: '{}' headers: Content-Type: @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: POST response: proto: HTTP/2.0 @@ -100,7 +100,7 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 2 uncompressed: false body: '{}' headers: @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: PATCH response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"triggerId":"pre-user-registration","enabled":true}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"triggerId":"pre-user-registration","enabled":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: POST response: proto: HTTP/2.0 @@ -424,7 +424,7 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 2 uncompressed: false body: '{}' headers: @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: PATCH response: proto: HTTP/2.0 @@ -460,7 +460,7 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 2 uncompressed: false body: '{}' headers: @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -559,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -570,7 +570,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -595,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -631,8 +631,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -642,7 +642,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -667,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -703,8 +703,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: PATCH response: proto: HTTP/2.0 @@ -714,7 +714,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"triggerId":"pre-user-registration","enabled":true}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"triggerId":"pre-user-registration","enabled":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -739,8 +739,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -775,8 +775,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: PATCH response: proto: HTTP/2.0 @@ -784,7 +784,7 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 2 uncompressed: false body: '{}' headers: @@ -811,8 +811,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: DELETE response: proto: HTTP/2.0 @@ -847,8 +847,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -858,7 +858,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -883,8 +883,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -919,8 +919,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: GET response: proto: HTTP/2.0 @@ -930,7 +930,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"01GBPZWHNHPCQJB116XTN9AX84","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' headers: Content-Type: - application/json; charset=utf-8 @@ -955,8 +955,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84/secrets + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets method: GET response: proto: HTTP/2.0 @@ -974,6 +974,330 @@ interactions: code: 200 duration: 1ms - id: 27 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{"auth0":"2.30.0"},"enabled":true,"triggerId":"pre-user-registration"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 28 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"foo":"_VALUE_NOT_SHOWN_"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 138 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"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/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"triggerId":"pre-user-registration","enabled":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 30 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"foo":"_VALUE_NOT_SHOWN_"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 8 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + ["foo"] + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":true,"triggerId":"pre-user-registration"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"01GEPVQNVSHW1ZVB7WVPRYKX18","name":"pre-user-reg-hook","script":"function (user, context, callback) { callback(null, { user }); }","dependencies":{},"enabled":true,"triggerId":"pre-user-registration"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18/secrets + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 36 request: proto: HTTP/1.1 proto_major: 1 @@ -990,8 +1314,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GBPZWHNHPCQJB116XTN9AX84 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/hooks/01GEPVQNVSHW1ZVB7WVPRYKX18 method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccLogStreamHTTP.yaml b/test/data/recordings/TestAccLogStreamHTTP.yaml index 48960ecf7..a3487fcb7 100644 --- a/test/data/recordings/TestAccLogStreamHTTP.yaml +++ b/test/data/recordings/TestAccLogStreamHTTP.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"active","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"active","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: PATCH response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -186,21 +186,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 267 + content_length: 249 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","status":"paused","sink":{"httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX"}} + {"name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","sink":{"httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: PATCH response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONARRAY","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -330,21 +330,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 268 + content_length: 250 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","status":"paused","sink":{"httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX"}} + {"name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","sink":{"httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: PATCH response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -426,7 +426,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -462,7 +462,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONOBJECT","httpContentType":"application/json; charset=utf-8","httpEndpoint":"https://example.com/webhook/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -474,21 +474,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 248 + content_length: 230 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","status":"paused","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX"}} + {"name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: PATCH response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -534,7 +534,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -559,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -570,7 +570,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -595,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -606,7 +606,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -618,21 +618,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 332 + content_length: 314 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","status":"paused","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}} + {"name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: PATCH response: proto: HTTP/2.0 @@ -642,7 +642,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' headers: Content-Type: - application/json; charset=utf-8 @@ -667,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -678,7 +678,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' headers: Content-Type: - application/json; charset=utf-8 @@ -703,8 +703,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: GET response: proto: HTTP/2.0 @@ -714,7 +714,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010031","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' headers: Content-Type: - application/json; charset=utf-8 @@ -722,6 +722,150 @@ interactions: code: 200 duration: 1ms - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[{"header":"foo","value":"bar"},{"header":"bar","value":"foo"}]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 253 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","sink":{"httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpCustomHeaders":[]}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000007100","name":"Acceptance-Test-LogStream-http-new-TestAccLogStreamHTTP","type":"http","status":"paused","sink":{"httpAuthorization":"AKIAXXXXXXXXXXXXXXXX","httpContentFormat":"JSONLINES","httpContentType":"application/json","httpEndpoint":"https://example.com/logs","httpCustomHeaders":[]}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 24 request: proto: HTTP/1.1 proto_major: 1 @@ -738,8 +882,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010031 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000007100 method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccLogStreamSumo.yaml b/test/data/recordings/TestAccLogStreamSumo.yaml index f4127d46f..e3d134d0c 100644 --- a/test/data/recordings/TestAccLogStreamSumo.yaml +++ b/test/data/recordings/TestAccLogStreamSumo.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/0.11.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams method: POST response: @@ -30,7 +30,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"demo.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 126 + content_length: 108 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}} + {"name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","sink":{"sumoSourceAddress":"prod.sumo.com"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -294,21 +294,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 229 + content_length: 211 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","status":"active","filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}],"sink":{"sumoSourceAddress":"prod.sumo.com"}} + {"name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}],"sink":{"sumoSourceAddress":"prod.sumo.com"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: PATCH response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"lst_0000000000010036","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -398,6 +398,150 @@ interactions: code: 200 duration: 1ms - id: 11 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"},"filters":[{"name":"auth.login.fail","type":"category"},{"name":"auth.signup.fail","type":"category"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 121 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","filters":[],"sink":{"sumoSourceAddress":"prod.sumo.com"}} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"lst_0000000000010354","name":"Acceptance-Test-LogStream-sumo-TestAccLogStreamSumo","type":"sumo","status":"active","sink":{"sumoSourceAddress":"prod.sumo.com"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -414,8 +558,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010036 + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/log-streams/lst_0000000000010354 method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccOrganization.yaml b/test/data/recordings/TestAccOrganization.yaml index 89901b507..02814018f 100644 --- a/test/data/recordings/TestAccOrganization.yaml +++ b/test/data/recordings/TestAccOrganization.yaml @@ -6,21 +6,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 82 + content_length: 83 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"} + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: proto: HTTP/2.0 @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 110 uncompressed: false - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","id":"org_qK4t86pcMGKq00gN"}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 @@ -78,22 +78,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 83 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -101,35 +101,35 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","id":"org_m8E3s247R2xk2xrH"}' + uncompressed: true + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 - status: 201 Created - code: 201 + status: 200 OK + code: 200 duration: 1ms - id: 3 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 86 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -137,34 +137,34 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + uncompressed: true + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 - status: 201 Created - code: 201 + status: 200 OK + code: 200 duration: 1ms - id: 4 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 41 + content_length: 82 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_HWcggiuIGClJ5fbm"} + {"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: proto: HTTP/2.0 @@ -172,9 +172,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 363 uncompressed: false - body: '{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -222,36 +222,36 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 37 + content_length: 86 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"assign_membership_on_login":false} + {"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections/con_HWcggiuIGClJ5fbm - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections + method: POST response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + content_length: 371 + uncompressed: false + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 201 Created + code: 201 duration: 1ms - id: 7 request: @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow method: GET response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow method: GET response: proto: HTTP/2.0 @@ -426,7 +426,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -462,7 +462,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -510,22 +510,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 231 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -534,7 +534,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_qK4t86pcMGKq00gN","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization","metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -559,8 +559,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -570,7 +570,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -595,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -606,7 +606,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -618,22 +618,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 231 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -642,7 +642,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_m8E3s247R2xk2xrH","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization","metadata":{"some_key":"some_value"}}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -654,22 +654,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 41 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection_id":"con_z3QA0qCP3GXOF9FI"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -677,35 +677,35 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + uncompressed: true + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 - status: 201 Created - code: 201 + status: 200 OK + code: 200 duration: 1ms - id: 19 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 37 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"assign_membership_on_login":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections/con_HWcggiuIGClJ5fbm - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -714,7 +714,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -726,22 +726,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 36 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"assign_membership_on_login":true} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections/con_z3QA0qCP3GXOF9FI - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -750,7 +750,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -775,8 +775,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -786,7 +786,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -798,22 +798,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 261 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -822,7 +822,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}},{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_qK4t86pcMGKq00gN","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization","metadata":{"another_key":"another_value","some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -847,8 +847,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -858,7 +858,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -883,8 +883,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow method: GET response: proto: HTTP/2.0 @@ -894,7 +894,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -919,8 +919,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -930,7 +930,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -955,8 +955,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -966,7 +966,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}},{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -991,8 +991,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -1002,7 +1002,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -1027,8 +1027,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow method: GET response: proto: HTTP/2.0 @@ -1038,7 +1038,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -1063,8 +1063,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -1074,7 +1074,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -1086,22 +1086,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 231 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -1110,7 +1110,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_HWcggiuIGClJ5fbm","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}},{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_qK4t86pcMGKq00gN","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization","metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -1122,22 +1122,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 261 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1146,7 +1146,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_m8E3s247R2xk2xrH","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization","metadata":{"another_key":"another_value","some_key":"some_value"}}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -1158,57 +1158,58 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: "" + body: | + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections/con_HWcggiuIGClJ5fbm - method: DELETE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 0 - uncompressed: false - body: "" + content_length: -1 + uncompressed: true + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 + status: 200 OK + code: 200 duration: 1ms - id: 33 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 37 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"assign_membership_on_login":false} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections/con_z3QA0qCP3GXOF9FI - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -1217,7 +1218,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -1242,8 +1243,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -1253,7 +1254,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -1278,8 +1279,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -1289,7 +1290,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -1314,8 +1315,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow method: GET response: proto: HTTP/2.0 @@ -1325,7 +1326,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"con_EtGEl5OjlAHvYZow","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -1350,8 +1351,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 method: GET response: proto: HTTP/2.0 @@ -1361,7 +1362,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + body: '{"id":"con_QK9AQDmhimKxPHe9","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' headers: Content-Type: - application/json; charset=utf-8 @@ -1373,22 +1374,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 97 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","metadata":{}} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -1397,7 +1398,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}}' + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_qK4t86pcMGKq00gN","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 @@ -1409,36 +1410,35 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QK9AQDmhimKxPHe9 + method: DELETE response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + content_length: 0 + uncompressed: false + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 204 No Content + code: 204 duration: 1ms - id: 40 request: @@ -1458,8 +1458,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -1469,7 +1469,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -1481,36 +1481,35 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 0 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - null + body: "" form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_EtGEl5OjlAHvYZow + method: DELETE response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2022-10-06T15:01:28.551Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 202 Accepted + code: 202 duration: 1ms - id: 42 request: @@ -1530,8 +1529,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: GET response: proto: HTTP/2.0 @@ -1541,7 +1540,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"another_key":"another_value","some_key":"some_value"}}' + body: '{"id":"org_qK4t86pcMGKq00gN","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}}}' headers: Content-Type: - application/json; charset=utf-8 @@ -1549,724 +1548,6 @@ interactions: code: 200 duration: 1ms - id: 43 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 44 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 231 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_m8E3s247R2xk2xrH","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization","metadata":{"some_key":"some_value"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 45 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 36 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"assign_membership_on_login":true} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections/con_z3QA0qCP3GXOF9FI - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 51 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 52 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_HWcggiuIGClJ5fbm","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-testaccorganization"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 53 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":{"some_key":"some_value"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 54 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"con_z3QA0qCP3GXOF9FI","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-Acme-Inc-testaccorganization"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 55 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[{"connection_id":"con_z3QA0qCP3GXOF9FI","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 56 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_z3QA0qCP3GXOF9FI - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"deleted_at":"2022-08-30T09:05:53.911Z"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 202 Accepted - code: 202 - duration: 1ms - - id: 57 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_HWcggiuIGClJ5fbm - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms - - id: 58 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 210 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"metadata":null} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_m8E3s247R2xk2xrH","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 59 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 60 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[],"start":0,"limit":0,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 61 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"org_m8E3s247R2xk2xrH","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 62 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH/enabled_connections?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"enabled_connections":[],"start":0,"limit":0,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 63 request: proto: HTTP/1.1 proto_major: 1 @@ -2283,8 +1564,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_m8E3s247R2xk2xrH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_qK4t86pcMGKq00gN method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccPrompt.yaml b/test/data/recordings/TestAccPrompt.yaml index a20264c13..25c448d13 100644 --- a/test/data/recordings/TestAccPrompt.yaml +++ b/test/data/recordings/TestAccPrompt.yaml @@ -2,6 +2,150 @@ version: 2 interactions: - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 27 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"identifier_first":false} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"universal_login_experience":"new","identifier_first":false,"webauthn_platform_first_factor":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 1 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"universal_login_experience":"new","identifier_first":false,"webauthn_platform_first_factor":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"universal_login_experience":"new","identifier_first":false,"webauthn_platform_first_factor":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"universal_login_experience":"new","identifier_first":false,"webauthn_platform_first_factor":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 request: proto: HTTP/1.1 proto_major: 1 @@ -19,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: PATCH response: @@ -37,7 +181,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 1 + - id: 5 request: proto: HTTP/1.1 proto_major: 1 @@ -55,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -73,7 +217,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 2 + - id: 6 request: proto: HTTP/1.1 proto_major: 1 @@ -91,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -109,7 +253,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 3 + - id: 7 request: proto: HTTP/1.1 proto_major: 1 @@ -127,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -145,7 +289,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 4 + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -163,7 +307,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: PATCH response: @@ -181,7 +325,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 5 + - id: 9 request: proto: HTTP/1.1 proto_major: 1 @@ -199,7 +343,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -217,7 +361,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 6 + - id: 10 request: proto: HTTP/1.1 proto_major: 1 @@ -235,7 +379,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -253,7 +397,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 7 + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -271,7 +415,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -289,7 +433,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 8 + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -307,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: PATCH response: @@ -325,7 +469,7 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 9 + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -343,7 +487,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: @@ -361,7 +505,79 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 10 + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"universal_login_experience":"new","identifier_first":false,"webauthn_platform_first_factor":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"universal_login_experience":"new","identifier_first":false,"webauthn_platform_first_factor":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -379,7 +595,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/prompts method: GET response: diff --git a/test/data/recordings/TestAccResourceServer.yaml b/test/data/recordings/TestAccResourceServer.yaml index d61b1dfd6..75f611482 100644 --- a/test/data/recordings/TestAccResourceServer.yaml +++ b/test/data/recordings/TestAccResourceServer.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 427 + content_length: 96 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}],"signing_alg":"RS256","allow_offline_access":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"skip_consent_for_verifiable_first_party_clients":true,"enforce_policies":true} + {"identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","scopes":[]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 287 uncompressed: false - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[]}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[]}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[]}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:foo","description":"Create foos"},{"value":"create:bar","description":"Create bars"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[]}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,21 +150,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 362 + content_length: 345 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Acceptance Test - TestAccResourceServer","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"signing_alg":"RS256","allow_offline_access":false,"token_lifetime":7200,"token_lifetime_for_web":3600,"skip_consent_for_verifiable_first_party_clients":true,"enforce_policies":true} + {"name":"Acceptance Test - TestAccResourceServer","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}],"signing_alg":"RS256","allow_offline_access":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"skip_consent_for_verifiable_first_party_clients":true,"enforce_policies":true} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: PATCH response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd300881e1acece3d906f","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -254,6 +254,294 @@ interactions: code: 200 duration: 1ms - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":true,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 362 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - TestAccResourceServer","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"signing_alg":"RS256","allow_offline_access":false,"token_lifetime":7200,"token_lifetime_for_web":3600,"skip_consent_for_verifiable_first_party_clients":true,"enforce_policies":true} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[{"value":"create:bar","description":"Create bars for bar reasons"},{"value":"create:foo","description":"Create foos"}],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 63 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - TestAccResourceServer","scopes":[]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da75b9fb6592e48bfeb82","name":"Acceptance Test - TestAccResourceServer","identifier":"https://uat.api.terraform-provider-auth0.com/TestAccResourceServer","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":true,"token_lifetime":7200,"token_lifetime_for_web":3600,"signing_alg":"RS256","scopes":[],"enforce_policies":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 request: proto: HTTP/1.1 proto_major: 1 @@ -270,8 +558,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd300881e1acece3d906f + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da75b9fb6592e48bfeb82 method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccRole.yaml b/test/data/recordings/TestAccRole.yaml index 43ba0375e..35d3cc315 100644 --- a/test/data/recordings/TestAccRole.yaml +++ b/test/data/recordings/TestAccRole.yaml @@ -6,21 +6,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 212 + content_length: 51 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","scopes":[{"value":"stop:bullets","description":"Stop bullets"},{"value":"bring:peace","description":"Bring peace"}]} + {"name":"The One - Acceptance Test - TestAccRole"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles method: POST response: proto: HTTP/2.0 @@ -29,13 +29,13 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{"id":"630dd3043238cfdda5d49d5a","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"stop:bullets","description":"Stop bullets"},{"value":"bring:peace","description":"Bring peace"}]}' + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":null}' headers: Content-Type: - application/json; charset=utf-8 - status: 201 Created - code: 201 + status: 200 OK + code: 200 duration: 1ms - id: 1 request: @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd3043238cfdda5d49d5a + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd3043238cfdda5d49d5a","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"stop:bullets","description":"Stop bullets"},{"value":"bring:peace","description":"Bring peace"}]}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":null}' headers: Content-Type: - application/json; charset=utf-8 @@ -78,22 +78,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 93 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' + body: '{"permissions":[],"start":0,"limit":50,"total":0}' headers: Content-Type: - application/json; charset=utf-8 @@ -114,22 +114,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 116 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"permissions":[{"resource_server_identifier":"https://TestAccRole.matrix.com/","permission_name":"stop:bullets"}]} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -137,13 +137,13 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{}' + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":null}' headers: Content-Type: - application/json; charset=utf-8 - status: 201 Created - code: 201 + status: 200 OK + code: 200 duration: 1ms - id: 4 request: @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -174,7 +174,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' + body: '{"permissions":[],"start":0,"limit":50,"total":0}' headers: Content-Type: - application/json; charset=utf-8 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions?include_totals=true&page=0&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"permissions":[{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":1}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":null}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd3043238cfdda5d49d5a + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd3043238cfdda5d49d5a","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"stop:bullets","description":"Stop bullets"},{"value":"bring:peace","description":"Bring peace"}]}' + body: '{"permissions":[],"start":0,"limit":50,"total":0}' headers: Content-Type: - application/json; charset=utf-8 @@ -254,6 +254,42 @@ interactions: code: 200 duration: 1ms - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 212 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 403 + uncompressed: false + body: '{"id":"632da00717d703d775734d7b","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 8 request: proto: HTTP/1.1 proto_major: 1 @@ -271,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da00717d703d775734d7b method: GET response: proto: HTTP/2.0 @@ -282,34 +318,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' + body: '{"id":"632da00717d703d775734d7b","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 8 + - id: 9 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 93 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions?include_totals=true&page=0&per_page=50 - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -318,14 +354,50 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"permissions":[{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":1}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 9 + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 116 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://TestAccRole.matrix.com/","permission_name":"stop:bullets"}]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -343,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd3043238cfdda5d49d5a + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 method: GET response: proto: HTTP/2.0 @@ -354,14 +426,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd3043238cfdda5d49d5a","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"stop:bullets","description":"Stop bullets"},{"value":"bring:peace","description":"Bring peace"}]}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 10 + - id: 12 request: proto: HTTP/1.1 proto_major: 1 @@ -379,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -390,14 +462,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' + body: '{"permissions":[{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":1}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 11 + - id: 13 request: proto: HTTP/1.1 proto_major: 1 @@ -415,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions?include_totals=true&page=0&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da00717d703d775734d7b method: GET response: proto: HTTP/2.0 @@ -426,34 +498,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"permissions":[{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":1}' + body: '{"id":"632da00717d703d775734d7b","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 12 + - id: 14 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 114 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -462,34 +534,34 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 13 + - id: 15 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"permissions":[{"resource_server_identifier":"https://TestAccRole.matrix.com/","permission_name":"bring:peace"}]} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -497,15 +569,15 @@ interactions: transfer_encoding: [ ] trailer: { } content_length: -1 - uncompressed: false - body: '{}' + uncompressed: true + body: '{"permissions":[{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":1}' headers: Content-Type: - application/json; charset=utf-8 - status: 201 Created - code: 201 + status: 200 OK + code: 200 duration: 1ms - - id: 14 + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -523,8 +595,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da00717d703d775734d7b method: GET response: proto: HTTP/2.0 @@ -534,14 +606,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' + body: '{"id":"632da00717d703d775734d7b","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 15 + - id: 17 request: proto: HTTP/1.1 proto_major: 1 @@ -559,8 +631,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions?include_totals=true&page=0&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 method: GET response: proto: HTTP/2.0 @@ -570,14 +642,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"permissions":[{"permission_name":"bring:peace","description":"Bring peace","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"},{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":2}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One - Acceptance Test"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 16 + - id: 18 request: proto: HTTP/1.1 proto_major: 1 @@ -595,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd3043238cfdda5d49d5a + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -606,14 +678,86 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"630dd3043238cfdda5d49d5a","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"stop:bullets","description":"Stop bullets"},{"value":"bring:peace","description":"Bring peace"}]}' + body: '{"permissions":[{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":1}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 17 + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 114 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 115 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://TestAccRole.matrix.com/","permission_name":"bring:peace"}]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 21 request: proto: HTTP/1.1 proto_major: 1 @@ -631,8 +775,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 method: GET response: proto: HTTP/2.0 @@ -642,14 +786,14 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rol_QQ7oVFC67INBR5Wj","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 18 + - id: 22 request: proto: HTTP/1.1 proto_major: 1 @@ -667,8 +811,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj/permissions?include_totals=true&page=0&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 method: GET response: proto: HTTP/2.0 @@ -685,27 +829,27 @@ interactions: status: 200 OK code: 200 duration: 1ms - - id: 19 + - id: 23 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 3 + 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_QQ7oVFC67INBR5Wj - method: DELETE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da00717d703d775734d7b + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -714,45 +858,477 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{}' + body: '{"id":"632da00717d703d775734d7b","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms - - id: 20 + - id: 24 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: "" + body: | + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/630dd3043238cfdda5d49d5a - method: DELETE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 0 - uncompressed: false - body: "" + content_length: -1 + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 + status: 200 OK + code: 200 + duration: 1ms + - id: 25 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"bring:peace","description":"Bring peace","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"},{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 26 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":"The One who will bring peace - Acceptance Test"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 27 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da00717d703d775734d7b + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"632da00717d703d775734d7b","name":"Role - Acceptance Test - TestAccRole","identifier":"https://TestAccRole.matrix.com/","allow_offline_access":false,"skip_consent_for_verifiable_first_party_clients":false,"token_lifetime":86400,"token_lifetime_for_web":7200,"signing_alg":"RS256","scopes":[{"value":"bring:peace","description":"Bring peace"},{"value":"stop:bullets","description":"Stop bullets"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 28 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"permissions":[{"permission_name":"bring:peace","description":"Bring peace","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"},{"permission_name":"stop:bullets","description":"Stop bullets","resource_server_name":"Role - Acceptance Test - TestAccRole","resource_server_identifier":"https://TestAccRole.matrix.com/"}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/resource-servers/632da00717d703d775734d7b + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 30 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 69 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"The One - Acceptance Test - TestAccRole","description":" "} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":" "}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 31 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 213 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"permissions":[{"resource_server_identifier":"https://TestAccRole.matrix.com/","permission_name":"stop:bullets"},{"resource_server_identifier":"https://TestAccRole.matrix.com/","permission_name":"bring:peace"}]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":" "}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rol_E1hcU5HqIZP6NrP5","name":"The One - Acceptance Test - TestAccRole","description":" "}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 3 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_E1hcU5HqIZP6NrP5 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 duration: 1ms diff --git a/test/data/recordings/TestAccRule.yaml b/test/data/recordings/TestAccRule.yaml index 5358b8896..a47c0db85 100644 --- a/test/data/recordings/TestAccRule.yaml +++ b/test/data/recordings/TestAccRule.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 135 + content_length: 120 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"acceptance-test-TestAccRule","script":"function (user, context, callback) { callback(null, user, context); }","enabled":true} + {"name":"acceptance-test-TestAccRule","script":"function (user, context, callback) { callback(null, user, context); }"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 196 uncompressed: false - body: '{"id":"rul_1yQAfKAs8K06Yyuo","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_1yQAfKAs8K06Yyuo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rul_1yQAfKAs8K06Yyuo","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_1yQAfKAs8K06Yyuo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ method: GET response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"rul_1yQAfKAs8K06Yyuo","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' headers: Content-Type: - application/json; charset=utf-8 @@ -110,6 +110,294 @@ interactions: code: 200 duration: 1ms - id: 3 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 169 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"acceptance-test-TestAccRule","script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","order":1,"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/rules/rul_MZb3AutLa4QMC8iZ + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":true,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 160 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"acceptance-test-TestAccRule","script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","enabled":false} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":false,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":false,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"rul_MZb3AutLa4QMC8iZ","enabled":false,"script":"function (user, context, callback) { console.log(\"here!\"); callback(null, user, context); }","name":"acceptance-test-TestAccRule","order":1,"stage":"login_success"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 request: proto: HTTP/1.1 proto_major: 1 @@ -126,8 +414,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_1yQAfKAs8K06Yyuo + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules/rul_MZb3AutLa4QMC8iZ method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccRuleConfig.yaml b/test/data/recordings/TestAccRuleConfig.yaml index 6baf81db3..9b820cb63 100644 --- a/test/data/recordings/TestAccRuleConfig.yaml +++ b/test/data/recordings/TestAccRuleConfig.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs/acc_test_TestAccRuleConfig method: PUT response: @@ -55,7 +55,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -91,7 +91,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -127,7 +127,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -163,7 +163,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs/acc_test_TestAccRuleConfig method: PUT response: @@ -199,7 +199,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -235,7 +235,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -271,7 +271,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -306,7 +306,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs/acc_test_TestAccRuleConfig method: DELETE response: @@ -342,7 +342,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs/acc_test_key_TestAccRuleConfig method: PUT response: @@ -378,7 +378,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -389,7 +389,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_key_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_key_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -414,7 +414,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 method: GET response: @@ -425,7 +425,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '[{"key":"acc_test_key_TestAccRuleConfig"}]' + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_key_TestAccRuleConfig"}]' headers: Content-Type: - application/json; charset=utf-8 @@ -433,6 +433,150 @@ interactions: code: 200 duration: 1ms - id: 12 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_key_TestAccRuleConfig"}]' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 13 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"value":""} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs/acc_test_key_TestAccRuleConfig + method: PUT + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"key":"acc_test_key_TestAccRuleConfig","value":""}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_key_TestAccRuleConfig"}]' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '[{"key":"MY_RULES_CONFIG_KEY"},{"key":"MY_RULES_CONFIG_KEY_2"},{"key":"SLACK_HOOK_URL"},{"key":"the-key"},{"key":"acc_test_key_TestAccRuleConfig"}]' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 16 request: proto: HTTP/1.1 proto_major: 1 @@ -449,7 +593,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/rules-configs/acc_test_key_TestAccRuleConfig method: DELETE response: diff --git a/test/data/recordings/TestAccTenant.yaml b/test/data/recordings/TestAccTenant.yaml index 5ec5668c7..29aaf6a69 100644 --- a/test/data/recordings/TestAccTenant.yaml +++ b/test/data/recordings/TestAccTenant.yaml @@ -1,399 +1,543 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1103 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"change_password":{"enabled":true,"html":"\u003chtml\u003eChange Password\u003c/html\u003e"},"guardian_mfa_page":{"enabled":true,"html":"\u003chtml\u003eMFA\u003c/html\u003e"},"error_page":{"html":"\u003chtml\u003eError Page\u003c/html\u003e","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"universal_login":true,"disable_clickjack_protection_headers":true,"enable_public_signup_user_exists_error":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"disable_management_api_sms_obfuscation":false,"disable_fields_map_fix":false},"friendly_name":"My Test Tenant","picture_url":"https://mycompany.org/logo.png","support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"session_lifetime":720,"idle_session_lifetime":72,"sandbox_version":"12","default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"session_cookie":{"mode":"non-persistent"}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"},"is_custom_theme_set":false,"is_custom_template_set":false},"session_cookie":{"mode":"non-persistent"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 1067 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"change_password":{"enabled":true,"html":"\u003chtml\u003eChange Password\u003c/html\u003e"},"guardian_mfa_page":{"enabled":true,"html":"\u003chtml\u003eMFA\u003c/html\u003e"},"error_page":{"html":"\u003chtml\u003eError Page\u003c/html\u003e","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"universal_login":true,"disable_clickjack_protection_headers":false,"enable_public_signup_user_exists_error":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"disable_management_api_sms_obfuscation":true,"disable_fields_map_fix":true},"friendly_name":"My Test Tenant","picture_url":"https://mycompany.org/logo.png","support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"session_lifetime":720,"sandbox_version":"12","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"session_cookie":{"mode":"persistent"}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"},"is_custom_theme_set":false,"is_custom_template_set":false},"session_cookie":{"mode":"persistent"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 5 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 6 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 7 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 781 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"change_password":{"enabled":true,"html":"\u003chtml\u003eChange Password\u003c/html\u003e"},"guardian_mfa_page":{"enabled":true,"html":"\u003chtml\u003eMFA\u003c/html\u003e"},"error_page":{"html":"\u003chtml\u003eError Page\u003c/html\u003e","show_log_link":false,"url":"https://mycompany.org/error"},"friendly_name":"My Test Tenant","picture_url":"https://mycompany.org/logo.png","support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"session_lifetime":168,"sandbox_version":"12","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"session_cookie":{"mode":"persistent"}} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"},"is_custom_theme_set":false,"is_custom_template_set":false},"session_cookie":{"mode":"persistent"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 9 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 10 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{"enabled":true,"html":"Change Password"},"default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","url":"https://mycompany.org/error","show_log_link":false},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_apis_section":false,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":false,"enable_legacy_logs_search_v2":false,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":false},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 133 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"change_password":{},"guardian_mfa_page":{},"error_page":{},"universal_login":{},"session_lifetime":168,"idle_session_lifetime":72} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 1 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 989 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"change_password":{},"guardian_mfa_page":{},"default_audience":"","default_directory":"","error_page":{"html":"\u003chtml\u003eError Page\u003c/html\u003e","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"universal_login":true,"disable_clickjack_protection_headers":true,"enable_public_signup_user_exists_error":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"disable_management_api_sms_obfuscation":false,"disable_fields_map_fix":false},"friendly_name":"My Test Tenant","picture_url":"https://mycompany.org/logo.png","support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"session_lifetime":720,"sandbox_version":"12","default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"session_cookie":{"mode":"non-persistent"}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":["https://mycompany.org/logoutCallback"],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["en","de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":false,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":true,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":false,"disable_clickjack_protection_headers":true,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"non-persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 1052 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"change_password":{"enabled":true,"html":"\u003chtml\u003eChange Password\u003c/html\u003e"},"guardian_mfa_page":{"enabled":true,"html":"\u003chtml\u003eMFA\u003c/html\u003e"},"default_directory":"","error_page":{"html":"\u003chtml\u003eError Page\u003c/html\u003e","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"universal_login":true,"disable_clickjack_protection_headers":false,"enable_public_signup_user_exists_error":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"disable_management_api_sms_obfuscation":true,"disable_fields_map_fix":true},"friendly_name":"My Test Tenant","picture_url":"https://mycompany.org/logo.png","support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"allowed_logout_urls":[],"session_lifetime":720,"sandbox_version":"12","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"session_cookie":{"mode":"persistent"}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{"enabled":true,"html":"Change Password"},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{"enabled":true,"html":"Change Password"},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{"enabled":true,"html":"Change Password"},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{"enabled":true,"html":"Change Password"},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{"html":"Error Page","show_log_link":false,"url":"https://mycompany.org/error"},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{"enabled":true,"html":"MFA"},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":720,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{"colors":{"primary":"#0059d6","page_background":"#000000"}},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 106 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"change_password":{},"guardian_mfa_page":{},"error_page":{},"universal_login":{},"session_lifetime":168} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"cannot_change_enforce_client_authentication_on_passwordless_start":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"enforce_client_authentication_on_passwordless_start":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/tenants/settings + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"allowed_logout_urls":[],"change_password":{},"default_audience":"","default_directory":"","default_redirection_uri":"https://example.com/login","enabled_locales":["de","fr"],"error_page":{},"flags":{"allow_changing_enable_sso":false,"allow_legacy_delegation_grant_types":true,"allow_legacy_ro_grant_types":true,"allow_legacy_tokeninfo_endpoint":true,"change_pwd_flow_v1":false,"disable_impersonation":true,"disable_management_api_sms_obfuscation":true,"enable_adfs_waad_email_verification":true,"enable_apis_section":true,"enable_client_connections":true,"enable_custom_domain_in_emails":false,"enable_dynamic_client_registration":true,"enable_idtoken_api2":true,"enable_legacy_logs_search_v2":true,"enable_legacy_profile":true,"enable_public_signup_user_exists_error":true,"enable_sso":true,"new_universal_login_experience_enabled":true,"non_oidc_conformant_updated_at":true,"universal_login":true,"use_scope_descriptions_for_consent":false,"no_disclose_enterprise_connections":false,"revoke_refresh_token_grant":false,"dashboard_log_streams_next":true,"disable_fields_map_fix":true,"disable_clickjack_protection_headers":false,"enable_pipeline2":true},"friendly_name":"My Test Tenant","guardian_mfa_page":{},"idle_session_lifetime":72,"picture_url":"https://mycompany.org/logo.png","sandbox_version":"12","session_lifetime":168,"support_email":"support@mycompany.org","support_url":"https://mycompany.org/support","universal_login":{},"session_cookie":{"mode":"persistent"},"sandbox_versions_available":["16","12"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms diff --git a/test/data/recordings/TestAccTriggerBinding.yaml b/test/data/recordings/TestAccTriggerBinding.yaml index c9b2f7d69..794113a59 100644 --- a/test/data/recordings/TestAccTriggerBinding.yaml +++ b/test/data/recordings/TestAccTriggerBinding.yaml @@ -6,20 +6,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 216 + content_length: 247 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(\"foo\")\n};\"\n"} + {"name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"secrets":[]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 444 uncompressed: false - body: '{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.775545147Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"pending","secrets":[],"all_changes_deployed":false}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"pending","secrets":[],"all_changes_deployed":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.775545147Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77/deploy + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640/deploy method: POST response: proto: HTTP/2.0 @@ -102,7 +102,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":false,"number":1,"secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.026968137Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}],"action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","all_changes_deployed":false}}' + body: '{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":false,"number":1,"secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.870712257Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}],"action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","all_changes_deployed":false}}' headers: Content-Type: - application/json; charset=utf-8 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.775545147Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -150,20 +150,20 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 216 + content_length: 247 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(\"bar\")\n};\"\n"} + {"name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"code":"exports.onContinuePostLogin = async (event, api) =\u003e {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"secrets":[]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions method: POST response: @@ -172,9 +172,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 444 uncompressed: false - body: '{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.524397775Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"pending","secrets":[],"all_changes_deployed":false}' + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"pending","secrets":[],"all_changes_deployed":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -186,22 +186,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 5 + content_length: 155 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - null + {"bindings":[{"display_name":"Test Trigger Binding Foo TestAccTriggerBinding","ref":{"type":"action_id","value":"f4f6fd74-7107-48c8-b254-3f7055da2640"}}]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e - method: GET + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings + method: PATCH response: proto: HTTP/2.0 proto_major: 2 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.524397775Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' + body: '{"bindings":[{"id":"a96661a2-bb35-4eee-93a5-27fe2f16e36d","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:06.189456087Z","updated_at":"2022-09-22T20:33:06.189456087Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,9 +235,9 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e/deploy - method: POST + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -246,7 +246,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":false,"number":1,"secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.790723122Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}],"action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","all_changes_deployed":false}}' + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"all_changes_deployed":false}' headers: Content-Type: - application/json; charset=utf-8 @@ -271,8 +271,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 method: GET response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.524397775Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"bindings":[{"id":"a96661a2-bb35-4eee-93a5-27fe2f16e36d","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:06.189456087Z","updated_at":"2022-09-22T20:33:06.189456087Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":1,"per_page":50}' headers: Content-Type: - application/json; charset=utf-8 @@ -294,22 +294,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 295 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"bindings":[{"display_name":"Test Trigger Binding Foo TestAccTriggerBinding","ref":{"type":"action_id","value":"82037cb2-798b-4611-8b05-95005ececa77"}},{"display_name":"Test Trigger Binding Bar TestAccTriggerBinding","ref":{"type":"action_id","value":"06983eec-e3a8-48be-9fe8-c68da376476e"}}]} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0/deploy + method: POST response: proto: HTTP/2.0 proto_major: 2 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"bef9ee81-4fde-4d65-8f60-c3fec277b5e8","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.170444369Z","updated_at":"2022-08-30T09:06:50.170444369Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"8f95514b-706d-4cfa-9279-262d7441dd93","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.174961265Z","updated_at":"2022-08-30T09:06:50.174961265Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}]}' + body: '{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":false,"number":1,"secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.515724819Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}],"action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","all_changes_deployed":false}}' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 method: GET response: proto: HTTP/2.0 @@ -354,7 +354,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"bef9ee81-4fde-4d65-8f60-c3fec277b5e8","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.170444369Z","updated_at":"2022-08-30T09:06:50.170444369Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"8f95514b-706d-4cfa-9279-262d7441dd93","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.174961265Z","updated_at":"2022-08-30T09:06:50.174961265Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":2,"per_page":50}' + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.775545147Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 method: GET response: proto: HTTP/2.0 @@ -426,7 +426,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.524397775Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -451,7 +451,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 method: GET response: @@ -462,7 +462,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"bef9ee81-4fde-4d65-8f60-c3fec277b5e8","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.170444369Z","updated_at":"2022-08-30T09:06:50.170444369Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"8f95514b-706d-4cfa-9279-262d7441dd93","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.174961265Z","updated_at":"2022-08-30T09:06:50.174961265Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":2,"per_page":50}' + body: '{"bindings":[{"id":"a96661a2-bb35-4eee-93a5-27fe2f16e36d","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:06.189456087Z","updated_at":"2022-09-22T20:33:06.189456087Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":1,"per_page":50}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 method: GET response: proto: HTTP/2.0 @@ -498,7 +498,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.775545147Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -523,8 +523,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 method: GET response: proto: HTTP/2.0 @@ -534,7 +534,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.524397775Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -559,7 +559,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 method: GET response: @@ -570,7 +570,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"bef9ee81-4fde-4d65-8f60-c3fec277b5e8","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.170444369Z","updated_at":"2022-08-30T09:06:50.170444369Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"8f95514b-706d-4cfa-9279-262d7441dd93","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:50.174961265Z","updated_at":"2022-08-30T09:06:50.174961265Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":2,"per_page":50}' + body: '{"bindings":[{"id":"a96661a2-bb35-4eee-93a5-27fe2f16e36d","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:06.189456087Z","updated_at":"2022-09-22T20:33:06.189456087Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":1,"per_page":50}' headers: Content-Type: - application/json; charset=utf-8 @@ -589,13 +589,13 @@ interactions: remote_addr: "" request_uri: "" body: | - {"bindings":[{"display_name":"Test Trigger Binding Bar TestAccTriggerBinding","ref":{"type":"action_id","value":"06983eec-e3a8-48be-9fe8-c68da376476e"}},{"display_name":"Test Trigger Binding Foo TestAccTriggerBinding","ref":{"type":"action_id","value":"82037cb2-798b-4611-8b05-95005ececa77"}}]} + {"bindings":[{"display_name":"Test Trigger Binding Foo TestAccTriggerBinding","ref":{"type":"action_id","value":"f4f6fd74-7107-48c8-b254-3f7055da2640"}},{"display_name":"Test Trigger Binding Bar TestAccTriggerBinding","ref":{"type":"action_id","value":"2c6e6817-87f7-4657-9eac-3944259824b0"}}]} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings method: PATCH response: @@ -606,7 +606,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"37cbb790-d4ef-4fd5-95c9-63d2e41ccf1e","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:53.364592970Z","updated_at":"2022-08-30T09:06:53.364592970Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"9d1fcbd2-27f5-4386-a2d6-8d76890958ec","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:53.366068470Z","updated_at":"2022-08-30T09:06:53.366068470Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}]}' + body: '{"bindings":[{"id":"6b672695-3723-4aff-bd64-8e62bc9dca85","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.489629137Z","updated_at":"2022-09-22T20:33:08.489629137Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"4107d03a-fe43-4d71-92e1-6e1a63521bdf","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.492430780Z","updated_at":"2022-09-22T20:33:08.492430780Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}]}' headers: Content-Type: - application/json; charset=utf-8 @@ -631,7 +631,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 method: GET response: @@ -642,7 +642,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"37cbb790-d4ef-4fd5-95c9-63d2e41ccf1e","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:53.364592970Z","updated_at":"2022-08-30T09:06:53.364592970Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"9d1fcbd2-27f5-4386-a2d6-8d76890958ec","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:53.366068470Z","updated_at":"2022-08-30T09:06:53.366068470Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":2,"per_page":50}' + body: '{"bindings":[{"id":"6b672695-3723-4aff-bd64-8e62bc9dca85","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.489629137Z","updated_at":"2022-09-22T20:33:08.489629137Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"4107d03a-fe43-4d71-92e1-6e1a63521bdf","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.492430780Z","updated_at":"2022-09-22T20:33:08.492430780Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":2,"per_page":50}' headers: Content-Type: - application/json; charset=utf-8 @@ -667,8 +667,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 method: GET response: proto: HTTP/2.0 @@ -678,7 +678,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.775545147Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -703,8 +703,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 method: GET response: proto: HTTP/2.0 @@ -714,7 +714,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.524397775Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -739,7 +739,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 method: GET response: @@ -750,7 +750,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[{"id":"37cbb790-d4ef-4fd5-95c9-63d2e41ccf1e","trigger_id":"post-login","action":{"id":"06983eec-e3a8-48be-9fe8-c68da376476e","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:49.503083196Z","updated_at":"2022-08-30T09:06:49.503083196Z","current_version":{"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.881286876Z","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"c4744fed-9c0d-423e-9e89-c7c7ba06f7db","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.881286876Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.790723122Z","updated_at":"2022-08-30T09:06:49.881557925Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:53.364592970Z","updated_at":"2022-08-30T09:06:53.364592970Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"9d1fcbd2-27f5-4386-a2d6-8d76890958ec","trigger_id":"post-login","action":{"id":"82037cb2-798b-4611-8b05-95005ececa77","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-08-30T09:06:48.760439017Z","updated_at":"2022-08-30T09:06:48.760439017Z","current_version":{"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-08-30T09:06:49.154987512Z","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"4a19f44a-07a5-40bf-a740-b7ac0b9653a2","deployed":true,"number":1,"built_at":"2022-08-30T09:06:49.154987512Z","secrets":[],"status":"built","created_at":"2022-08-30T09:06:49.026968137Z","updated_at":"2022-08-30T09:06:49.156684192Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-08-30T09:06:53.366068470Z","updated_at":"2022-08-30T09:06:53.366068470Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":2,"per_page":50}' + body: '{"bindings":[{"id":"6b672695-3723-4aff-bd64-8e62bc9dca85","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.489629137Z","updated_at":"2022-09-22T20:33:08.489629137Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"4107d03a-fe43-4d71-92e1-6e1a63521bdf","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.492430780Z","updated_at":"2022-09-22T20:33:08.492430780Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":2,"per_page":50}' headers: Content-Type: - application/json; charset=utf-8 @@ -762,22 +762,22 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 16 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"bindings":[]} + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings - method: PATCH + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 + method: GET response: proto: HTTP/2.0 proto_major: 2 @@ -786,7 +786,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"bindings":[]}' + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 @@ -798,37 +798,613 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 5 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: "" + body: | + null form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/06983eec-e3a8-48be-9fe8-c68da376476e - method: DELETE + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 + method: GET response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: 0 - uncompressed: false - body: "" + content_length: -1 + uncompressed: true + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 + status: 200 OK + code: 200 duration: 1ms - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"6b672695-3723-4aff-bd64-8e62bc9dca85","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.489629137Z","updated_at":"2022-09-22T20:33:08.489629137Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"},{"id":"4107d03a-fe43-4d71-92e1-6e1a63521bdf","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:08.492430780Z","updated_at":"2022-09-22T20:33:08.492430780Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":2,"per_page":50}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 295 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"bindings":[{"display_name":"Test Trigger Binding Bar TestAccTriggerBinding","ref":{"type":"action_id","value":"2c6e6817-87f7-4657-9eac-3944259824b0"}},{"display_name":"Test Trigger Binding Foo TestAccTriggerBinding","ref":{"type":"action_id","value":"f4f6fd74-7107-48c8-b254-3f7055da2640"}}]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"1ded6293-6e8a-4b19-88b0-7477de26b9c3","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.810810077Z","updated_at":"2022-09-22T20:33:10.810810077Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"d0a67720-b6d3-455d-9a28-0a2eaaee8420","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.813301629Z","updated_at":"2022-09-22T20:33:10.813301629Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 25 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"1ded6293-6e8a-4b19-88b0-7477de26b9c3","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.810810077Z","updated_at":"2022-09-22T20:33:10.810810077Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"d0a67720-b6d3-455d-9a28-0a2eaaee8420","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.813301629Z","updated_at":"2022-09-22T20:33:10.813301629Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":2,"per_page":50}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 26 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 27 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 28 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"1ded6293-6e8a-4b19-88b0-7477de26b9c3","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.810810077Z","updated_at":"2022-09-22T20:33:10.810810077Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"d0a67720-b6d3-455d-9a28-0a2eaaee8420","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.813301629Z","updated_at":"2022-09-22T20:33:10.813301629Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":2,"per_page":50}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 29 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 30 + 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"1ded6293-6e8a-4b19-88b0-7477de26b9c3","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.810810077Z","updated_at":"2022-09-22T20:33:10.810810077Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"},{"id":"d0a67720-b6d3-455d-9a28-0a2eaaee8420","trigger_id":"post-login","action":{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.653193398Z","current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:10.813301629Z","updated_at":"2022-09-22T20:33:10.813301629Z","display_name":"Test Trigger Binding Foo TestAccTriggerBinding"}],"total":2,"per_page":50}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 32 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 155 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"bindings":[{"display_name":"Test Trigger Binding Bar TestAccTriggerBinding","ref":{"type":"action_id","value":"2c6e6817-87f7-4657-9eac-3944259824b0"}}]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"d5958afa-a977-47e3-9a59-b22425fcdb1a","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:13.025649306Z","updated_at":"2022-09-22T20:33:13.025649306Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"d5958afa-a977-47e3-9a59-b22425fcdb1a","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:13.025649306Z","updated_at":"2022-09-22T20:33:13.025649306Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":1,"per_page":50}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"f4f6fd74-7107-48c8-b254-3f7055da2640","name":"Test Trigger Binding Foo TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:05.653193398Z","updated_at":"2022-09-22T20:33:05.670045746Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:05.929287136Z","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"foo\")\n};\"\n","dependencies":[],"id":"9ffa4d7b-74c7-4f34-a15a-5c1d26eb8607","deployed":true,"number":1,"built_at":"2022-09-22T20:33:05.929287136Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:05.870712257Z","updated_at":"2022-09-22T20:33:05.929661854Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.199449989Z","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"runtime":"node16","status":"built","secrets":[],"current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":true}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings?per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: -1 + uncompressed: true + body: '{"bindings":[{"id":"d5958afa-a977-47e3-9a59-b22425fcdb1a","trigger_id":"post-login","action":{"id":"2c6e6817-87f7-4657-9eac-3944259824b0","name":"Test Trigger Binding Bar TestAccTriggerBinding","supported_triggers":[{"id":"post-login","version":"v2"}],"created_at":"2022-09-22T20:33:06.188224086Z","updated_at":"2022-09-22T20:33:06.188224086Z","current_version":{"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","runtime":"node16","status":"BUILT","number":1,"build_time":"2022-09-22T20:33:06.564347318Z","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z"},"deployed_version":{"code":"exports.onContinuePostLogin = async (event, api) => {\n\tconsole.log(\"bar\")\n};\"\n","dependencies":[],"id":"cd4f4981-2f34-4988-b50c-29801b4b3e6f","deployed":true,"number":1,"built_at":"2022-09-22T20:33:06.564347318Z","secrets":[],"status":"built","created_at":"2022-09-22T20:33:06.515724819Z","updated_at":"2022-09-22T20:33:06.564768711Z","runtime":"node16","supported_triggers":[{"id":"post-login","version":"v2"}]},"all_changes_deployed":false},"created_at":"2022-09-22T20:33:13.025649306Z","updated_at":"2022-09-22T20:33:13.025649306Z","display_name":"Test Trigger Binding Bar TestAccTriggerBinding"}],"total":1,"per_page":50}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 16 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"bindings":[]} + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/triggers/post-login/bindings + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 15 + uncompressed: false + body: '{"bindings":[]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [ ] + trailer: { } + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: { } + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/2c6e6817-87f7-4657-9eac-3944259824b0 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [ ] + trailer: { } + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - id: 39 request: proto: HTTP/1.1 proto_major: 1 @@ -845,8 +1421,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/82037cb2-798b-4611-8b05-95005ececa77 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/actions/actions/f4f6fd74-7107-48c8-b254-3f7055da2640 method: DELETE response: proto: HTTP/2.0 diff --git a/test/data/recordings/TestAccUser.yaml b/test/data/recordings/TestAccUser.yaml index 06634b975..83c09a8ce 100644 --- a/test/data/recordings/TestAccUser.yaml +++ b/test/data/recordings/TestAccUser.yaml @@ -1,2198 +1,2306 @@ --- version: 2 interactions: - - id: 0 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 320 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"user_id":"testaccuser","connection":"Username-Password-Authentication","email":"testaccuser@acceptance.test.com","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","username":"testaccuser","nickname":"testaccuser","password":"passpass$12$12","picture":"https://www.example.com/picture.jpg"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:06:57.112Z","user_id":"auth0|testaccuser","username":"testaccuser"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms - - id: 1 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:06:57.112Z","user_id":"auth0|testaccuser","username":"testaccuser"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 2 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 3 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:06:57.112Z","user_id":"auth0|testaccuser","username":"testaccuser"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 4 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - id: 5 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 6 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:06:57.112Z","user_id":"auth0|testaccuser","username":"testaccuser"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 7 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 39 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"owner","description":"Owner"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 9 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 10 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 11 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 47 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"name":"admin","description":"Administrator"} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 12 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 13 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 14 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 300 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"},"picture":"https://www.example.com/picture.jpg","blocked":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:07.000Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 15 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 58 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"roles":["rol_zTYC4gj7pXllJu6d","rol_NdxwI9AUL4GpviZ4"]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms - - id: 16 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:07.000Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 17 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"},{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}],"start":0,"limit":50,"total":2}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 18 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:07.000Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"},{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}],"start":0,"limit":50,"total":2}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 25 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - id: 26 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - id: 27 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 28 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 29 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 30 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:07.000Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"},{"id":"rol_zTYC4gj7pXllJu6d","name":"owner","description":"Owner"}],"start":0,"limit":50,"total":2}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 32 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 3 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_zTYC4gj7pXllJu6d - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 33 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 300 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{"baz":null,"foo":"bars"},"app_metadata":{"baz":null,"foo":"bars"},"picture":"https://www.example.com/picture.jpg","blocked":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:17.749Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 34 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 35 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"roles":["rol_zTYC4gj7pXllJu6d"]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"statusCode":404,"error":"Not Found","message":"The role does not exist."}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 404 Not Found - code: 404 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:17.749Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}],"start":0,"limit":50,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 37 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 38 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 39 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:17.749Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 40 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}],"start":0,"limit":50,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 41 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:17.749Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 42 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 43 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[{"id":"rol_NdxwI9AUL4GpviZ4","name":"admin","description":"Administrator"}],"start":0,"limit":50,"total":1}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 44 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4/permissions?include_totals=true&page=0&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"permissions":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 45 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 3 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_NdxwI9AUL4GpviZ4 - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 46 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 308 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"},"picture":"https://www.example.com/picture.jpg","blocked":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:21.216Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 47 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 35 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"roles":["rol_NdxwI9AUL4GpviZ4"]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: false - body: '{"statusCode":429,"error":"Too Many Requests","message":"Global limit has been reached","errorCode":"too_many_requests"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 429 Too Many Requests - code: 429 - duration: 1ms - - id: 48 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 35 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"roles":["rol_NdxwI9AUL4GpviZ4"]} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"statusCode":404,"error":"Not Found","message":"The role does not exist."}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 404 Not Found - code: 404 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:21.216Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 51 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:21.216Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 52 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 53 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:21.216Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 54 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 55 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 254 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{},"app_metadata":{},"picture":"https://www.example.com/picture.jpg","blocked":false} - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:30.126Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 56 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:30.126Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 57 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 58 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"created_at":"2022-08-30T09:06:57.112Z","email":"testaccuser@acceptance.test.com","email_verified":false,"family_name":"Lastname","given_name":"Firstname","identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-08-30T09:07:30.126Z","user_id":"auth0|testaccuser","username":"testaccuser","blocked":false,"user_metadata":{}}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 59 - 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.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 - method: GET - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: -1 - uncompressed: true - body: '{"roles":[],"start":0,"limit":50,"total":0}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms - - id: 60 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 0 - transfer_encoding: [ ] - trailer: { } - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: "" - form: { } - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser - method: DELETE - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [ ] - trailer: { } - content_length: 0 - uncompressed: false - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 169 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"user_id":"testaccuser","connection":"Username-Password-Authentication","email":"testaccuser@acceptance.test.com","username":"testaccuser","password":"passpass$12$12"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 527 + uncompressed: false + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuser@acceptance.test.com","nickname":"testaccuser","picture":"https://s.gravatar.com/avatar/324ad113b0ef6dabbb2c2c4cf8a8d108?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2022-10-07T14:43:27.699Z","user_id":"auth0|testaccuser","username":"testaccuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - id: 1 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuser@acceptance.test.com","nickname":"testaccuser","picture":"https://s.gravatar.com/avatar/324ad113b0ef6dabbb2c2c4cf8a8d108?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2022-10-07T14:43:27.699Z","user_id":"auth0|testaccuser","username":"testaccuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 2 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 3 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuser@acceptance.test.com","nickname":"testaccuser","picture":"https://s.gravatar.com/avatar/324ad113b0ef6dabbb2c2c4cf8a8d108?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2022-10-07T14:43:27.699Z","user_id":"auth0|testaccuser","username":"testaccuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 4 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 5 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"testaccuser@acceptance.test.com","nickname":"testaccuser","picture":"https://s.gravatar.com/avatar/324ad113b0ef6dabbb2c2c4cf8a8d108?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png","updated_at":"2022-10-07T14:43:27.699Z","user_id":"auth0|testaccuser","username":"testaccuser"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 6 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 201 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:30.201Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 8 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:30.201Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 9 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 10 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:30.201Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 11 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 12 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:30.201Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 13 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 39 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"owner","description":"Owner"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 15 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 16 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 47 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"admin","description":"Administrator"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 18 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 284 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"},"picture":"https://www.example.com/picture.jpg"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:33.494Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 58 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"roles":["rol_glzBftX5hzVQN6xe","rol_an34l1Q99lYHBdfL"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:33.494Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"},{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 25 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 26 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 27 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 28 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:33.494Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 29 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"},{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 30 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:33.494Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"baz":"qux","foo":"bar"},"app_metadata":{"baz":"qux","foo":"bar"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"},{"id":"rol_an34l1Q99lYHBdfL","name":"owner","description":"Owner"}],"start":0,"limit":50,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 36 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 3 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_an34l1Q99lYHBdfL + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 37 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 284 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{"baz":null,"foo":"bars"},"app_metadata":{"baz":null,"foo":"bars"},"picture":"https://www.example.com/picture.jpg"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:36.994Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 38 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 35 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"roles":["rol_an34l1Q99lYHBdfL"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"statusCode":404,"error":"Not Found","message":"The role does not exist."}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 404 Not Found + code: 404 + duration: 1ms + - id: 39 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:36.994Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 40 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 41 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 42 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 43 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:36.994Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 44 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 45 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:36.994Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"bars"},"app_metadata":{"foo":"bars"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}],"start":0,"limit":50,"total":1}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"rol_glzBftX5hzVQN6xe","name":"admin","description":"Administrator"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe/permissions?include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"permissions":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 49 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 3 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/roles/rol_glzBftX5hzVQN6xe + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 2 + uncompressed: false + body: '{}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 50 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 292 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"},"picture":"https://www.example.com/picture.jpg"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:39.737Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 51 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 35 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"roles":["rol_glzBftX5hzVQN6xe"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"statusCode":404,"error":"Not Found","message":"The role does not exist."}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 404 Not Found + code: 404 + duration: 1ms + - id: 52 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:39.737Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 53 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 54 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:39.737Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 55 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 56 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:39.737Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{"foo":"barss","foo2":"bar2"},"app_metadata":{"foo":"barss","foo2":"bar2"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 57 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 58 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 238 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"connection":"Username-Password-Authentication","name":"Firstname Lastname","given_name":"Firstname","family_name":"Lastname","nickname":"testaccuser","user_metadata":{},"app_metadata":{},"picture":"https://www.example.com/picture.jpg"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:41.957Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 59 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:41.957Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 60 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 61 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"created_at":"2022-10-07T14:43:27.699Z","email":"testaccuser@acceptance.test.com","email_verified":false,"identities":[{"user_id":"testaccuser","connection":"Username-Password-Authentication","provider":"auth0","isSocial":false}],"name":"Firstname Lastname","nickname":"testaccuser","picture":"https://www.example.com/picture.jpg","updated_at":"2022-10-07T14:43:41.957Z","user_id":"auth0|testaccuser","username":"testaccuser","family_name":"Lastname","given_name":"Firstname","user_metadata":{}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 62 + 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.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser/roles?include_totals=true&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"roles":[],"start":0,"limit":50,"total":0}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - id: 63 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.11.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7Ctestaccuser + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms diff --git a/test/data/recordings/TestAccUserChangeUsername.yaml b/test/data/recordings/TestAccUserChangeUsername.yaml index d60eb52ab..797f5831b 100644 --- a/test/data/recordings/TestAccUserChangeUsername.yaml +++ b/test/data/recordings/TestAccUserChangeUsername.yaml @@ -19,7 +19,7 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 + - Go-Auth0-SDK/latest url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users method: POST response: @@ -28,9 +28,9 @@ interactions: proto_minor: 0 transfer_encoding: [ ] trailer: { } - content_length: -1 + content_length: 581 uncompressed: false - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:33.134Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_terra"}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:44.576Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -55,8 +55,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: GET response: proto: HTTP/2.0 @@ -66,7 +66,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:33.134Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_terra"}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:44.576Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -91,8 +91,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6/roles?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b/roles?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -127,8 +127,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: GET response: proto: HTTP/2.0 @@ -138,7 +138,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:33.134Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_terra"}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:44.576Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -163,8 +163,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6/roles?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b/roles?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -199,8 +199,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: GET response: proto: HTTP/2.0 @@ -210,7 +210,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:33.134Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_terra"}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:44.576Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -235,8 +235,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6/roles?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b/roles?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -258,21 +258,21 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 323 + content_length: 76 transfer_encoding: [ ] trailer: { } host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" body: | - {"connection":"Username-Password-Authentication","name":"change.username.terra@acceptance.test.com","username":"user_x_terra","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480\u0026r=pg\u0026d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","blocked":false} + {"connection":"Username-Password-Authentication","username":"user_x_terra"} form: { } headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: PATCH response: proto: HTTP/2.0 @@ -282,7 +282,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:35.841Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_x_terra","blocked":false}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:48.225Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_x_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -307,8 +307,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: GET response: proto: HTTP/2.0 @@ -318,7 +318,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:35.841Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_x_terra","blocked":false}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:48.225Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_x_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -343,8 +343,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6/roles?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b/roles?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -379,8 +379,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: GET response: proto: HTTP/2.0 @@ -390,7 +390,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:35.841Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_x_terra","blocked":false}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:48.225Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_x_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -415,8 +415,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6/roles?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b/roles?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -451,8 +451,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: GET response: proto: HTTP/2.0 @@ -462,7 +462,7 @@ interactions: trailer: { } content_length: -1 uncompressed: true - body: '{"created_at":"2022-08-30T09:07:33.134Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"630dd355378e5df24e1a67f6","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-08-30T09:07:35.841Z","user_id":"auth0|630dd355378e5df24e1a67f6","username":"user_x_terra","blocked":false}' + body: '{"created_at":"2022-10-06T15:17:44.576Z","email":"change.username.terra@acceptance.test.com","email_verified":true,"identities":[{"connection":"Username-Password-Authentication","user_id":"633ef198346bf410b8475d3b","provider":"auth0","isSocial":false}],"name":"change.username.terra@acceptance.test.com","nickname":"change.username.terra","picture":"https://s.gravatar.com/avatar/62acb990858a2c9075eb1d3beb6f5baa?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fch.png","updated_at":"2022-10-06T15:17:48.225Z","user_id":"auth0|633ef198346bf410b8475d3b","username":"user_x_terra"}' headers: Content-Type: - application/json; charset=utf-8 @@ -487,8 +487,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6/roles?include_totals=true&per_page=50 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b/roles?include_totals=true&per_page=50 method: GET response: proto: HTTP/2.0 @@ -522,8 +522,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.10.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C630dd355378e5df24e1a67f6 + - Go-Auth0-SDK/latest + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/users/auth0%7C633ef198346bf410b8475d3b method: DELETE response: proto: HTTP/2.0