Skip to content

Commit ab4f350

Browse files
committed
Add preferred_username as OIDC claim
1 parent 14aa2ea commit ab4f350

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/faforever/userservice/backend/hydra/HydraService.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ class HydraService(
143143
val roles = listOf("USER") + permissions.map { it.technicalName }
144144

145145
val context = mutableMapOf(
146-
"username" to user.username,
146+
"username" to user.username, // not official OIDC claim, but required for backwards compatible
147+
"preferred_username" to user.username,
147148
"roles" to roles,
148149
)
149150

0 commit comments

Comments
 (0)