aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authorSimonErm <33630884+SimonErm@users.noreply.github.com>2024-04-16 07:41:39 +0200
committerGitHub <noreply@github.com>2024-04-16 05:41:39 +0000
commit6ba0c371c21237376c292ee92ec067b4a1ef1218 (patch)
tree6a889f172aa44cb4a49d1ad4739e30b41735175c /docs/content
parentcf9061f44a439aa7775e301a7467dbda22a06eaa (diff)
downloadgitea-6ba0c371c21237376c292ee92ec067b4a1ef1218.tar.gz
gitea-6ba0c371c21237376c292ee92ec067b4a1ef1218.zip
Allow `preferred_username` as username source for OIDC (#30454)
This PR adds the preferred_username claim as a possible username source for the oauth2_client. Closes #21518
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/administration/config-cheat-sheet.en-us.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/content/administration/config-cheat-sheet.en-us.md b/docs/content/administration/config-cheat-sheet.en-us.md
index 9de7511964..ff8bcb066c 100644
--- a/docs/content/administration/config-cheat-sheet.en-us.md
+++ b/docs/content/administration/config-cheat-sheet.en-us.md
@@ -608,9 +608,10 @@ And the following unique queues:
- `ENABLE_AUTO_REGISTRATION`: **false**: Automatically create user accounts for new oauth2 users.
- `USERNAME`: **nickname**: The source of the username for new oauth2 accounts:
- `userid` - use the userid / sub attribute
- - `nickname` - use the nickname attribute
+ - `nickname` - use the nickname
+ - `preferred_username` - use the preferred_username
- `email` - use the username part of the email attribute
- - Note: `nickname` and `email` options will normalize input strings using the following criteria:
+ - Note: `nickname`, `preferred_username` and `email` options will normalize input strings using the following criteria:
- diacritics are removed
- the characters in the set `['ยด\x60]` are removed
- the characters in the set `[\s~+]` are replaced with `-`