The GenericPrincipal constructor requires an array of roles for `IsInRole` to work. If null is passed in for that, then it will always return false, even if role claims are present on its identities.
Fixing IsInRole Always False in a .NET MVC Project without Microsoft Identity | Brent Lineberry
The GenericPrincipal constructor requires an array of roles for `IsInRole` to work. If null is passed in for that, then it will always return false, even if role claims are present on its identities.