aboutsummaryrefslogtreecommitdiffstats
path: root/custom/conf/app.example.ini
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 /custom/conf/app.example.ini
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 'custom/conf/app.example.ini')
-rw-r--r--custom/conf/app.example.ini3
1 files changed, 2 insertions, 1 deletions
diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini
index 918252044b..32b51fd7c6 100644
--- a/custom/conf/app.example.ini
+++ b/custom/conf/app.example.ini
@@ -1553,8 +1553,9 @@ LEVEL = Info
;; The source of the username for new oauth2 accounts:
;; userid = use the userid / sub attribute
;; nickname = use the nickname attribute
+;; preferred_username = use the preferred_username attribute
;; 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 `-`