In MVC4 I enabled <authentication mode="Windows"/>
in the web.config and created a custom role provider which then would automatically wrap the WindowsIdentity
with a RolePrincipal
for you. Worked like a charm.
How would you do this in MVC5 using OWIN and/or Microsoft.ASPNET.Identity?