使用自定义提供程序的成员资格和角色的好处? [英] Benifits of Using Custom providers for Membership and Role?

查看:67
本文介绍了使用自定义提供程序的成员资格和角色的好处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个现有的Web应用程序,该应用程序实现了用于内部和外部用户身份验证和授权的安全性.
我们被要求为实现角色成员资格提供者模型/wif的应用程序升级而进行升级.
由于所有数据结构已经存在,因此我们需要继续使用它.我们的数据库位于Ingres中,现在使用AD并为内部和外部用户形成身份验证.现在,我们将必须编写自己的自定义成员资格和自定义角色提供程序.
那么,在这里使用角色成员资格提供程序的好处是什么呢?

We have an existing web application with Security implemented for Internal and External user authentication and authorization.
We have been asked to work on upgrading the application for implementing Role membership provider model/wif.
As all the data structure already exists we need to continue using that. Our db is in Ingres and use AD and forms authentication for Internal and External users right now. Now we will have to write our own custom membership and custom Role provider.
So then what will be the benifit of using role membership provider here?

推荐答案

用一对词"Security Trimming".
如果您尚未在菜单上使用安全修整,则值得考虑,因为您可以根据角色使菜单项可用或不可用.很多,而且我从经验中知道,工作比完成类似事情的替代方法要少得多.
您还可以根据角色控制安全性.
这是让您入门的链接
In a pair of words "Security Trimming."
If you have not used security trimming with your menus it is worth considering as you can make menu items available or unavailable based on role. It is a lot and I know from experience a lot less work than alternative ways of accoplishing something similar.
You can also control security based on roles.
Here is a link to get you started
Security Trimming

Hope this helps.
Ken


这篇关于使用自定义提供程序的成员资格和角色的好处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆