diff --git a/internal/auth0/connection/resource_clients.go b/internal/auth0/connection/resource_clients.go index d33e0ac67..573754100 100644 --- a/internal/auth0/connection/resource_clients.go +++ b/internal/auth0/connection/resource_clients.go @@ -2,9 +2,11 @@ package connection import ( "context" + "fmt" "net/http" "github.com/auth0/go-auth0/management" + "github.com/google/go-cmp/cmp" "github.com/hashicorp/go-multierror" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -72,24 +74,23 @@ func createConnectionClients(ctx context.Context, data *schema.ResourceData, met return diag.FromErr(err) } - data.SetId(connection.GetID()) + // This is never nil because the enabled clients is a required parameter. + enabledClients := value.Strings(data.GetRawConfig().GetAttr("enabled_clients")) - if len(connection.GetEnabledClients()) != 0 { + if diagnostics := guardAgainstErasingUnwantedEnabledClients( + connection.GetID(), + *enabledClients, + connection.GetEnabledClients(), + ); diagnostics.HasError() { data.SetId("") - - return diag.Diagnostics{ - diag.Diagnostic{ - Severity: diag.Error, - Summary: "Connection with non empty enabled clients", - Detail: "The connection already has enabled clients attached to it. " + - "Import the resource instead to get an accurate diff that can be reviewed.", - }, - } + return diagnostics } + data.SetId(connection.GetID()) + if err := api.Connection.Update( connectionID, - &management.Connection{EnabledClients: value.Strings(data.GetRawConfig().GetAttr("enabled_clients"))}, + &management.Connection{EnabledClients: enabledClients}, ); err != nil { return diag.FromErr(err) } @@ -167,3 +168,28 @@ func deleteConnectionClients(ctx context.Context, data *schema.ResourceData, met return nil } + +func guardAgainstErasingUnwantedEnabledClients( + connectionID string, + configEnabledClients []string, + connectionEnabledClients []string, +) diag.Diagnostics { + if len(connectionEnabledClients) == 0 { + return nil + } + + if cmp.Equal(configEnabledClients, connectionEnabledClients) { + return nil + } + + return diag.Diagnostics{ + diag.Diagnostic{ + Severity: diag.Error, + Summary: "Connection with non empty enabled clients", + Detail: cmp.Diff(configEnabledClients, connectionEnabledClients) + + fmt.Sprintf("\nThe connection already has enabled clients attached to it. "+ + "Import the resource instead in order to proceed with the changes. "+ + "Run: 'terraform import auth0_connection_clients. %s'.", connectionID), + }, + } +} diff --git a/internal/auth0/connection/resource_clients_test.go b/internal/auth0/connection/resource_clients_test.go index 5a4835f9c..38bb428f3 100644 --- a/internal/auth0/connection/resource_clients_test.go +++ b/internal/auth0/connection/resource_clients_test.go @@ -96,15 +96,6 @@ resource "auth0_connection_clients" "my_conn_client_assoc" { } ` -const testAccConnectionClientsWithNoEnabledClients = givenASingleConnection + ` -resource "auth0_connection_clients" "my_conn_client_assoc" { - depends_on = [ auth0_connection.my_conn ] - - connection_id = auth0_connection.my_conn.id - enabled_clients = [] -} -` - func TestAccConnectionClients(t *testing.T) { acctest.Test(t, resource.TestCase{ Steps: []resource.TestStep{ @@ -133,11 +124,14 @@ func TestAccConnectionClients(t *testing.T) { ), }, { - Config: acctest.ParseTestName(testAccConnectionClientsWithNoEnabledClients, t.Name()), + Config: acctest.ParseTestName(givenASingleConnection, t.Name()), + }, + { + RefreshState: true, Check: resource.ComposeTestCheckFunc( - resource.TestCheckResourceAttr("auth0_connection_clients.my_conn_client_assoc", "strategy", "auth0"), - resource.TestCheckResourceAttr("auth0_connection_clients.my_conn_client_assoc", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), - resource.TestCheckResourceAttr("auth0_connection_clients.my_conn_client_assoc", "enabled_clients.#", "0"), + resource.TestCheckResourceAttr("auth0_connection.my_conn", "strategy", "auth0"), + resource.TestCheckResourceAttr("auth0_connection.my_conn", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_connection.my_conn", "enabled_clients.#", "0"), ), }, }, diff --git a/test/data/recordings/TestAccConnectionClients.yaml b/test/data/recordings/TestAccConnectionClients.yaml index 9d81c003e..72f4b487f 100644 --- a/test/data/recordings/TestAccConnectionClients.yaml +++ b/test/data/recordings/TestAccConnectionClients.yaml @@ -30,13 +30,13 @@ interactions: trailer: {} content_length: 363 uncompressed: false - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 201 Created code: 201 - duration: 145.938125ms + duration: 147.294042ms - id: 1 request: proto: HTTP/1.1 @@ -56,7 +56,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -66,13 +66,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.867416ms + duration: 97.35075ms - id: 2 request: proto: HTTP/1.1 @@ -92,7 +92,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -102,13 +102,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 106.766333ms + duration: 108.561583ms - id: 3 request: proto: HTTP/1.1 @@ -128,7 +128,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: PATCH response: proto: HTTP/2.0 @@ -138,13 +138,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 184.636042ms + duration: 220.957083ms - id: 4 request: proto: HTTP/1.1 @@ -164,7 +164,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -174,13 +174,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.258834ms + duration: 189.829ms - id: 5 request: proto: HTTP/1.1 @@ -200,7 +200,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -210,13 +210,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.097542ms + duration: 98.038917ms - id: 6 request: proto: HTTP/1.1 @@ -236,7 +236,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -246,13 +246,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 140.864375ms + duration: 103.320834ms - id: 7 request: proto: HTTP/1.1 @@ -272,7 +272,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -282,13 +282,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 116.888417ms + duration: 108.263583ms - id: 8 request: proto: HTTP/1.1 @@ -308,7 +308,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -318,13 +318,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 178.908459ms + duration: 121.784792ms - id: 9 request: proto: HTTP/1.1 @@ -354,13 +354,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","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,"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-1-TestAccConnectionClients","client_id":"ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","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,"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: 569.075083ms + duration: 718.669667ms - id: 10 request: proto: HTTP/1.1 @@ -380,7 +380,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY method: GET response: proto: HTTP/2.0 @@ -390,13 +390,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","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,"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-1-TestAccConnectionClients","client_id":"ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","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,"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: 96.79025ms + duration: 121.325166ms - id: 11 request: proto: HTTP/1.1 @@ -409,14 +409,14 @@ interactions: remote_addr: "" request_uri: "" body: | - {"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]} + {"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"]} form: {} headers: Content-Type: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: PATCH response: proto: HTTP/2.0 @@ -426,13 +426,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 117.811709ms + duration: 141.28875ms - id: 12 request: proto: HTTP/1.1 @@ -452,7 +452,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -462,13 +462,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 93.66825ms + duration: 100.3335ms - id: 13 request: proto: HTTP/1.1 @@ -488,7 +488,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -498,13 +498,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 96.332583ms + duration: 226.554959ms - id: 14 request: proto: HTTP/1.1 @@ -524,7 +524,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY method: GET response: proto: HTTP/2.0 @@ -534,13 +534,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","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,"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-1-TestAccConnectionClients","client_id":"ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","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,"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: 155.925625ms + duration: 264.085083ms - id: 15 request: proto: HTTP/1.1 @@ -560,7 +560,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -570,13 +570,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 111.399458ms + duration: 99.632084ms - id: 16 request: proto: HTTP/1.1 @@ -596,7 +596,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -606,13 +606,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 86.631542ms + duration: 96.471666ms - id: 17 request: proto: HTTP/1.1 @@ -632,7 +632,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY method: GET response: proto: HTTP/2.0 @@ -642,13 +642,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","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,"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-1-TestAccConnectionClients","client_id":"ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","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,"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: 110.915875ms + duration: 139.444875ms - id: 18 request: proto: HTTP/1.1 @@ -668,7 +668,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -678,13 +678,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 118.997125ms + duration: 119.481125ms - id: 19 request: proto: HTTP/1.1 @@ -714,13 +714,13 @@ interactions: trailer: {} content_length: -1 uncompressed: false - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","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,"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-1-TestAccConnectionClients","client_id":"NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi","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,"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: 384.2885ms + duration: 408.205708ms - id: 20 request: proto: HTTP/1.1 @@ -740,7 +740,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi method: GET response: proto: HTTP/2.0 @@ -750,13 +750,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","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,"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-1-TestAccConnectionClients","client_id":"NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi","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,"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: 116.91475ms + duration: 125.578083ms - id: 21 request: proto: HTTP/1.1 @@ -769,14 +769,14 @@ interactions: remote_addr: "" request_uri: "" body: | - {"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4"]} + {"enabled_clients":["NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi","ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"]} form: {} headers: Content-Type: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: PATCH response: proto: HTTP/2.0 @@ -786,13 +786,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi","ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 110.393917ms + duration: 122.9845ms - id: 22 request: proto: HTTP/1.1 @@ -812,7 +812,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -822,13 +822,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 103.387334ms + duration: 170.74575ms - id: 23 request: proto: HTTP/1.1 @@ -848,7 +848,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -858,13 +858,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 98.013875ms + duration: 165.672625ms - id: 24 request: proto: HTTP/1.1 @@ -884,7 +884,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY method: GET response: proto: HTTP/2.0 @@ -894,13 +894,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","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,"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-1-TestAccConnectionClients","client_id":"ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","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,"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: 93.654958ms + duration: 96.885583ms - id: 25 request: proto: HTTP/1.1 @@ -920,7 +920,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi method: GET response: proto: HTTP/2.0 @@ -930,13 +930,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","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,"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-1-TestAccConnectionClients","client_id":"NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi","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,"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: 108.808084ms + duration: 123.181708ms - id: 26 request: proto: HTTP/1.1 @@ -956,7 +956,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -966,13 +966,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 123.922791ms + duration: 102.551209ms - id: 27 request: proto: HTTP/1.1 @@ -992,7 +992,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true method: GET response: proto: HTTP/2.0 @@ -1002,13 +1002,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","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,"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":"con_bdCGh5mlMR53cKT6","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 108.801167ms + duration: 89.087ms - id: 28 request: proto: HTTP/1.1 @@ -1028,7 +1028,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -1038,13 +1038,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE","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,"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":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 129.396833ms + duration: 132.387875ms - id: 29 request: proto: HTTP/1.1 @@ -1064,7 +1064,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY method: GET response: proto: HTTP/2.0 @@ -1074,13 +1074,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY","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,"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: 198.8035ms + duration: 132.357834ms - id: 30 request: proto: HTTP/1.1 @@ -1100,7 +1100,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi method: GET response: proto: HTTP/2.0 @@ -1110,48 +1110,49 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":["lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4","dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE"]}' + body: '{"name":"Acceptance-Test-Client-1-TestAccConnectionClients","client_id":"NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi","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,"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: 113.352708ms + duration: 132.418292ms - id: 31 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 0 + content_length: 23 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: "" + body: | + {"enabled_clients":[]} form: {} headers: Content-Type: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/lvT3cr0FTTFosQ4nM8BJKTdVvaPCP2k4 - method: DELETE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 + method: PATCH 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":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 191.280625ms + status: 200 OK + code: 200 + duration: 116.051166ms - id: 32 request: proto: HTTP/1.1 @@ -1170,7 +1171,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/dWPHmi1Ff0YXquJlg8HkOkGLCXhEAfJE + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/NcNTDYPMN4YdPQEIOr1lwdwHwMYIgmDi method: DELETE response: proto: HTTP/2.0 @@ -1186,43 +1187,42 @@ interactions: - application/json; charset=utf-8 status: 204 No Content code: 204 - duration: 276.732125ms + duration: 253.830041ms - id: 33 request: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 23 + content_length: 0 transfer_encoding: [] trailer: {} host: terraform-provider-auth0-dev.eu.auth0.com remote_addr: "" request_uri: "" - body: | - {"enabled_clients":[]} + body: "" form: {} headers: Content-Type: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl - method: PATCH + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/ah7TKVsfgza2bNVpKMCgtW2KA1rJsFbY + method: DELETE response: proto: HTTP/2.0 proto_major: 2 proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + content_length: 0 + uncompressed: false + body: "" headers: Content-Type: - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 128.926917ms + status: 204 No Content + code: 204 + duration: 207.823708ms - id: 34 request: proto: HTTP/1.1 @@ -1242,7 +1242,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&include_fields=true + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -1252,13 +1252,13 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 100.754959ms + duration: 108.051042ms - id: 35 request: proto: HTTP/1.1 @@ -1278,7 +1278,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: GET response: proto: HTTP/2.0 @@ -1288,86 +1288,14 @@ interactions: trailer: {} content_length: -1 uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' + body: '{"id":"con_bdCGh5mlMR53cKT6","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' headers: Content-Type: - application/json; charset=utf-8 status: 200 OK code: 200 - duration: 107.066334ms + duration: 182.687666ms - 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.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl?fields=enabled_clients%2Cstrategy%2Cname&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: '{"id":"con_Y32TyJpikKF6WZxl","strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 127.383958ms - - id: 37 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 23 - transfer_encoding: [] - trailer: {} - host: terraform-provider-auth0-dev.eu.auth0.com - remote_addr: "" - request_uri: "" - body: | - {"enabled_clients":[]} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl - method: PATCH - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"id":"con_Y32TyJpikKF6WZxl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccConnectionClients","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccConnectionClients"]}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 112.286417ms - - id: 38 request: proto: HTTP/1.1 proto_major: 1 @@ -1385,7 +1313,7 @@ interactions: - application/json User-Agent: - Go-Auth0-SDK/0.17.0 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_Y32TyJpikKF6WZxl + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_bdCGh5mlMR53cKT6 method: DELETE response: proto: HTTP/2.0 @@ -1393,12 +1321,12 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 0 + content_length: 41 uncompressed: false - body: "" + body: '{"deleted_at":"2023-05-09T09:38:58.164Z"}' headers: Content-Type: - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 180.772375ms + status: 202 Accepted + code: 202 + duration: 130.806375ms