From b185749137226acaee0ceac3620ab85dcb9621c1 Mon Sep 17 00:00:00 2001 From: "A. Craig West" Date: Thu, 19 Sep 2024 14:12:07 -0400 Subject: [PATCH] Add examples for strategy_version --- docs/resources/connection.md | 17 +++++++++++------ examples/resources/auth0_connection/resource.tf | 1 + .../auth0_connection/resource_with_ad.tf | 1 + .../auth0_connection/resource_with_azure_ad.tf | 13 +++++++------ .../auth0_connection/resource_with_oauth2.tf | 1 + .../auth0_connection/resource_with_saml.tf | 1 + 6 files changed, 22 insertions(+), 12 deletions(-) diff --git a/docs/resources/connection.md b/docs/resources/connection.md index 1562ef02f..a3febd179 100644 --- a/docs/resources/connection.md +++ b/docs/resources/connection.md @@ -31,6 +31,7 @@ resource "auth0_connection" "my_connection" { options { password_policy = "excellent" brute_force_protection = true + strategy_version = 2 enabled_database_customization = true import_mode = false requires_username = true @@ -253,6 +254,7 @@ resource "auth0_connection" "oauth2" { options { client_id = "" client_secret = "" + strategy_version = 2 scopes = ["basic_profile", "profile", "email"] token_endpoint = "https://auth.example.com/oauth2/token" authorization_endpoint = "https://auth.example.com/oauth2/authorize" @@ -284,6 +286,7 @@ resource "auth0_connection" "ad" { disable_self_service_change_password = true brute_force_protection = true tenant_domain = "example.com" + strategy_version = 2 icon_url = "https://example.com/assets/logo.png" domain_aliases = [ "example.com", @@ -312,12 +315,13 @@ resource "auth0_connection" "azure_ad" { strategy = "waad" show_as_button = true options { - identity_api = "azure-active-directory-v1.0" - client_id = "123456" - client_secret = "123456" - app_id = "app-id-123" - tenant_domain = "example.onmicrosoft.com" - domain = "example.onmicrosoft.com" + identity_api = "azure-active-directory-v1.0" + client_id = "123456" + client_secret = "123456" + strategy_version = 2 + app_id = "app-id-123" + tenant_domain = "example.onmicrosoft.com" + domain = "example.onmicrosoft.com" domain_aliases = [ "example.com", "api.example.com" @@ -468,6 +472,7 @@ resource "auth0_connection" "samlp" { sign_in_endpoint = "https://saml.provider/sign_in" sign_out_endpoint = "https://saml.provider/sign_out" disable_sign_out = true + strategy_version = 2 tenant_domain = "example.com" domain_aliases = ["example.com", "alias.example.com"] protocol_binding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" diff --git a/examples/resources/auth0_connection/resource.tf b/examples/resources/auth0_connection/resource.tf index fe246c74b..a397664b3 100644 --- a/examples/resources/auth0_connection/resource.tf +++ b/examples/resources/auth0_connection/resource.tf @@ -12,6 +12,7 @@ resource "auth0_connection" "my_connection" { options { password_policy = "excellent" brute_force_protection = true + strategy_version = 2 enabled_database_customization = true import_mode = false requires_username = true diff --git a/examples/resources/auth0_connection/resource_with_ad.tf b/examples/resources/auth0_connection/resource_with_ad.tf index d5cc5ff92..fa0de5452 100644 --- a/examples/resources/auth0_connection/resource_with_ad.tf +++ b/examples/resources/auth0_connection/resource_with_ad.tf @@ -8,6 +8,7 @@ resource "auth0_connection" "ad" { disable_self_service_change_password = true brute_force_protection = true tenant_domain = "example.com" + strategy_version = 2 icon_url = "https://example.com/assets/logo.png" domain_aliases = [ "example.com", diff --git a/examples/resources/auth0_connection/resource_with_azure_ad.tf b/examples/resources/auth0_connection/resource_with_azure_ad.tf index 20cad2011..21d1baeb7 100644 --- a/examples/resources/auth0_connection/resource_with_azure_ad.tf +++ b/examples/resources/auth0_connection/resource_with_azure_ad.tf @@ -3,12 +3,13 @@ resource "auth0_connection" "azure_ad" { strategy = "waad" show_as_button = true options { - identity_api = "azure-active-directory-v1.0" - client_id = "123456" - client_secret = "123456" - app_id = "app-id-123" - tenant_domain = "example.onmicrosoft.com" - domain = "example.onmicrosoft.com" + identity_api = "azure-active-directory-v1.0" + client_id = "123456" + client_secret = "123456" + strategy_version = 2 + app_id = "app-id-123" + tenant_domain = "example.onmicrosoft.com" + domain = "example.onmicrosoft.com" domain_aliases = [ "example.com", "api.example.com" diff --git a/examples/resources/auth0_connection/resource_with_oauth2.tf b/examples/resources/auth0_connection/resource_with_oauth2.tf index ba64a1128..36a743b7b 100644 --- a/examples/resources/auth0_connection/resource_with_oauth2.tf +++ b/examples/resources/auth0_connection/resource_with_oauth2.tf @@ -7,6 +7,7 @@ resource "auth0_connection" "oauth2" { options { client_id = "" client_secret = "" + strategy_version = 2 scopes = ["basic_profile", "profile", "email"] token_endpoint = "https://auth.example.com/oauth2/token" authorization_endpoint = "https://auth.example.com/oauth2/authorize" diff --git a/examples/resources/auth0_connection/resource_with_saml.tf b/examples/resources/auth0_connection/resource_with_saml.tf index a83672ef7..a66f136df 100644 --- a/examples/resources/auth0_connection/resource_with_saml.tf +++ b/examples/resources/auth0_connection/resource_with_saml.tf @@ -10,6 +10,7 @@ resource "auth0_connection" "samlp" { sign_in_endpoint = "https://saml.provider/sign_in" sign_out_endpoint = "https://saml.provider/sign_out" disable_sign_out = true + strategy_version = 2 tenant_domain = "example.com" domain_aliases = ["example.com", "alias.example.com"] protocol_binding = "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST"