是否有针对 ASP.NET Web 窗体的现成角色/成员资格框架?
与此相关的问题很少,但没有一个回答我脑海中的问题。建议包括Asp.net 会员系统、在 codeplex 上搜索基础或推出您自己的系统。推出我自己的将是最后的手段,因为它涉及测试和设计时间。我希望角色提供者执行的只是限制用户对操作的权限。您可以在下面找到一个理解它的场景,
假设您是某种论坛/讨论区的管理员,在安装软件的过程中,它为您创建了两个会员资格,例如
金牌会员
银卡会员
以下是这些会员的一些想象角色,
金牌会员:
可以编辑其他人的帖子
可以创建投票
银牌会员:
可以向管理员报告帖子
可以禁止较低会员资格的会员value
上述所有角色都是位字段,以便于基于角色进行验证。现在我的问题是,
问题
您是否知道任何角色提供者可以为我提供像上面这样的精细控制,我可以在其中编辑会员角色、创建新会员资格和分配角色等,这些也可以集成到注册时间集成
规格: .NET 2.0 和ASP.NET 2.0
There were few questions related to this but none answered the question in my head. Suggestions included Asp.net Membership system, a search on codeplex foundation or role out your own. Rolling out my own would be last resort as it would involve testing and design time involved. All i want role provider to perform is restrict users permissions over a action. Below you can find a scenario for understanding it,
Think you are admin of a Forum/Discussion board of some sort and during installation of the software it created two membership for you something like
Gold member
Silver member
Here are some imaginary roles for these memberships,
Gold member:
Can edit Posts by others
Can create Polls
Silver Member:
Can report Posts to admin
Can ban members of lower membership value
all these above roles are bit fields for ease of validation based on roles. Now my question is ,
Question
Do you know any role provider that would give me fine grain of control like above where i can edit roles for a membership, create new membership and assign roles etc which would also integrate to SignUp time integration
Specs:
.NET 2.0 & Asp.net 2.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,有,而且全部都在框中:http://msdn.microsoft。 com/en-us/library/879kf95c.aspx
Yes there is, and it's all in the box: http://msdn.microsoft.com/en-us/library/879kf95c.aspx