ADFS得到所有角色登录的用户 [英] ADFS get all roles for a Logged in user
问题描述
我正在使用 HTTP提供了这个示例应用程序: //technet.microsoft.com/en-us/library/cc753987%28WS.10%29.aspx
与ADFS声称感知的应用程序打转转。
我的问题是我如何能得到所有角色的用户使用ADFS时,code以上的只有一个实例来检查使用User.IsInRole(角色)的角色。
i am using this sample application provided in http://technet.microsoft.com/en-us/library/cc753987%28WS.10%29.aspx to play around with ADFS claim aware application. my question is how can i get all the roles that the user is in using ADFS, the code above only has an example to check for the roles using User.IsInRole(role).
推荐答案
修改:要回答WIF注释:
Edit: To answer the comment for WIF:
有关支持的操作系统:Windows 7和Windows Server 2008 R2,Windows Server 2008的Service Pack 2的Windows Vista服务包2
For supported Operating Systems: Windows 7, Windows Server 2008 R2, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2
- 的Microsoft®Internet信息服务(IIS)7.0
- 微软的.NET Framework 3.5
有关支持的操作系统:Windows Server 2003的Service Pack 2的
For supported Operating Systems: Windows Server 2003 Service Pack 2
- 的Microsoft®Internet信息服务(IIS)6.0
- 微软的.NET Framework 3.5
这篇关于ADFS得到所有角色登录的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!