diff --git a/auth0/resource_auth0_organization.go b/auth0/resource_auth0_organization.go index a707806a5..b2d48026c 100644 --- a/auth0/resource_auth0_organization.go +++ b/auth0/resource_auth0_organization.go @@ -3,15 +3,12 @@ package auth0 import ( "context" "fmt" - "log" "net/http" "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/auth0/internal/hash" ) func newOrganization() *schema.Resource { @@ -39,7 +36,6 @@ func newOrganization() *schema.Resource { Optional: true, Computed: true, MaxItems: 1, - MinItems: 1, Description: "Defines how to style the login pages", Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ @@ -64,7 +60,6 @@ func newOrganization() *schema.Resource { "connections": { Type: schema.TypeSet, Optional: true, - Computed: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "connection_id": { @@ -74,17 +69,18 @@ func newOrganization() *schema.Resource { "assign_membership_on_login": { Type: schema.TypeBool, Optional: true, + Default: false, }, }, }, - Set: hash.StringKey("connection_id"), }, }, } } func createOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - organization := buildOrganization(d) + organization := expandOrganization(d) + api := m.(*management.Management) if err := api.Organization.Create(organization); err != nil { return diag.FromErr(err) @@ -92,65 +88,13 @@ func createOrganization(ctx context.Context, d *schema.ResourceData, m interface d.SetId(organization.GetID()) - d.Partial(true) - if err := assignOrganizationConnections(d, m); err != nil { - return diag.FromErr(fmt.Errorf("failed assigning organization connections. %w", err)) + if err := updateOrganizationConnections(d, api); err != nil { + return diag.FromErr(fmt.Errorf("failed to update organization connections: %w", err)) } - d.Partial(false) return readOrganization(ctx, d, m) } -func assignOrganizationConnections(d *schema.ResourceData, m interface{}) (err error) { - api := m.(*management.Management) - - add, rm := Diff(d, "connections") - - add.Elem(func(data ResourceData) { - organizationConnection := &management.OrganizationConnection{ - ConnectionID: String(data, "connection_id"), - AssignMembershipOnLogin: Bool(data, "assign_membership_on_login"), - } - - log.Printf("[DEBUG] (+) auth0_organization.%s.connections.%s", d.Id(), organizationConnection.GetConnectionID()) - - err = api.Organization.AddConnection(d.Id(), organizationConnection) - if err != nil { - return - } - }) - - rm.Elem(func(data ResourceData) { - // Take connectionID before it changed (i.e. removed). - // Therefore we use GetChange() instead of the typical Get(). - connectionID, _ := data.GetChange("connection_id") - - log.Printf("[DEBUG] (-) auth0_organization.%s.connections.%s", d.Id(), connectionID.(string)) - - err = api.Organization.DeleteConnection(d.Id(), connectionID.(string)) - if err != nil { - return - } - }) - - // Update existing connections if any mutable properties have changed. - Set(d, "connections", HasChange()).Elem(func(data ResourceData) { - connectionID := data.Get("connection_id").(string) - organizationConnection := &management.OrganizationConnection{ - AssignMembershipOnLogin: Bool(data, "assign_membership_on_login"), - } - - log.Printf("[DEBUG] (~) auth0_organization.%s.connections.%s", d.Id(), connectionID) - - err = api.Organization.UpdateConnection(d.Id(), connectionID, organizationConnection) - if err != nil { - return - } - }) - - return nil -} - func readOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { api := m.(*management.Management) organization, err := api.Organization.Read(d.Id()) @@ -181,17 +125,16 @@ func readOrganization(ctx context.Context, d *schema.ResourceData, m interface{} } func updateOrganization(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - organization := buildOrganization(d) + organization := expandOrganization(d) + api := m.(*management.Management) if err := api.Organization.Update(d.Id(), organization); err != nil { return diag.FromErr(err) } - d.Partial(true) - if err := assignOrganizationConnections(d, m); err != nil { - return diag.FromErr(fmt.Errorf("failed updating organization connections. %w", err)) + if err := updateOrganizationConnections(d, api); err != nil { + return diag.FromErr(fmt.Errorf("failed to update organization connections: %w", err)) } - d.Partial(false) return readOrganization(ctx, d, m) } @@ -210,7 +153,53 @@ func deleteOrganization(ctx context.Context, d *schema.ResourceData, m interface return nil } -func buildOrganization(d *schema.ResourceData) *management.Organization { +func updateOrganizationConnections(d *schema.ResourceData, api *management.Management) error { + toAdd, toRemove := Diff(d, "connections") + + var err error + toRemove.Elem(func(data ResourceData) { + oldConnectionID, _ := data.GetChange("connection_id") + + err = api.Organization.DeleteConnection(d.Id(), oldConnectionID.(string)) + if err != nil { + return + } + }) + if err != nil { + return err + } + + toAdd.Elem(func(data ResourceData) { + organizationConnection := &management.OrganizationConnection{ + ConnectionID: String(data, "connection_id"), + AssignMembershipOnLogin: Bool(data, "assign_membership_on_login"), + } + + err = api.Organization.AddConnection(d.Id(), organizationConnection) + if err != nil { + return + } + }) + if err != nil { + return err + } + + 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 { organization := &management.Organization{ Name: String(d, "name"), DisplayName: String(d, "display_name"), @@ -231,24 +220,25 @@ func flattenOrganizationBranding(organizationBranding *management.OrganizationBr if organizationBranding == nil { return nil } + return []interface{}{ map[string]interface{}{ - "logo_url": organizationBranding.LogoURL, + "logo_url": organizationBranding.GetLogoURL(), "colors": organizationBranding.Colors, }, } } -func flattenOrganizationConnections(organizationConnectionList *management.OrganizationConnectionList) []interface{} { - if organizationConnectionList == nil { +func flattenOrganizationConnections(connectionList *management.OrganizationConnectionList) []interface{} { + if connectionList == nil { return nil } - connections := make([]interface{}, len(organizationConnectionList.OrganizationConnections)) - for index, connection := range organizationConnectionList.OrganizationConnections { + connections := make([]interface{}, len(connectionList.OrganizationConnections)) + for index, connection := range connectionList.OrganizationConnections { connections[index] = map[string]interface{}{ - "connection_id": connection.ConnectionID, - "assign_membership_on_login": connection.AssignMembershipOnLogin, + "connection_id": connection.GetConnectionID(), + "assign_membership_on_login": connection.GetAssignMembershipOnLogin(), } } diff --git a/auth0/resource_auth0_organization_test.go b/auth0/resource_auth0_organization_test.go index a936424e9..6ed9bf997 100644 --- a/auth0/resource_auth0_organization_test.go +++ b/auth0/resource_auth0_organization_test.go @@ -53,46 +53,7 @@ func init() { }) } -func TestAccOrganization(t *testing.T) { - httpRecorder := configureHTTPRecorder(t) - - resource.Test(t, resource.TestCase{ - ProviderFactories: testProviders(httpRecorder), - Steps: []resource.TestStep{ - { - Config: template.ParseTestName(testAccOrganizationCreate, 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", "connections.#", "1"), - ), - }, - { - Config: template.ParseTestName(testAccOrganizationUpdate, 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.#", "1"), - resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.logo_url", "https://acme.com/logo.svg"), - resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.%", "2"), - 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", "connections.#", "2"), - ), - }, - { - Config: template.ParseTestName(testAccOrganizationUpdateAgain, 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", "connections.#", "1"), - ), - }, - }, - }) -} - -const testAccOrganizationAux = ` +const testAccOrganizationGiven2Connections = ` resource auth0_connection acme { name = "Acceptance-Test-Connection-Acme-{{.testName}}" strategy = "auth0" @@ -105,7 +66,7 @@ resource auth0_connection acmeinc { } ` -const testAccOrganizationCreate = testAccOrganizationAux + ` +const testAccOrganizationCreate = testAccOrganizationGiven2Connections + ` resource auth0_organization acme { name = "test-{{.testName}}" display_name = "Acme Inc. {{.testName}}" @@ -116,7 +77,7 @@ resource auth0_organization acme { } ` -const testAccOrganizationUpdate = testAccOrganizationAux + ` +const testAccOrganizationUpdate = testAccOrganizationGiven2Connections + ` resource auth0_organization acme { name = "test-{{.testName}}" display_name = "Acme Inc. {{.testName}}" @@ -129,6 +90,7 @@ resource auth0_organization acme { } connections { connection_id = auth0_connection.acme.id + assign_membership_on_login = false } connections { connection_id = auth0_connection.acmeinc.id @@ -137,10 +99,11 @@ resource auth0_organization acme { } ` -const testAccOrganizationUpdateAgain = testAccOrganizationAux + ` +const testAccOrganizationUpdateAgain = testAccOrganizationGiven2Connections + ` resource auth0_organization acme { name = "test-{{.testName}}" display_name = "Acme Inc. {{.testName}}" + branding { logo_url = "https://acme.com/logo.svg" colors = { @@ -148,9 +111,102 @@ resource auth0_organization acme { page_background = "#e3e2ff" } } + connections { connection_id = auth0_connection.acmeinc.id assign_membership_on_login = false } } ` + +const testAccOrganizationUpdateAgainAndAgain = testAccOrganizationGiven2Connections + ` +resource auth0_organization acme { + name = "test-{{.testName}}" + display_name = "Acme Inc. {{.testName}}" + + branding { + logo_url = "https://acme.com/logo.svg" + colors = { + primary = "#e3e2f0" + page_background = "#e3e2ff" + } + } + + connections { + connection_id = auth0_connection.acmeinc.id + assign_membership_on_login = true + } +} +` + +func TestAccOrganization(t *testing.T) { + httpRecorder := configureHTTPRecorder(t) + + resource.Test(t, resource.TestCase{ + ProviderFactories: testProviders(httpRecorder), + Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccOrganizationCreate, 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"), + 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"), + ), + }, + { + Config: template.ParseTestName(testAccOrganizationUpdate, 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.#", "1"), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.logo_url", "https://acme.com/logo.svg"), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.%", "2"), + 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.%", "0"), + 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"), + ), + }, + { + Config: template.ParseTestName(testAccOrganizationUpdateAgain, 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.#", "1"), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.logo_url", "https://acme.com/logo.svg"), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.%", "2"), + 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.%", "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"), + ), + }, + { + Config: template.ParseTestName(testAccOrganizationUpdateAgainAndAgain, 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.#", "1"), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.logo_url", "https://acme.com/logo.svg"), + resource.TestCheckResourceAttr("auth0_organization.acme", "branding.0.colors.%", "2"), + 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.%", "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", "true"), + ), + }, + }, + }) +} diff --git a/auth0/testdata/recordings/TestAccOrganization.yaml b/auth0/testdata/recordings/TestAccOrganization.yaml index 63f2f8624..1c954ec58 100644 --- a/auth0/testdata/recordings/TestAccOrganization.yaml +++ b/auth0/testdata/recordings/TestAccOrganization.yaml @@ -9,11 +9,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 + - Go-Auth0-SDK/0.9.0 url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -28,11 +28,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: GET response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -41,17 +41,17 @@ interactions: duration: 1ms - request: body: | - {"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"} + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations method: POST response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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: '{"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","id":"org_389JHWR8NsiAsqQF"}' headers: Content-Type: - application/json; charset=utf-8 @@ -60,17 +60,17 @@ interactions: duration: 1ms - request: body: | - {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"} + {"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections method: POST response: - body: '{"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","id":"org_ikcTP9dQvzZvRUWz"}' + body: '{"id":"con_QlEFIhdBmYf3UBFQ","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 @@ -79,41 +79,41 @@ interactions: duration: 1ms - request: body: | - {"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false} + null form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections - method: POST + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ + method: GET response: - body: '{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + body: '{"id":"con_QlEFIhdBmYf3UBFQ","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 - request: body: | - null + {"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh - method: GET + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections + method: POST response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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: '{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 + status: 201 Created + code: 201 duration: 1ms - request: body: | @@ -123,11 +123,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_aI2y94tFoS5GHsLw method: PATCH response: - body: '{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + body: '{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -142,11 +142,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: @@ -162,11 +162,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"enabled_connections":[{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' headers: Content-Type: - application/json; charset=utf-8 @@ -181,11 +181,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: GET response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -200,11 +200,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: @@ -220,11 +220,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ method: GET response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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_QlEFIhdBmYf3UBFQ","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 @@ -239,11 +239,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"enabled_connections":[{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' headers: Content-Type: - application/json; charset=utf-8 @@ -258,11 +258,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: GET response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -277,11 +277,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ method: GET response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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_QlEFIhdBmYf3UBFQ","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 @@ -296,11 +296,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization"}' headers: Content-Type: @@ -316,11 +316,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"enabled_connections":[{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' headers: Content-Type: - application/json; charset=utf-8 @@ -335,11 +335,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: PATCH response: - body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_ikcTP9dQvzZvRUWz","display_name":"Acme + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_389JHWR8NsiAsqQF","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization"}' headers: Content-Type: @@ -349,23 +349,42 @@ interactions: duration: 1ms - request: body: | - {"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":true} + {"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections method: POST response: - body: '{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + body: '{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 duration: 1ms +- request: + body: | + {"assign_membership_on_login":false} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_aI2y94tFoS5GHsLw + method: PATCH + response: + body: '{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms - request: body: | {"assign_membership_on_login":true} @@ -374,17 +393,285 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_QlEFIhdBmYf3UBFQ + method: PATCH + response: + body: '{"connection_id":"con_QlEFIhdBmYf3UBFQ","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF + method: GET + response: + body: '{"id":"org_389JHWR8NsiAsqQF","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 + method: GET + response: + body: '{"enabled_connections":[{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}},{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw + method: GET + response: + body: '{"id":"con_aI2y94tFoS5GHsLw","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ + method: GET + response: + body: '{"id":"con_QlEFIhdBmYf3UBFQ","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF + method: GET + response: + body: '{"id":"org_389JHWR8NsiAsqQF","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 + method: GET + response: + body: '{"enabled_connections":[{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}},{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw + method: GET + response: + body: '{"id":"con_aI2y94tFoS5GHsLw","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ + method: GET + response: + body: '{"id":"con_QlEFIhdBmYf3UBFQ","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF + method: GET + response: + body: '{"id":"org_389JHWR8NsiAsqQF","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 +- request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 + method: GET + response: + body: '{"enabled_connections":[{"connection_id":"con_aI2y94tFoS5GHsLw","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}},{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms +- request: + body: | + {"name":"test-testaccorganization","display_name":"Acme Inc. testaccorganization","branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}}} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: PATCH response: - body: '{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_389JHWR8NsiAsqQF","display_name":"Acme + Inc. testaccorganization","name":"test-testaccorganization"}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 duration: 1ms +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_aI2y94tFoS5GHsLw + method: DELETE + response: + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms +- request: + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_QlEFIhdBmYf3UBFQ + method: DELETE + response: + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms +- request: + body: | + {"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":false} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections + method: POST + response: + body: '{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms - request: body: | {"assign_membership_on_login":false} @@ -393,11 +680,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_QlEFIhdBmYf3UBFQ method: PATCH response: - body: '{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}' + body: '{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -412,11 +699,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","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: @@ -432,11 +719,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}},{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + body: '{"enabled_connections":[{"connection_id":"con_QlEFIhdBmYf3UBFQ","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 @@ -451,11 +738,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: GET response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -470,11 +757,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ method: GET response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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_QlEFIhdBmYf3UBFQ","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 @@ -489,11 +776,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","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: @@ -509,11 +796,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}},{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + body: '{"enabled_connections":[{"connection_id":"con_QlEFIhdBmYf3UBFQ","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 @@ -528,11 +815,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: GET response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -547,11 +834,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ method: GET response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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_QlEFIhdBmYf3UBFQ","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 @@ -566,11 +853,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","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: @@ -586,11 +873,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}},{"connection_id":"con_jGwRqfOzFt3vG9Hi","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-testaccorganization","strategy":"auth0"}}],"start":0,"limit":2,"total":2}' + body: '{"enabled_connections":[{"connection_id":"con_QlEFIhdBmYf3UBFQ","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 @@ -605,11 +892,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: PATCH response: - body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_ikcTP9dQvzZvRUWz","display_name":"Acme + body: '{"branding":{"logo_url":"https://acme.com/logo.svg","colors":{"page_background":"#e3e2ff","primary":"#e3e2f0"}},"id":"org_389JHWR8NsiAsqQF","display_name":"Acme Inc. testaccorganization","name":"test-testaccorganization"}' headers: Content-Type: @@ -624,8 +911,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_QlEFIhdBmYf3UBFQ method: DELETE response: body: "" @@ -637,17 +924,36 @@ interactions: duration: 1ms - request: body: | - {"assign_membership_on_login":false} + {"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections + method: POST + response: + body: '{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms +- request: + body: | + {"assign_membership_on_login":true} form: {} headers: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections/con_QlEFIhdBmYf3UBFQ method: PATCH response: - body: '{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' + body: '{"connection_id":"con_QlEFIhdBmYf3UBFQ","assign_membership_on_login":true,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}' headers: Content-Type: - application/json; charset=utf-8 @@ -662,11 +968,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","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: @@ -682,11 +988,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"enabled_connections":[{"connection_id":"con_QlEFIhdBmYf3UBFQ","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 @@ -701,11 +1007,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: GET response: - body: '{"id":"con_jGwRqfOzFt3vG9Hi","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_aI2y94tFoS5GHsLw","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 @@ -720,11 +1026,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ method: GET response: - body: '{"id":"con_eLSWNP77p3JxR6uh","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_QlEFIhdBmYf3UBFQ","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 @@ -739,11 +1045,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: GET response: - body: '{"id":"org_ikcTP9dQvzZvRUWz","name":"test-testaccorganization","display_name":"Acme + body: '{"id":"org_389JHWR8NsiAsqQF","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: @@ -759,11 +1065,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz/enabled_connections?include_totals=true&per_page=50 + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF/enabled_connections?include_totals=true&per_page=50 method: GET response: - body: '{"enabled_connections":[{"connection_id":"con_eLSWNP77p3JxR6uh","assign_membership_on_login":false,"connection":{"name":"Acceptance-Test-Connection-Acme-Inc-testaccorganization","strategy":"auth0"}}],"start":0,"limit":1,"total":1}' + body: '{"enabled_connections":[{"connection_id":"con_QlEFIhdBmYf3UBFQ","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 @@ -777,8 +1083,8 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_ikcTP9dQvzZvRUWz + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/organizations/org_389JHWR8NsiAsqQF method: DELETE response: body: "" @@ -795,11 +1101,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_eLSWNP77p3JxR6uh + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_QlEFIhdBmYf3UBFQ method: DELETE response: - body: '{"deleted_at":"2022-06-14T12:24:47.301Z"}' + body: '{"deleted_at":"2022-07-16T07:26:33.726Z"}' headers: Content-Type: - application/json; charset=utf-8 @@ -813,11 +1119,11 @@ interactions: Content-Type: - application/json User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_jGwRqfOzFt3vG9Hi + - Go-Auth0-SDK/0.9.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_aI2y94tFoS5GHsLw method: DELETE response: - body: '{"deleted_at":"2022-06-14T12:24:47.814Z"}' + body: '{"deleted_at":"2022-07-16T07:26:34.127Z"}' headers: Content-Type: - application/json; charset=utf-8