简体   繁体   English

asp.net角色管理

[英]asp.net roles management

In my Application I have three types of users.(1)anonymous user (2) Members and (3) Admin. 在我的应用程序中,我有三种类型的用户。(1)匿名用户(2)成员和(3)管理员。

I want to create roles for these users: when a user want to visit the site then he/she may see different Menus like an access control list. 我想为这些用户创建角色:当用户想要访问站点时,他/她可能会看到不同的菜单,例如访问控制列表。 And when the user want to access the page or perform some sort of operation, then first its role is checked. 并且,当用户想要访问页面或执行某种操作时,首先要检查其角色。

Suppose only admin can have the delete Operation access, so other users cannot see the delete operation or if this is not possible then at least he/she cannot allowed to do this operation. 假设只有管理员可以具有删除操作访问权限,所以其他用户无法看到删除操作,或者如果无法执行删除操作,那么至少他/她不能执行该操作。

I used WSAT (website administration tool ) for asp.net application ,but later on I came to know that this not a good technique for production server to manage roles and user. 我将WSAT(网站管理工具)用于asp.net应用程序,但是后来我才知道,对于生产服务器来管理角色和用户,这不是一个好方法。 So I want a handsome technique to manage my application users. 因此,我想要一种英俊的技术来管理我的应用程序用户。

Anybody please help . 任何人请帮助。

Is this MVC? 这是MVC吗? If so, have a look at ASP.NET Identity: http://www.asp.net/identity 如果是这样,请查看ASP.NET身份: http : //www.asp.net/identity

Also check out the new Thinktecture Identity Manager, which is meant as a better replacement for the WSAT tool. 还请检查新的Thinktecture Identity Manager,它是WSAT工具的更好替代品。

http://www.hanselman.com/blog/ThinktectureIdentityManagerAsAReplacementForTheASPNETWebSiteAdministrationTool.aspx http://www.hanselman.com/blog/ThinktectureIdentityManagerAsAReplacementForTheASPNETWebSiteAdministrationTool.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM