Authentication and authorization in asp.net
When we using asp.net membership provider we can easily restrict pages from anonymous user by adding in web.config file:
<?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<allow roles="Manager,Admin" />
<deny users="*"/>
</authorization>
</syste开发者_高级运维m.web>
</configuration>
in my application i don't use asp.net membership authentication and i have my own tables with custom structure. also i have my User, Roles and UserInRoles Tables. i want to enable this mechanism in my application
any ideas?
Refer to the following:
Implementing a Membership Provider
Implementing a Role Provider
Implementing a Profile Provider
[How Do I:] Create a Custom Membership Provider? (Video)
[How Do I:] Create a Custom Profile Provider? (Video)
精彩评论