简体   繁体   English

查找开发ADFS自定义声明转换模块所需的程序集?

[英]Finding the assemblies required to develop ADFS custom claim transformation modules?

I want to build a custom claim transformation module as per this link . 我想根据此链接构建自定义声明转换模块。 Step 1 and 2 in that article: add references to the System.Web.Security.SingleSignOn.ClaimTransforms.dll and System.Web.Security.SingleSignOn.Authorization.dll assemblies. 该文章中的步骤1和2:添加对System.Web.Security.SingleSignOn.ClaimTransforms.dllSystem.Web.Security.SingleSignOn.Authorization.dll程序集的引用。

I am unable to find these assemblies. 我无法找到这些组件。 I installed WIF and the WIF sdk on my Windows 7 laptop. 我在Windows 7笔记本电脑上安装了WIF和WIF sdk。 After that, as per this discussion , I installed ADFS on a Windows 2008 R2 server. 之后,根据此讨论 ,我在Windows 2008 R2服务器上安装了ADFS。 However, I could not find the assemblies there either, even when browsing the GAC from a command prompt. 但是,即使从命令提示符浏览GAC,我也找不到那里的程序集。

Can somebody please point me in the right direction to locate these assemblies? 有人可以指出我正确的方向找到这些组件? There does not appear to be an ADFS sdk. 似乎没有ADFS sdk。

OK, got it. 好的,我知道了。 Merely installing the ADFS 2.0 download is not enough. 仅仅安装ADFS 2.0下载是不够的。 The assemblies can be located in c:\\windows\\adfs\\bin\\ref, but only after the ADFS server role is enabled on the server. 程序集可以位于c:\\ windows \\ adfs \\ bin \\ ref中,但只能服务器上启用ADFS服务器角色之后 In my case, I had to follow these steps: 就我而言,我必须遵循以下步骤:

  • install the AD role 安装AD角色
  • Activate the domain by running dcpromo.exe 通过运行dcpromo.exe来激活域
  • Install the ADFS role 安装ADFS角色

After doing that, the required assemblies were in the folder mentioned in the other question. 执行此操作后,所需的程序集位于另一个问题中提到的文件夹中。 Both copying the assemblies to my win7 dev machine and running VS2010 on the (dev) W2K8r2 environment works now. 将程序集复制到我的win7 dev机器并在(dev)W2K8r2环境中运行VS2010都可以正常工作。

The sample claimapp is written for ADFS come with windows 2008/(and R2). 为ADFS编写的示例claimapp随Windows 2008 /(和R2)一起提供。 It's not for ADFS2.0 as one comment in MS page stated. 它不适用于ADFS2.0作为MS页面中的一条评论。 The stock ADFS is enabled as a role, while ADFS2.0 is a separate installation - they use different method(paths) to find assembly modules. 库存ADFS作为角色启用,而ADFS2.0是单独安装 - 它们使用不同的方法(路径)来查找装配模块。 ADFS2.0 can work by its own - it doesn't need ADFS role added. ADFS2.0可以自己工作 - 它不需要添加ADFS角色。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM