WIF手动生成federationmetadata.xml

发布于 2024-08-12 00:14:34 字数 156 浏览 3 评论 0原文

我正在使用 Windows Identity Foundation,并尝试创建基于 MVC.NET 的安全令牌服务并将其用作单点登录应用程序。

我唯一的问题是我不知道如何生成 federationmetadata.xml 文件。

有没有什么工具可以手动生成这个文件?

I am playing with windows identity foundation and I am trying to create an MVC.NET based Security Token Service and use it as the Single Sign On application.

My only problem is that I don't know how to generate the federationmetadata.xml file.

Is there any tool to generate this file manually?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

玻璃人 2024-08-19 00:14:34

我创建了一个自定义元数据生成器,它执行 VS 在创建 STS 项目时执行的操作。
我必须使用反射来调用代码,因为像往常一样,所有有用的东西都在 Microsoft 程序集中内部。

更多相关信息此处

I created a custom metadata generator that does what VS does when you create the STS project.
I had to use Reflection to call the code because as usual everything useful is internal in Microsoft's assemblies.

More about it here

时光磨忆 2024-08-19 00:14:34

http://stsmetadataeditor.codeplex.com/

这个工具可以用来修改现有的federationmetadata.xml

加载VS2010生成 xml 并更改您需要的任何属性并保存。

保存的版本与 VS2010 (WIF 3.5/4.0) 使用的 2007-06 架构兼容。

(建议备份您的原始 xml,以防万一)

我已经这样做了很多次,并且当我向依赖方网站(基于 VS2010)添加 STS 引用时工作得很好

http://stsmetadataeditor.codeplex.com/

This tool can be used modify an existing federationmetadata.xml

Load the VS2010 generated xml and change any attribute that you need to and save.

The saved version is compatible with the 2007-06 schema that VS2010 (WIF 3.5/ 4.0) use.

(would recommend backing up your original xml just in case )

I have done it many times and worked fine when I added STS reference to a Relying Party Website (VS2010 based)

拔了角的鹿 2024-08-19 00:14:34

右键单击该项目并配置 STS。

Right click the project and configure STS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文