diff --git a/src/main/kotlin/com/faforever/userservice/backend/hydra/HydraService.kt b/src/main/kotlin/com/faforever/userservice/backend/hydra/HydraService.kt index cc814b1a..b9b4981d 100644 --- a/src/main/kotlin/com/faforever/userservice/backend/hydra/HydraService.kt +++ b/src/main/kotlin/com/faforever/userservice/backend/hydra/HydraService.kt @@ -143,7 +143,8 @@ class HydraService( val roles = listOf("USER") + permissions.map { it.technicalName } val context = mutableMapOf( - "username" to user.username, + "username" to user.username, // not official OIDC claim, but required for backwards compatible + "preferred_username" to user.username, "roles" to roles, )