From d4d9758deedd9f9e9f4e71fece070c5a5b22441d Mon Sep 17 00:00:00 2001 From: Sergiu Ghitea Date: Fri, 26 Aug 2022 18:37:40 +0200 Subject: [PATCH] Fix data source client to search by name through all available clients --- internal/provider/data_source_auth0_client.go | 42 +- .../recordings/TestAccDataClientByName.yaml | 691 ++++++++---------- 2 files changed, 340 insertions(+), 393 deletions(-) diff --git a/internal/provider/data_source_auth0_client.go b/internal/provider/data_source_auth0_client.go index e7f59551c..80abf62fe 100644 --- a/internal/provider/data_source_auth0_client.go +++ b/internal/provider/data_source_auth0_client.go @@ -3,7 +3,6 @@ package provider import ( "context" - "github.com/auth0/go-auth0" "github.com/auth0/go-auth0/management" "github.com/hashicorp/terraform-plugin-sdk/v2/diag" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -30,29 +29,42 @@ func newClientSchema() map[string]*schema.Schema { } func readDataClient(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics { - clientID := auth0.StringValue(String(d, "client_id")) + clientID := d.Get("client_id").(string) if clientID != "" { d.SetId(clientID) return readClient(ctx, d, m) } - // If not provided ID, perform looking of client by name - name := auth0.StringValue(String(d, "name")) + name := d.Get("name").(string) if name == "" { - return diag.Errorf("no 'client_id' or 'name' was specified") + return diag.Errorf("One of 'client_id' or 'name' is required.") } api := m.(*management.Management) - clients, err := api.Client.List(management.IncludeFields("client_id", "name")) - if err != nil { - return diag.FromErr(err) - } - for _, client := range clients.Clients { - if auth0.StringValue(client.Name) == name { - clientID = auth0.StringValue(client.ClientID) - d.SetId(clientID) - return readClient(ctx, d, m) + + var page int + for { + clients, err := api.Client.List( + management.IncludeFields("client_id", "name"), + management.Page(page), + ) + if err != nil { + return diag.FromErr(err) + } + + for _, client := range clients.Clients { + if client.GetName() == name { + d.SetId(client.GetClientID()) + return readClient(ctx, d, m) + } } + + if !clients.HasNext() { + break + } + + page++ } - return diag.Errorf("no client found with 'name' = '%s'", name) + + return diag.Errorf("No client found with \"name\" = %q", name) } diff --git a/test/data/recordings/TestAccDataClientByName.yaml b/test/data/recordings/TestAccDataClientByName.yaml index e92178407..178d60de3 100644 --- a/test/data/recordings/TestAccDataClientByName.yaml +++ b/test/data/recordings/TestAccDataClientByName.yaml @@ -1,381 +1,316 @@ --- version: 1 interactions: -- request: - body: | - {"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"} - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients - method: POST - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 201 Created - code: 201 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&per_page=50 - method: GET - response: - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default - App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API - Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform - Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy - CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native - App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance - Test - TestAccDataClientByName","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF"},{"tenant":"terraform-provider-auth0-dev","name":"All - Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - Link: - - ; - rel="first", ; - rel="last" - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&per_page=50 - method: GET - response: - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default - App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API - Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform - Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy - CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native - App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance - Test - TestAccDataClientByName","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF"},{"tenant":"terraform-provider-auth0-dev","name":"All - Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - Link: - - ; - rel="first", ; - rel="last" - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&per_page=50 - method: GET - response: - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default - App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API - Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform - Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy - CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native - App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance - Test - TestAccDataClientByName","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF"},{"tenant":"terraform-provider-auth0-dev","name":"All - Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - Link: - - ; - rel="first", ; - rel="last" - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&per_page=50 - method: GET - response: - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default - App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API - Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform - Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy - CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native - App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance - Test - TestAccDataClientByName","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF"},{"tenant":"terraform-provider-auth0-dev","name":"All - Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - Link: - - ; - rel="first", ; - rel="last" - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&per_page=50 - method: GET - response: - body: '{"total":7,"start":0,"limit":50,"clients":[{"tenant":"terraform-provider-auth0-dev","name":"Default - App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"terraform-provider-auth0-dev","name":"API - Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"terraform-provider-auth0-dev","name":"Terraform - Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"terraform-provider-auth0-dev","name":"Deploy - CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"terraform-provider-auth0-dev","name":"Native - App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"terraform-provider-auth0-dev","name":"Acceptance - Test - TestAccDataClientByName","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF"},{"tenant":"terraform-provider-auth0-dev","name":"All - Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' - headers: - Content-Type: - - application/json; charset=utf-8 - Link: - - ; - rel="first", ; - rel="last" - status: 200 OK - code: 200 - duration: 1ms -- request: - body: | - null - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: GET - response: - body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test - Application Long Description","client_id":"4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN - PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' - headers: - Content-Type: - - application/json; charset=utf-8 - status: 200 OK - code: 200 - duration: 1ms -- request: - body: "" - form: {} - headers: - Content-Type: - - application/json - User-Agent: - - Go-Auth0-SDK/0.6.3 - url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/4CaOQQfhOM9LKl9zf7tIGo3WSicsALvF - method: DELETE - response: - body: "" - headers: - Content-Type: - - application/json; charset=utf-8 - status: 204 No Content - code: 204 - duration: 1ms + - request: + body: | + {"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"} + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients + method: POST + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 201 Created + code: 201 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"sergiu-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"sergiu-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"sergiu-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"sergiu-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"sergiu-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"sergiu-dev","name":"Spa Test","client_id":"91f3jY24zlPxOFMQ6NYV8Up3QEJgBdnM"},{"tenant":"sergiu-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y"},{"tenant":"sergiu-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + Link: + - ; rel="first", ; rel="last" + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"sergiu-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"sergiu-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"sergiu-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"sergiu-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"sergiu-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"sergiu-dev","name":"Spa Test","client_id":"91f3jY24zlPxOFMQ6NYV8Up3QEJgBdnM"},{"tenant":"sergiu-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y"},{"tenant":"sergiu-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + Link: + - ; rel="first", ; rel="last" + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"sergiu-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"sergiu-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"sergiu-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"sergiu-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"sergiu-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"sergiu-dev","name":"Spa Test","client_id":"91f3jY24zlPxOFMQ6NYV8Up3QEJgBdnM"},{"tenant":"sergiu-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y"},{"tenant":"sergiu-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + Link: + - ; rel="first", ; rel="last" + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"sergiu-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"sergiu-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"sergiu-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"sergiu-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"sergiu-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"sergiu-dev","name":"Spa Test","client_id":"91f3jY24zlPxOFMQ6NYV8Up3QEJgBdnM"},{"tenant":"sergiu-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y"},{"tenant":"sergiu-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + Link: + - ; rel="first", ; rel="last" + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients?fields=client_id%2Cname&include_fields=true&include_totals=true&page=0&per_page=50 + method: GET + response: + body: '{"total":8,"start":0,"limit":50,"clients":[{"tenant":"sergiu-dev","name":"Default App","client_id":"Z3FKRhWMsXg7iwljDHcNtAkUnCRXYttO"},{"tenant":"sergiu-dev","name":"API Explorer Application","client_id":"O6L9dP0GnD10qe4NVE6K67PiDEHxZEid"},{"tenant":"sergiu-dev","name":"Terraform Provider Auth0","client_id":"3tjbn4dFI04fpHKnVlGs1GYDzQKIEmbF"},{"tenant":"sergiu-dev","name":"Deploy CLI","client_id":"uRWKdiFmUEC3Kohfpq4HKjgKe26ynMSj"},{"tenant":"sergiu-dev","name":"Native App ","client_id":"8IgJbmEeGNsF7A4GXnYaiO6hScFYMjAv"},{"tenant":"sergiu-dev","name":"Spa Test","client_id":"91f3jY24zlPxOFMQ6NYV8Up3QEJgBdnM"},{"tenant":"sergiu-dev","name":"Acceptance Test - TestAccDataClientByName","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y"},{"tenant":"sergiu-dev","name":"All Applications","client_id":"vugiCcTHg2cZOhKIA8bwDVw3cwLZYzaf"}]}' + headers: + Content-Type: + - application/json; charset=utf-8 + Link: + - ; rel="first", ; rel="last" + status: 200 OK + code: 200 + duration: 1ms + - request: + body: | + null + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: GET + response: + body: '{"name":"Acceptance Test - TestAccDataClientByName","description":"Test Application Long Description","client_id":"rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y","client_secret":"[REDACTED]","app_type":"non_interactive","is_first_party":true,"is_token_endpoint_ip_header_trusted":true,"oidc_conformant":true,"callbacks":["https://example.com/callback"],"allowed_origins":["https://example.com"],"web_origins":["https://example.com"],"allowed_clients":["https://allowed.example.com"],"allowed_logout_urls":["https://example.com"],"jwt_configuration":{"secret_encoded":true,"scopes":{"foo":"bar"},"alg":"RS256","lifetime_in_seconds":300},"signing_keys":[{"cert":"[REDACTED]"}],"sso_disabled":false,"cross_origin_auth":false,"grant_types":["authorization_code","http://auth0.com/oauth/grant-type/password-realm","implicit","password","refresh_token"],"custom_login_page_on":true,"addons":{"firebase":{"client_email":"john.doe@example.com","lifetime_in_seconds":1,"private_key":"wer","private_key_id":"qwreerwerwe"},"samlp":{"audience":"https://example.com/saml","createUpnClaim":false,"digestAlgorithm":"sha1","includeAttributeNameFormat":true,"lifetimeInSeconds":3600,"logout":{},"mapIdentities":false,"mapUnknownClaimsAsIs":false,"mappings":{"email":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress","name":"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"},"nameIdentifierFormat":"urn:oasis:names:tc:SAML:2.0:nameid-format:persistent","nameIdentifierProbes":["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"],"passthroughClaimsWithNoMapping":false,"signatureAlgorithm":"rsa-sha1","signingCert":"-----BEGIN PUBLIC KEY-----\nMIGf...bpP/t3\n+JGNGIRMj1hF1rnb6QIDAQAB\n-----END PUBLIC KEY-----\n","typedAttributes":true}},"token_endpoint_auth_method":"client_secret_post","client_metadata":{"foo":"zoo"},"mobile":{"ios":{"app_bundle_identifier":"com.my.bundle.id","team_id":"9JA89QQLNQ"}},"initiate_login_uri":"https://example.com/login","refresh_token":{"rotation_type":"rotating","expiration_type":"expiring","leeway":42,"token_lifetime":424242,"infinite_token_lifetime":true,"infinite_idle_token_lifetime":false,"idle_token_lifetime":3600},"organization_usage":"deny","organization_require_behavior":"no_prompt"}' + headers: + Content-Type: + - application/json; charset=utf-8 + status: 200 OK + code: 200 + duration: 1ms + - request: + body: "" + form: {} + headers: + Content-Type: + - application/json + User-Agent: + - Go-Auth0-SDK/0.10.0 + url: https://terraform-provider-auth0-dev.eu.auth0.com/api/v2/clients/rwWGZj0S25n6bo6mZ622lHQQTS52Dc2Y + method: DELETE + response: + body: "" + headers: + Content-Type: + - application/json; charset=utf-8 + status: 204 No Content + code: 204 + duration: 1ms