From 2c8c3e1317246af74b9595eebf789e470a1459e0 Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Wed, 8 Feb 2023 12:16:17 +0100 Subject: [PATCH 1/2] Add enabled_clients property on connection resource schema as readonly --- docs/resources/connection.md | 1 + internal/auth0/connection/expand.go | 6 +++++- internal/auth0/connection/resource.go | 1 + internal/auth0/connection/schema.go | 8 ++++++++ 4 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/resources/connection.md b/docs/resources/connection.md index c279a2a07..1bc5a9fb5 100644 --- a/docs/resources/connection.md +++ b/docs/resources/connection.md @@ -611,6 +611,7 @@ resource "auth0_connection" "okta" { ### Read-Only +- `enabled_clients` (Set of String) IDs of the clients for which the connection is enabled. - `id` (String) The ID of this resource. diff --git a/internal/auth0/connection/expand.go b/internal/auth0/connection/expand.go index 08b6c1f1e..cc0fb69d5 100644 --- a/internal/auth0/connection/expand.go +++ b/internal/auth0/connection/expand.go @@ -25,10 +25,14 @@ func expandConnection(d *schema.ResourceData) (*management.Connection, diag.Diag connection.Strategy = value.String(config.GetAttr("strategy")) } - if d.IsNewResource() || d.HasChange("realms") { + if d.HasChange("realms") { connection.Realms = value.Strings(config.GetAttr("realms")) } + if d.HasChange("enabled_clients") { + connection.EnabledClients = value.Strings(config.GetAttr("enabled_clients")) + } + var diagnostics diag.Diagnostics strategy := d.Get("strategy").(string) showAsButton := value.Bool(config.GetAttr("show_as_button")) diff --git a/internal/auth0/connection/resource.go b/internal/auth0/connection/resource.go index 2f36cb8a8..4094d3fa2 100644 --- a/internal/auth0/connection/resource.go +++ b/internal/auth0/connection/resource.go @@ -85,6 +85,7 @@ func readConnection(ctx context.Context, d *schema.ResourceData, m interface{}) d.Set("options", connectionOptions), d.Set("realms", connection.GetRealms()), d.Set("metadata", connection.GetMetadata()), + d.Set("enabled_clients", connection.GetEnabledClients()), ) switch connection.GetStrategy() { diff --git a/internal/auth0/connection/schema.go b/internal/auth0/connection/schema.go index 986af0658..5cea1a5b6 100644 --- a/internal/auth0/connection/schema.go +++ b/internal/auth0/connection/schema.go @@ -763,6 +763,14 @@ var resourceSchema = map[string]*schema.Schema{ Optional: true, Description: "Display connection as a button. Only available on enterprise connections.", }, + "enabled_clients": { + Type: schema.TypeSet, + Elem: &schema.Schema{ + Type: schema.TypeString, + }, + Computed: true, + Description: "IDs of the clients for which the connection is enabled.", + }, } func connectionSchemaV0() *schema.Resource { From ac61dfe48f2b34e694069fd3cf3ea9b4475d323b Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea <28300158+sergiught@users.noreply.github.com> Date: Wed, 8 Feb 2023 12:29:12 +0100 Subject: [PATCH 2/2] Add connection data source --- docs/data-sources/connection.md | 223 ++++ internal/auth0/connection/data_source.go | 72 ++ internal/auth0/connection/data_source_test.go | 122 ++ internal/provider/provider.go | 1 + .../TestAccDataSourceConnectionByID.yaml | 901 ++++++++++++++ .../TestAccDataSourceConnectionByName.yaml | 1081 +++++++++++++++++ 6 files changed, 2400 insertions(+) create mode 100644 docs/data-sources/connection.md create mode 100644 internal/auth0/connection/data_source.go create mode 100644 internal/auth0/connection/data_source_test.go create mode 100644 test/data/recordings/TestAccDataSourceConnectionByID.yaml create mode 100644 test/data/recordings/TestAccDataSourceConnectionByName.yaml diff --git a/docs/data-sources/connection.md b/docs/data-sources/connection.md new file mode 100644 index 000000000..f0f1ecf76 --- /dev/null +++ b/docs/data-sources/connection.md @@ -0,0 +1,223 @@ +--- +page_title: "Data Source: auth0_connection" +description: |- + Data source to retrieve a specific Auth0 connection by connection_id or name. +--- + +# Data Source: auth0_connection + +Data source to retrieve a specific Auth0 connection by `connection_id` or `name`. + + + + +## Schema + +### Optional + +- `connection_id` (String) The ID of the connection. If not provided, `name` must be set. +- `name` (String) The name of the connection. If not provided, `connection_id` must be set. + +### Read-Only + +- `display_name` (String) Name used in login screen. +- `enabled_clients` (Set of String) IDs of the clients for which the connection is enabled. +- `id` (String) The ID of this resource. +- `is_domain_connection` (Boolean) Indicates whether the connection is domain level. +- `metadata` (Map of String) Metadata associated with the connection, in the form of a map of string values (max 255 chars). Maximum of 10 metadata properties allowed. +- `options` (List of Object) Configuration settings for connection options. (see [below for nested schema](#nestedatt--options)) +- `realms` (List of String) Defines the realms for which the connection will be used (e.g., email domains). If not specified, the connection name is added as the realm. +- `show_as_button` (Boolean) Display connection as a button. Only available on enterprise connections. +- `strategy` (String) Type of the connection, which indicates the identity provider. +- `strategy_version` (String) +- `validation` (Map of String) + + +### Nested Schema for `options` + +Read-Only: + +- `adfs_server` (String) +- `allowed_audiences` (Set of String) +- `api_enable_users` (Boolean) +- `app_id` (String) +- `auth_params` (Map of String) +- `authorization_endpoint` (String) +- `brute_force_protection` (Boolean) +- `client_id` (String) +- `client_secret` (String) +- `community_base_url` (String) +- `configuration` (Map of String) +- `custom_scripts` (Map of String) +- `debug` (Boolean) +- `digest_algorithm` (String) +- `disable_cache` (Boolean) +- `disable_sign_out` (Boolean) +- `disable_signup` (Boolean) +- `discovery_url` (String) +- `domain` (String) +- `domain_aliases` (Set of String) +- `enable_script_context` (Boolean) +- `enabled_database_customization` (Boolean) +- `entity_id` (String) +- `fed_metadata_xml` (String) +- `fields_map` (String) +- `forward_request_info` (Boolean) +- `from` (String) +- `gateway_authentication` (List of Object) (see [below for nested schema](#nestedobjatt--options--gateway_authentication)) +- `gateway_url` (String) +- `icon_url` (String) +- `identity_api` (String) +- `idp_initiated` (List of Object) (see [below for nested schema](#nestedobjatt--options--idp_initiated)) +- `import_mode` (Boolean) +- `ips` (Set of String) +- `issuer` (String) +- `jwks_uri` (String) +- `key_id` (String) +- `max_groups_to_retrieve` (String) +- `messaging_service_sid` (String) +- `metadata_url` (String) +- `metadata_xml` (String) +- `mfa` (List of Object) (see [below for nested schema](#nestedobjatt--options--mfa)) +- `name` (String) +- `non_persistent_attrs` (Set of String) +- `password_complexity_options` (List of Object) (see [below for nested schema](#nestedobjatt--options--password_complexity_options)) +- `password_dictionary` (List of Object) (see [below for nested schema](#nestedobjatt--options--password_dictionary)) +- `password_history` (List of Object) (see [below for nested schema](#nestedobjatt--options--password_history)) +- `password_no_personal_info` (List of Object) (see [below for nested schema](#nestedobjatt--options--password_no_personal_info)) +- `password_policy` (String) +- `pkce_enabled` (Boolean) +- `protocol_binding` (String) +- `provider` (String) +- `request_template` (String) +- `requires_username` (Boolean) +- `scopes` (Set of String) +- `scripts` (Map of String) +- `set_user_root_attributes` (String) +- `should_trust_email_verified_connection` (String) +- `sign_in_endpoint` (String) +- `sign_out_endpoint` (String) +- `sign_saml_request` (Boolean) +- `signature_algorithm` (String) +- `signing_cert` (String) +- `signing_key` (List of Object) (see [below for nested schema](#nestedobjatt--options--signing_key)) +- `strategy_version` (Number) +- `subject` (String) +- `syntax` (String) +- `team_id` (String) +- `template` (String) +- `tenant_domain` (String) +- `token_endpoint` (String) +- `totp` (List of Object) (see [below for nested schema](#nestedobjatt--options--totp)) +- `twilio_sid` (String) +- `twilio_token` (String) +- `type` (String) +- `upstream_params` (String) +- `use_cert_auth` (Boolean) +- `use_kerberos` (Boolean) +- `use_wsfed` (Boolean) +- `user_id_attribute` (String) +- `userinfo_endpoint` (String) +- `validation` (List of Object) (see [below for nested schema](#nestedobjatt--options--validation)) +- `waad_common_endpoint` (Boolean) +- `waad_protocol` (String) + + +### Nested Schema for `options.gateway_authentication` + +Read-Only: + +- `audience` (String) +- `method` (String) +- `secret` (String) +- `secret_base64_encoded` (Boolean) +- `subject` (String) + + + +### Nested Schema for `options.idp_initiated` + +Read-Only: + +- `client_authorize_query` (String) +- `client_id` (String) +- `client_protocol` (String) + + + +### Nested Schema for `options.mfa` + +Read-Only: + +- `active` (Boolean) +- `return_enroll_settings` (Boolean) + + + +### Nested Schema for `options.password_complexity_options` + +Read-Only: + +- `min_length` (Number) + + + +### Nested Schema for `options.password_dictionary` + +Read-Only: + +- `dictionary` (Set of String) +- `enable` (Boolean) + + + +### Nested Schema for `options.password_history` + +Read-Only: + +- `enable` (Boolean) +- `size` (Number) + + + +### Nested Schema for `options.password_no_personal_info` + +Read-Only: + +- `enable` (Boolean) + + + +### Nested Schema for `options.signing_key` + +Read-Only: + +- `cert` (String) +- `key` (String) + + + +### Nested Schema for `options.totp` + +Read-Only: + +- `length` (Number) +- `time_step` (Number) + + + +### Nested Schema for `options.validation` + +Read-Only: + +- `username` (List of Object) (see [below for nested schema](#nestedobjatt--options--validation--username)) + + +### Nested Schema for `options.validation.username` + +Read-Only: + +- `max` (Number) +- `min` (Number) + + diff --git a/internal/auth0/connection/data_source.go b/internal/auth0/connection/data_source.go new file mode 100644 index 000000000..b205ad923 --- /dev/null +++ b/internal/auth0/connection/data_source.go @@ -0,0 +1,72 @@ +package connection + +import ( + "context" + + "github.com/auth0/go-auth0/management" + "github.com/hashicorp/terraform-plugin-sdk/v2/diag" + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" + + internalSchema "github.com/auth0/terraform-provider-auth0/internal/schema" +) + +// NewDataSource will return a new auth0_connection_client data source. +func NewDataSource() *schema.Resource { + return &schema.Resource{ + ReadContext: readConnectionForDataSource, + Description: "Data source to retrieve a specific Auth0 connection by `connection_id` or `name`.", + Schema: dataSourceSchema(), + } +} + +func dataSourceSchema() map[string]*schema.Schema { + dataSourceSchema := internalSchema.TransformResourceToDataSource(NewResource().Schema) + dataSourceSchema["connection_id"] = &schema.Schema{ + Type: schema.TypeString, + Optional: true, + Description: "The ID of the connection. If not provided, `name` must be set.", + AtLeastOneOf: []string{"connection_id", "name"}, + } + + internalSchema.SetExistingAttributesAsOptional(dataSourceSchema, "name") + dataSourceSchema["name"].Description = "The name of the connection. If not provided, `connection_id` must be set." + dataSourceSchema["name"].AtLeastOneOf = []string{"connection_id", "name"} + + return dataSourceSchema +} + +func readConnectionForDataSource(ctx context.Context, data *schema.ResourceData, meta interface{}) diag.Diagnostics { + connectionID := data.Get("connection_id").(string) + if connectionID != "" { + data.SetId(connectionID) + return readConnection(ctx, data, meta) + } + + api := meta.(*management.Management) + name := data.Get("name").(string) + page := 0 + for { + connections, err := api.Connection.List( + management.IncludeFields("id", "name"), + management.Page(page), + ) + if err != nil { + return diag.FromErr(err) + } + + for _, connection := range connections.Connections { + if connection.GetName() == name { + data.SetId(connection.GetID()) + return readConnection(ctx, data, meta) + } + } + + if !connections.HasNext() { + break + } + + page++ + } + + return diag.Errorf("No connection found with \"name\" = %q", name) +} diff --git a/internal/auth0/connection/data_source_test.go b/internal/auth0/connection/data_source_test.go new file mode 100644 index 000000000..aff73e113 --- /dev/null +++ b/internal/auth0/connection/data_source_test.go @@ -0,0 +1,122 @@ +package connection_test + +import ( + "fmt" + "regexp" + "testing" + + "github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource" + + "github.com/auth0/terraform-provider-auth0/internal/provider" + "github.com/auth0/terraform-provider-auth0/internal/recorder" + "github.com/auth0/terraform-provider-auth0/internal/template" +) + +const testAccGivenAConnection = ` +resource "auth0_connection" "my_connection" { + name = "Acceptance-Test-Connection-{{.testName}}" + strategy = "auth0" +} + +resource "auth0_client" "my_client" { + depends_on = [ auth0_connection.my_connection ] + + name = "Acceptance Test - {{.testName}}" + app_type = "non_interactive" +} + +resource "auth0_connection_client" "my_conn_client_assoc" { + connection_id = auth0_connection.my_connection.id + client_id = auth0_client.my_client.id +} +` + +const testAccDataConnectionConfigByName = ` +data "auth0_connection" "test" { + depends_on = [ auth0_connection_client.my_conn_client_assoc ] + + name = "Acceptance-Test-Connection-{{.testName}}" +} +` + +const testAccDataConnectionConfigByID = ` +data "auth0_connection" "test" { + depends_on = [ auth0_connection_client.my_conn_client_assoc ] + + connection_id = auth0_connection.my_connection.id +} +` + +func TestAccDataSourceConnectionRequiredArguments(t *testing.T) { + resource.Test(t, resource.TestCase{ + ProviderFactories: provider.TestFactories(nil), + Steps: []resource.TestStep{ + { + Config: `data "auth0_connection" "test" { }`, + ExpectError: regexp.MustCompile("one of `connection_id,name` must be specified"), + }, + }, + }) +} + +func TestAccDataSourceConnectionByName(t *testing.T) { + httpRecorder := recorder.New(t) + + resource.Test(t, resource.TestCase{ + ProviderFactories: provider.TestFactories(httpRecorder), + PreventPostDestroyRefresh: true, + Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccGivenAConnection, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_connection.my_connection", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttrSet("auth0_connection_client.my_conn_client_assoc", "connection_id"), + resource.TestCheckResourceAttrSet("auth0_connection_client.my_conn_client_assoc", "client_id"), + resource.TestCheckResourceAttr("auth0_connection_client.my_conn_client_assoc", "strategy", "auth0"), + resource.TestCheckResourceAttr("auth0_connection_client.my_conn_client_assoc", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + ), + }, + { + Config: template.ParseTestName(testAccGivenAConnection+testAccDataConnectionConfigByName, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.auth0_connection.test", "id"), + resource.TestCheckResourceAttr("data.auth0_connection.test", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + resource.TestCheckResourceAttr("data.auth0_connection.test", "strategy", "auth0"), + resource.TestCheckResourceAttr("data.auth0_connection.test", "enabled_clients.#", "1"), + ), + }, + }, + }) +} + +func TestAccDataSourceConnectionByID(t *testing.T) { + httpRecorder := recorder.New(t) + + resource.Test(t, resource.TestCase{ + ProviderFactories: provider.TestFactories(httpRecorder), + PreventPostDestroyRefresh: true, + Steps: []resource.TestStep{ + { + Config: template.ParseTestName(testAccGivenAConnection, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttr("auth0_connection.my_connection", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + resource.TestCheckResourceAttr("auth0_client.my_client", "name", fmt.Sprintf("Acceptance Test - %s", t.Name())), + resource.TestCheckResourceAttrSet("auth0_connection_client.my_conn_client_assoc", "connection_id"), + resource.TestCheckResourceAttrSet("auth0_connection_client.my_conn_client_assoc", "client_id"), + resource.TestCheckResourceAttr("auth0_connection_client.my_conn_client_assoc", "strategy", "auth0"), + resource.TestCheckResourceAttr("auth0_connection_client.my_conn_client_assoc", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + ), + }, + { + Config: template.ParseTestName(testAccGivenAConnection+testAccDataConnectionConfigByID, t.Name()), + Check: resource.ComposeTestCheckFunc( + resource.TestCheckResourceAttrSet("data.auth0_connection.test", "id"), + resource.TestCheckResourceAttr("data.auth0_connection.test", "name", fmt.Sprintf("Acceptance-Test-Connection-%s", t.Name())), + resource.TestCheckResourceAttr("data.auth0_connection.test", "strategy", "auth0"), + resource.TestCheckResourceAttr("data.auth0_connection.test", "enabled_clients.#", "1"), + ), + }, + }, + }) +} diff --git a/internal/provider/provider.go b/internal/provider/provider.go index 07f6cc319..629901c51 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -110,6 +110,7 @@ func New() *schema.Provider { DataSourcesMap: map[string]*schema.Resource{ "auth0_client": client.NewDataSource(), "auth0_global_client": client.NewGlobalDataSource(), + "auth0_connection": connection.NewDataSource(), "auth0_tenant": newDataTenant(), }, } diff --git a/test/data/recordings/TestAccDataSourceConnectionByID.yaml b/test/data/recordings/TestAccDataSourceConnectionByID.yaml new file mode 100644 index 000000000..232ff416e --- /dev/null +++ b/test/data/recordings/TestAccDataSourceConnectionByID.yaml @@ -0,0 +1,901 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 89 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","strategy":"auth0"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 377 + uncompressed: false + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 143.713042ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 111.106ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 90 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - TestAccDataSourceConnectionByID","app_type":"non_interactive"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByID","client_id":"B87m5QMddbmaLxuHWO45ZLDyRMRML4FG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 244.591666ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/B87m5QMddbmaLxuHWO45ZLDyRMRML4FG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByID","client_id":"B87m5QMddbmaLxuHWO45ZLDyRMRML4FG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 180.871375ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 310.368792ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 57 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 136.036334ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 114.23875ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 114.445625ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/B87m5QMddbmaLxuHWO45ZLDyRMRML4FG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByID","client_id":"B87m5QMddbmaLxuHWO45ZLDyRMRML4FG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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.486ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 110.475042ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 132.801708ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/B87m5QMddbmaLxuHWO45ZLDyRMRML4FG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByID","client_id":"B87m5QMddbmaLxuHWO45ZLDyRMRML4FG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 112.543958ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.049459ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 101.100542ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 93.01975ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 110.193417ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 186.302458ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/B87m5QMddbmaLxuHWO45ZLDyRMRML4FG + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByID","client_id":"B87m5QMddbmaLxuHWO45ZLDyRMRML4FG","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 132.739292ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 105.478625ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 130.038416ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 97.39125ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":["B87m5QMddbmaLxuHWO45ZLDyRMRML4FG"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 215.53375ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 25 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"enabled_clients":null} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_MJJfg5DWiUHg8I7r","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByID","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByID"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 126.50225ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/B87m5QMddbmaLxuHWO45ZLDyRMRML4FG + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 125.020584ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_MJJfg5DWiUHg8I7r + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 41 + uncompressed: false + body: '{"deleted_at":"2023-02-08T11:14:30.296Z"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 202 Accepted + code: 202 + duration: 173.395666ms diff --git a/test/data/recordings/TestAccDataSourceConnectionByName.yaml b/test/data/recordings/TestAccDataSourceConnectionByName.yaml new file mode 100644 index 000000000..f06df78af --- /dev/null +++ b/test/data/recordings/TestAccDataSourceConnectionByName.yaml @@ -0,0 +1,1081 @@ +--- +version: 2 +interactions: + - id: 0 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 91 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","strategy":"auth0"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 381 + uncompressed: false + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 154.0815ms + - id: 1 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 119.723292ms + - id: 2 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 92 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"name":"Acceptance Test - TestAccDataSourceConnectionByName","app_type":"non_interactive"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: false + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByName","client_id":"WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 454.976291ms + - id: 3 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByName","client_id":"WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 222.622583ms + - id: 4 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.783834ms + - id: 5 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 57 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"]} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 152.284417ms + - id: 6 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.718459ms + - id: 7 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 118.096833ms + - id: 8 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByName","client_id":"WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 118.93925ms + - id: 9 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.717584ms + - id: 10 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 124.353042ms + - id: 11 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByName","client_id":"WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 104.47175ms + - id: 12 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 110.306875ms + - id: 13 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections?fields=id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":11,"start":0,"limit":50,"connections":[{"id":"con_IEON2T18ithSdwWl","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false},{"id":"con_pW1jryNOoxaNcTT0","name":"adfs-test-issue-455","is_domain_connection":true},{"id":"con_HMVQGtsmSqSxkSVh","name":"asdasd","is_domain_connection":false},{"id":"con_47S3hqmuxbaOvPiB","name":"email","is_domain_connection":false},{"id":"con_OX3PbtQiHlGEFyjC","name":"google-oauth2","is_domain_connection":false},{"id":"con_rcKUnou1ogQWBgBZ","name":"mycompany-sso","is_domain_connection":false},{"id":"con_bj23KQ8QtEd1l4EV","name":"oktaWork","is_domain_connection":false},{"id":"con_AyuS1yvUEQjoFaoX","name":"sms","is_domain_connection":false},{"id":"con_vdBe5gMM9KrNxicl","name":"test","is_domain_connection":false},{"id":"con_GlgUxPb6Q7YCMMCD","name":"testing-1-23","is_domain_connection":false},{"id":"con_ftSSLHb0O7rcUGmF","name":"Username-Password-Authentication","is_domain_connection":false}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 113.215416ms + - id: 14 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 132.184834ms + - id: 15 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections?fields=id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":11,"start":0,"limit":50,"connections":[{"id":"con_IEON2T18ithSdwWl","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false},{"id":"con_pW1jryNOoxaNcTT0","name":"adfs-test-issue-455","is_domain_connection":true},{"id":"con_HMVQGtsmSqSxkSVh","name":"asdasd","is_domain_connection":false},{"id":"con_47S3hqmuxbaOvPiB","name":"email","is_domain_connection":false},{"id":"con_OX3PbtQiHlGEFyjC","name":"google-oauth2","is_domain_connection":false},{"id":"con_rcKUnou1ogQWBgBZ","name":"mycompany-sso","is_domain_connection":false},{"id":"con_bj23KQ8QtEd1l4EV","name":"oktaWork","is_domain_connection":false},{"id":"con_AyuS1yvUEQjoFaoX","name":"sms","is_domain_connection":false},{"id":"con_vdBe5gMM9KrNxicl","name":"test","is_domain_connection":false},{"id":"con_GlgUxPb6Q7YCMMCD","name":"testing-1-23","is_domain_connection":false},{"id":"con_ftSSLHb0O7rcUGmF","name":"Username-Password-Authentication","is_domain_connection":false}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 103.724417ms + - id: 16 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 116.456667ms + - id: 17 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections?fields=id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":11,"start":0,"limit":50,"connections":[{"id":"con_IEON2T18ithSdwWl","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false},{"id":"con_pW1jryNOoxaNcTT0","name":"adfs-test-issue-455","is_domain_connection":true},{"id":"con_HMVQGtsmSqSxkSVh","name":"asdasd","is_domain_connection":false},{"id":"con_47S3hqmuxbaOvPiB","name":"email","is_domain_connection":false},{"id":"con_OX3PbtQiHlGEFyjC","name":"google-oauth2","is_domain_connection":false},{"id":"con_rcKUnou1ogQWBgBZ","name":"mycompany-sso","is_domain_connection":false},{"id":"con_bj23KQ8QtEd1l4EV","name":"oktaWork","is_domain_connection":false},{"id":"con_AyuS1yvUEQjoFaoX","name":"sms","is_domain_connection":false},{"id":"con_vdBe5gMM9KrNxicl","name":"test","is_domain_connection":false},{"id":"con_GlgUxPb6Q7YCMMCD","name":"testing-1-23","is_domain_connection":false},{"id":"con_ftSSLHb0O7rcUGmF","name":"Username-Password-Authentication","is_domain_connection":false}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 106.092084ms + - id: 18 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 118.971875ms + - id: 19 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 120.642375ms + - id: 20 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"name":"Acceptance Test - TestAccDataSourceConnectionByName","client_id":"WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":false,"oidc_conformant":false,"jwt_configuration":{"secret_encoded":false,"lifetime_in_seconds":36000},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"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: 102.881125ms + - id: 21 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 112.852083ms + - id: 22 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections?fields=id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":11,"start":0,"limit":50,"connections":[{"id":"con_IEON2T18ithSdwWl","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false},{"id":"con_pW1jryNOoxaNcTT0","name":"adfs-test-issue-455","is_domain_connection":true},{"id":"con_HMVQGtsmSqSxkSVh","name":"asdasd","is_domain_connection":false},{"id":"con_47S3hqmuxbaOvPiB","name":"email","is_domain_connection":false},{"id":"con_OX3PbtQiHlGEFyjC","name":"google-oauth2","is_domain_connection":false},{"id":"con_rcKUnou1ogQWBgBZ","name":"mycompany-sso","is_domain_connection":false},{"id":"con_bj23KQ8QtEd1l4EV","name":"oktaWork","is_domain_connection":false},{"id":"con_AyuS1yvUEQjoFaoX","name":"sms","is_domain_connection":false},{"id":"con_vdBe5gMM9KrNxicl","name":"test","is_domain_connection":false},{"id":"con_GlgUxPb6Q7YCMMCD","name":"testing-1-23","is_domain_connection":false},{"id":"con_ftSSLHb0O7rcUGmF","name":"Username-Password-Authentication","is_domain_connection":false}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 107.794542ms + - id: 23 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 100.654625ms + - id: 24 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections?fields=id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"total":11,"start":0,"limit":50,"connections":[{"id":"con_IEON2T18ithSdwWl","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false},{"id":"con_pW1jryNOoxaNcTT0","name":"adfs-test-issue-455","is_domain_connection":true},{"id":"con_HMVQGtsmSqSxkSVh","name":"asdasd","is_domain_connection":false},{"id":"con_47S3hqmuxbaOvPiB","name":"email","is_domain_connection":false},{"id":"con_OX3PbtQiHlGEFyjC","name":"google-oauth2","is_domain_connection":false},{"id":"con_rcKUnou1ogQWBgBZ","name":"mycompany-sso","is_domain_connection":false},{"id":"con_bj23KQ8QtEd1l4EV","name":"oktaWork","is_domain_connection":false},{"id":"con_AyuS1yvUEQjoFaoX","name":"sms","is_domain_connection":false},{"id":"con_vdBe5gMM9KrNxicl","name":"test","is_domain_connection":false},{"id":"con_GlgUxPb6Q7YCMMCD","name":"testing-1-23","is_domain_connection":false},{"id":"con_ftSSLHb0O7rcUGmF","name":"Username-Password-Authentication","is_domain_connection":false}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 183.106792ms + - id: 25 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 98.318ms + - id: 26 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 5 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: GET + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":["WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9"],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 106.704042ms + - id: 27 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 25 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: | + {"enabled_clients":null} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: PATCH + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: -1 + uncompressed: true + body: '{"id":"con_IEON2T18ithSdwWl","options":{"mfa":{"active":true,"return_enroll_settings":true},"passwordPolicy":"good","strategy_version":2,"brute_force_protection":true},"strategy":"auth0","name":"Acceptance-Test-Connection-TestAccDataSourceConnectionByName","is_domain_connection":false,"enabled_clients":[],"realms":["Acceptance-Test-Connection-TestAccDataSourceConnectionByName"]}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 132.160292ms + - id: 28 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/WALBdAB4e2VJIEsBo57H8V5wa1HHeeI9 + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 140.320625ms + - id: 29 + request: + proto: HTTP/1.1 + proto_major: 1 + proto_minor: 1 + content_length: 0 + transfer_encoding: [] + trailer: {} + host: terraform-provider-auth0-dev.eu.auth0.com + remote_addr: "" + request_uri: "" + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.15.1 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/connections/con_IEON2T18ithSdwWl + method: DELETE + response: + proto: HTTP/2.0 + proto_major: 2 + proto_minor: 0 + transfer_encoding: [] + trailer: {} + content_length: 0 + uncompressed: false + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 171.78125ms