Skip to content

Commit

Permalink
Add preferred_username as OIDC claim
Browse files Browse the repository at this point in the history
  • Loading branch information
Brutus5000 committed Nov 7, 2024
1 parent 14aa2ea commit ab4f350
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit ab4f350

Please sign in to comment.