❔ Assign Keycloak Roles to User Identity Roles in ASP.NET Core
I'm using OIDC to authenticate with keycloak and finally communicate with Azure.
I did the configuration in Program.cs (see image).
I tried to add the keycloak roles to User Identity roles by adding a new claim(ClaimsType.Role)
The problem is when I used the [Authorize(Roles = "admin")] for example it return Access Denied.
Any idea how to assign the keycloak roles to the Claim Identity Roles in ASP.NET Core ?
THank you
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.