开发者

ASP.NET User/Role Editor

开发者 https://www.devze.com 2022-12-20 10:30 出处:网络
Is there a standard object I should use to edit Users and their Roles in ASP开发者_开发知识库.NET?Or should I role my own?This is one is fairly feature rich and well documented...

Is there a standard object I should use to edit Users and their Roles in ASP开发者_开发知识库.NET? Or should I role my own?


This is one is fairly feature rich and well documented...

http://mywsat.codeplex.com/


What about following classes

  • MembershipUser
  • MembershipProvider

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


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.


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.


I wrote a couple of custom aspx pages.

0

精彩评论

暂无评论...
验证码 换一张
取 消