Skip to content

Commit

Permalink
ESD-32750: Update connection mapping mode docs (#887)
Browse files Browse the repository at this point in the history
Update connection mapping mode docs
  • Loading branch information
sergiught committed Nov 28, 2023
1 parent 2d6ad64 commit 8ce6af1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/resources/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ resource "auth0_connection" "oidc" {
}
attribute_map {
mapping_mode = "basic_profile"
mapping_mode = "use_map"
userinfo_scope = "openid email profile groups"
attributes = jsonencode({
"name" : "$${context.tokenset.name}",
Expand Down Expand Up @@ -755,7 +755,7 @@ Optional:

Required:

- `mapping_mode` (String) Method used to map incoming claims. Possible values: `use_map`, `bind_all` or `basic_profile`.
- `mapping_mode` (String) Method used to map incoming claims. Possible values: `use_map` (Okta or OIDC), `bind_all` (OIDC) or `basic_profile` (Okta).

Optional:

Expand Down
2 changes: 1 addition & 1 deletion examples/resources/auth0_connection/resource_with_oidc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "auth0_connection" "oidc" {
}

attribute_map {
mapping_mode = "basic_profile"
mapping_mode = "use_map"
userinfo_scope = "openid email profile groups"
attributes = jsonencode({
"name" : "$${context.tokenset.name}",
Expand Down
2 changes: 1 addition & 1 deletion internal/auth0/connection/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ var optionsSchema = &schema.Schema{
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"use_map", "bind_all", "basic_profile"}, false),
Description: "Method used to map incoming claims. Possible values: `use_map`, `bind_all` or `basic_profile`.",
Description: "Method used to map incoming claims. Possible values: `use_map` (Okta or OIDC), `bind_all` (OIDC) or `basic_profile` (Okta).",
},
"userinfo_scope": {
Type: schema.TypeString,
Expand Down

0 comments on commit 8ce6af1

Please sign in to comment.