spring-security-workshop icon indicating copy to clipboard operation
spring-security-workshop copied to clipboard

Change Keycloak JWT to include "groups" attribute with valid roles

Open mrhaki opened this issue 2 years ago • 0 comments

Instead of using the nested structure of realm_access/realm_roles we can introduce a new "groups" attribute of type string array.

{... "groups": ["HR"] .. }

We can do this with client scopes or protocol mappers on the client.

mrhaki avatar Mar 23 '23 13:03 mrhaki