I am migrating an old application that use the SqlMemberShipProvider and have a lot of authorization rules. e.g.
<location path="test/Technical.html">
<system.web>
<authorization>
<allow roles="Technical" />
<deny users="*" />
</authorization>
</system.web>
</location>
<location path="test/Admin.html">
<system.web>
<authorization>
<allow roles="Admin" />
<deny users="*" />
</authorization>
</system.web>
</location>
And am migrating to the new IdentityProvider, does the Identity Provider recognize the old rules from web.config ?
I haven't tried it with
Identityyet but I have reason to believe that your mentionedweb.configsettings should work withIdentityas well. Because Identity framework usesClaimsPrincipalobject which implements the oldIprincipalinterface and it isIPrincipalwhich has the implementation ofIsInRolemethod. I believe that this method is used to get the required functionality.