I have keycloack realm with authorization code flow with public access type.
How can I get user roles from keycloak userinfo endpoint without client_secret?
I'm trying to use mappers but can't get this information. Userinfo endpoint return only this:
{
"sub":"ace69576-614e-41fe-9584-aac69c34dec1",
"email_verified":true,
"name":"John Doe",
"Token Claim Name":[
"Realm Role prefixuma_authorization",
"Realm Role prefixoffline_access"
],
"preferred_username":"user",
"given_name":"John",
"family_name":"Doe",
"email":"johndoe@example.com"
}