Skip to content

Commit

Permalink
Fix docs for user_id_attribute for AzureAD connection options (auth0#…
Browse files Browse the repository at this point in the history
…1047)

ESD-40277: Fix docs for user_id_attribute for AzureAD connection options
  • Loading branch information
acwest authored and bryanlewis-okta committed Oct 24, 2024
1 parent adc92c8 commit e0d90df
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ resource "auth0_connection" "azure_ad" {
client_id = "123456"
client_secret = "123456"
strategy_version = 2
user_id_attribute = "userName"
user_id_attribute = "oid"
app_id = "app-id-123"
tenant_domain = "example.onmicrosoft.com"
domain = "example.onmicrosoft.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "auth0_connection" "azure_ad" {
client_id = "123456"
client_secret = "123456"
strategy_version = 2
user_id_attribute = "userName"
user_id_attribute = "oid"
app_id = "app-id-123"
tenant_domain = "example.onmicrosoft.com"
domain = "example.onmicrosoft.com"
Expand Down
8 changes: 4 additions & 4 deletions internal/auth0/connection/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func TestAccConnectionAzureAD(t *testing.T) {
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.client_id", "123456"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.client_secret", "123456"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.strategy_version", "2"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.user_id_attribute", "userName"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.user_id_attribute", "oid"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.tenant_domain", "example.onmicrosoft.com"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.domain", "example.onmicrosoft.com"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.domain_aliases.#", "2"),
Expand All @@ -616,7 +616,7 @@ func TestAccConnectionAzureAD(t *testing.T) {
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.identity_api", "azure-active-directory-v1.0"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.client_id", "123456"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.client_secret", "123456"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.user_id_attribute", "email"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.user_id_attribute", "sub"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.tenant_domain", "example.onmicrosoft.com"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.domain", "example.onmicrosoft.com"),
resource.TestCheckResourceAttr("auth0_connection.azure_ad", "options.0.domain_aliases.#", "2"),
Expand Down Expand Up @@ -654,7 +654,7 @@ resource "auth0_connection" "azure_ad" {
use_wsfed = false
waad_protocol = "openid-connect"
waad_common_endpoint = false
user_id_attribute = "userName"
user_id_attribute = "oid"
api_enable_users = true
scopes = [
"basic_profile",
Expand Down Expand Up @@ -690,7 +690,7 @@ resource "auth0_connection" "azure_ad" {
use_wsfed = false
waad_protocol = "openid-connect"
waad_common_endpoint = false
user_id_attribute = "email"
user_id_attribute = "sub"
api_enable_users = true
scopes = [
"basic_profile",
Expand Down
Loading

0 comments on commit e0d90df

Please sign in to comment.