ASP.NET 用户/角色编辑器
我应该使用一个标准对象来编辑 ASP.NET 中的用户及其角色吗?还是我应该扮演自己的角色?
Is there a standard object I should use to edit Users and their Roles in ASP.NET? Or should I role my own?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
这是一个功能相当丰富且文档齐全的...
http://mywsat.codeplex.com/
This is one is fairly feature rich and well documented...
http://mywsat.codeplex.com/
下面的类怎么样
编辑:
角色框架的功能通过 角色公开 类,其中包含十三个用于执行基于角色的操作的静态方法。
CreateRole 和 DeleteRole 方法可以完成这项工作。
参考:http://www.asp.net/learn /security/tutorial-09-cs.aspx
What about following classes
EDIT:
The Roles framework’s functionality is exposed via the Roles class, which contains thirteen static methods for performing role-based operations.
CreateRole and DeleteRole methods will do the job.
Reference : http://www.asp.net/learn/security/tutorial-09-cs.aspx
如果您需要内置功能的自定义实现,您可以对其进行修改以满足您的需求,您可以找到一个 此处
If you need a custom implementation of the built-in functionality that you can modify to suit your needs you can find one here
有一个在本地运行良好的内置网站管理工具:http://www.developer.com/net/asp/article.php/3569166/Configuring-Your-ASPNET-20-Site.htm。这显示了一个 IIS 管理工具,但我没有使用过,所以我不知道它有多好。但这又需要登录服务器。
对于我们的应用程序,我们构建了自己的应用程序,因为无论如何我们都需要更强大的东西,至少对于用户/角色部分而言。我个人没有看到任何东西。您可以尝试查看 codeplex.com 网站,我记得过去看到过一些东西,但从未研究/实验过。
HTH。
There is a built-in web site administration tool that works well locally: http://www.developer.com/net/asp/article.php/3569166/Configuring-Your-ASPNET-20-Site.htm. This shows an IIS administration tool, but I have not used that so I don't know how well it is. But that again would require logging into the server.
For our app, we built our own because we needed something more robust anyway, at least for the users/roles part. I haven't seen anything personally. You could try checking out the codeplex.com site, I remember seeing some things in the past, but never researched/experimented.
HTH.
使用后端的标准成员资格和角色提供程序框架。有两个现成的成员资格提供程序可处理针对数据库或 Active Directory 的身份验证(SqlMembershipProvider 和 ActiveDirectoryMembershipProvider)。还有一些现成的角色提供程序(SqlRoleProvider、AuthorizationStoreRoleProvider 和 WindowTokenRoleProvider)。
对于前端,登录控件是标准的,并且与提供程序框架交互良好......但仅用于登录和更改密码。
然而,据我所知,没有标准的 GUI 控件或向导具有用于编辑和管理用户的开箱即用功能。您必须为此滚动自己的页面。
Use the standard Membership and Role providers framework for the backend. There are two out-of-the box Membership providers that handle authentication against the DB or Active directory (SqlMembershipProvider and ActiveDirectoryMembershipProvider). There are a couple of out-of-the box Role providers as well (SqlRoleProvider, AuthorizationStoreRoleProvider, and WindowTokenRoleProvider).
For the front-end, the Logon controls are standard and interact well with the Provider framework...but only for login and changing passwords.
To my knowledge however, there are no standard GUI controls or wizards that have out-of-the box functionality for editing and administering users. You'll have to roll your own pages for that.
我写了几个自定义 aspx 页面。
I wrote a couple of custom aspx pages.