mirror of
https://github.com/gravitational/teleport
synced 2024-10-18 16:24:03 +00:00
add section for username_claim (#26876)
This commit is contained in:
parent
b3e7a30f8b
commit
c2e4871725
|
@ -239,6 +239,22 @@ spec:
|
|||
allow_unverified_email: true
|
||||
```
|
||||
|
||||
### Optional: Specify a claim to use as the username
|
||||
|
||||
By default, Teleport will use the user's email as their Teleport username.
|
||||
|
||||
You can define a `username_claim` to specify the claim that should be used as the username instead.
|
||||
|
||||
```yaml
|
||||
kind: oidc
|
||||
version: v2
|
||||
metadata:
|
||||
name: connector
|
||||
spec:
|
||||
# Use the `preferred_username` claim as the user's Teleport username.
|
||||
username_claim: preferred_username
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
For the Web UI, if the above configuration were real, you would see a button
|
||||
|
|
Loading…
Reference in a new issue