简体   繁体   English

WCF和WebLogic SAML互操作

[英]WCF and WebLogic SAML interop

I have WebLogic Server Version: 10.3.5.0 as web service provider and .Net 4 client. 我有WebLogic Server版本:10.3.5.0作为Web服务提供程序和.Net 4客户端。 I have access to server and client sources. 我可以访问服务器和客户端源。 I need to make service requests using SAML tokens to pass credentials and some metadata. 我需要使用SAML令牌发出服务请求以传递凭据和一些元数据。 I don't need STS provider, client can sign SAML token with his private cert. 我不需要STS提供程序,客户端可以使用其私人证书签署SAML令牌。

Has anybody done that? 有人做过吗?

Right now I don't care if it is SAML1 or SAML2. 现在,我不在乎它是SAML1还是SAML2。

I guess the good starting point for you would be to get familiar with Windows Identity Foundation (WIF), then you can download the WCF samples and one of the sample is of STS where they have shown how to make your own STS if you don't have one. 我想您的一个很好的起点是熟悉Windows Identity Foundation(WIF),然后您可以下载WCF示例,其中一个示例是STS,他们演示了如何制作自己的STS。没有一个。 STS in the sample is a service, but you can pretty much reuse the code to make it into a DLL that will have a method like issue, and you can pass the SAML signing cert as parameter to it. 样本中的STS是一项服务,但是您几乎可以重用代码以将其放入具有类似issue之类的方法的DLL中,并且可以将SAML签名证书作为参数传递给它。

This will return the SAML token and you can then attach the SAML token to the Service call by using: 这将返回SAML令牌,然后您可以使用以下方法将SAML令牌附加到服务调用:

ChannelFactory.CreateChannelWithIssuedToken(samlToken)

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

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