WCF 和 WebLogic SAML 互操作 [英] WCF and WebLogic SAML interop

查看:31
本文介绍了WCF 和 WebLogic SAML 互操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 WebLogic Server 版本:10.3.5.0 作为 Web 服务提供者和 .Net 4 客户端.我可以访问服务器和客户端源.我需要使用 SAML 令牌发出服务请求以传递凭据和一些元数据.我不需要 STS 提供者,客户可以用他的私人证书签署 SAML 令牌.

I have WebLogic Server Version: 10.3.5.0 as web service provider and .Net 4 client. I have access to server and client sources. I need to make service requests using SAML tokens to pass credentials and some metadata. I don't need STS provider, client can sign SAML token with his private cert.

有人这样做过吗?

现在我不在乎它是 SAML1 还是 SAML2.

Right now I don't care if it is SAML1 or SAML2.

推荐答案

我想你最好的起点是熟悉 Windows Identity Foundation (WIF),然后你可以下载 WCF 示例和示例之一是 STS,如果您没有,他们已经展示了如何制作自己的 STS.示例中的 STS 是一项服务,但您几乎可以重用代码将其制作成具有类似问题的方法的 DLL,并且您可以将 SAML 签名证书作为参数传递给它.

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. 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.

这将返回 SAML 令牌,然后您可以使用以下方法将 SAML 令牌附加到服务调用:

This will return the SAML token and you can then attach the SAML token to the Service call by using:

ChannelFactory.CreateChannelWithIssuedToken(samlToken)

这篇关于WCF 和 WebLogic SAML 互操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆