Skip to content

Commit

Permalink
Add examples for strategy_version
Browse files Browse the repository at this point in the history
  • Loading branch information
acwest committed Sep 19, 2024
1 parent f3e600d commit b185749
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 12 deletions.
17 changes: 11 additions & 6 deletions docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -253,6 +254,7 @@ resource "auth0_connection" "oauth2" {
options {
client_id = "<client-id>"
client_secret = "<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"
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions examples/resources/auth0_connection/resource.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions examples/resources/auth0_connection/resource_with_ad.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 7 additions & 6 deletions examples/resources/auth0_connection/resource_with_azure_ad.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ resource "auth0_connection" "oauth2" {
options {
client_id = "<client-id>"
client_secret = "<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"
Expand Down
1 change: 1 addition & 0 deletions examples/resources/auth0_connection/resource_with_saml.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b185749

Please sign in to comment.