WIF、双工和绑定 [英] WIF, Duplex and Bindings

查看:32
本文介绍了WIF、双工和绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 WIF 创建了 STS,但如何才能使双工回调工作.

I've used WIF to create a STS but how can I get Duplex callbacks working.

我当前使用的绑定是 WS2007FederationHttp.我认为它不支持双工.

The current binding i'm using is WS2007FederationHttp. Which I'm lead to believe doesn't support Duplex.

WIF 可以支持双工吗?

Can WIF support duplex?

推荐答案

WIF 可以,但联邦绑定不是开箱即用的.你会想要做这样的事情:

WIF can but that federation binding doesn't out of the box. You'll want to do something like:

        // Setting RequireClientCertificate = true enables mutual authentication (2 way SSL), originally disabled for WS2007FederationHttpBinding
        HttpsTransportBindingElement httpsBinding = outputBinding.Elements.Find<HttpsTransportBindingElement>();
        httpsBinding.RequireClientCertificate = true;

这篇关于WIF、双工和绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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