Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Configuring the WindowsTokenRoleProvider

When you use the WindowsTokenRoleProvider, roles correspond to Microsoft Windows groups.  File: Web.Config <configuration>     <system.web>       <authentication mode="Windows" />       <roleManager enabled="true" defaultProvider="MyRoleProvider">         <providers>           <add             name="MyRoleProvider"             type="System.Web.Security.WindowsTokenRoleProvider" />         </providers>       </roleManager>     </system.web> </configuration>