Open
Description
Type of issue
Code doesn't work
Description
I have a JWT that looks like this:
{
"aud": "xxx",
"iss": "https://login.microsoftonline.com/xxx/v2.0",
...,
"azp": "xxx",
"roles": [
"my_role"
],
...
"ver": "2.0"
}
This token is processed by the Azure Application Service Authentication layer and I can see the "roles" claim defined in my ClaimsPrincipal. Therefore when I run:
HttpContext.User.IsInRole("my_role");
I was expecting this to return true but it returns false. It's not really clear in the docs why this wouldn't work.
Page URL
Content source URL
Document Version Independent Id
adcabe65-9e9e-0eb4-20fc-766acfea926e