Skip to content

Commit

Permalink
docs/identity: fix template parameter for groups (#13176)
Browse files Browse the repository at this point in the history
  • Loading branch information
austingebauer authored Nov 17, 2021
1 parent 0aa3f10 commit b6dae64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions website/content/docs/concepts/oidc-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ Example of a JSON template for a scope:

```
{
"userinfo": {
"groups": {{identity.entity.group_names}},
"email": {{identity.entity.metadata.user_email}},
"username": {{identity.entity.aliases.usermap_123.metadata.username}},
},
"nbf": {{time.now}}
"username": {{identity.entity.aliases.$MOUNT_ACCESSOR.name}},
"contact": {
"email": {{identity.entity.metadata.email}},
"phone_number": {{identity.entity.metadata.phone_number}}
},
"groups": {{identity.entity.groups.names}}
}
```

Expand Down
2 changes: 1 addition & 1 deletion website/content/docs/secrets/identity/identity-token.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ For example:
"color": {{identity.entity.metadata.color}},
"userinfo": {
"username": {{identity.entity.aliases.usermap_123.metadata.username}},
"groups": {{identity.entity.group_names}}
"groups": {{identity.entity.groups.names}}
},
"nbf": {{time.now}}
}
Expand Down
5 changes: 3 additions & 2 deletions website/content/docs/secrets/identity/oidc-provider.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ authorized to use a specific OIDC client for authentication flows:
```text
$ TOKEN_TEMPLATE=$(cat << EOF
{
"username": {{identity.entity.aliases.$USERPASS_ACCESSOR.name}},
"username": {{identity.entity.aliases.$MOUNT_ACCESSOR.name}},
"contact": {
"email": {{identity.entity.metadata.email}},
"phone_number": {{identity.entity.metadata.phone_number}}
}
},
"groups": {{identity.entity.groups.names}}
}
EOF
)
Expand Down

0 comments on commit b6dae64

Please sign in to comment.