feat: add name claim to userinfo endpoint and id token

This commit is contained in:
Elias Schneider
2024-09-06 09:19:13 +02:00
parent 8038a111dd
commit 4e7574a297
2 changed files with 2 additions and 1 deletions

View File

@@ -303,6 +303,7 @@ func (s *OidcService) GetUserClaimsForClient(userID string, clientID string) (ma
profileClaims := map[string]interface{}{
"given_name": user.FirstName,
"family_name": user.LastName,
"name": user.FirstName + " " + user.LastName,
"preferred_username": user.Username,
}