Posted on: 5/7/2012 4:22:26 PM | Views : 239

Hello. I have a very simple custom role provider that retrives the roles from a SQL Server database, with a custom schema.
Here's the configuration in the web.config:
<roleManager defaultProvider="CustomRoleProvider" enabled="true"> <providers> <clear /> <remove name="AspNetSqlRoleProvider"/> <add name="CustomRoleProvider" type="MyApp.Web.Infrastructure.Security.CustomRoleProvider" connectionStringName="MyConnectionString" applicationName="/MyApp" writeExceptionsToEventLog="false" /> </providers> </roleManager> The configuration secures some sections of the site:
<location path="UnitManagement.aspx"> <system.web> <authorization> <deny users="*"/> <allow roles="SuperUser"/> </authorization> </syst ...

Go to the complete details ...