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