From a832a95a622879220f61068a7461b53dfd2a8afb Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 17 Mar 2023 14:20:21 +0100 Subject: [PATCH] oidc: use the username for mapping --- src/oidc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oidc.js b/src/oidc.js index 77933301e..41b1ddfdb 100644 --- a/src/oidc.js +++ b/src/oidc.js @@ -477,7 +477,7 @@ async function claims(userId, use, scope) { const lastName = nameParts.length > 1 ? nameParts[nameParts.length - 1] : ''; // choose last part, if it exists const claims = { - sub: userId, // it is essential to always return a sub claim + sub: user.username, // it is essential to always return a sub claim email: user.email, email_verified: true, family_name: lastName,