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.

https://orangegnome.com/posts/2796/fixing-isinrole-always-false-in-a-net-mvc-project-without-microsoft-identity

#Aspnet #NetMvc #RolebasedAuthorization

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.

Orange Gnome