oidc: use the username for mapping
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user