WIF manually generate federationmetadata.xml

空扰寡人 提交于 2020-01-02 02:21:05

问题


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?


回答1:


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




回答2:


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)




回答3:


Right click the project and configure STS.



来源:https://stackoverflow.com/questions/1752214/wif-manually-generate-federationmetadata-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!