【问题标题】:WIF, Duplex and BindingsWIF、双工和绑定
【发布时间】:2011-03-31 14:40:03
【问题描述】:

我已经使用 WIF 创建了 STS,但如何才能让 Duplex 回调正常工作。

我当前使用的绑定是 WS2007FederationHttp。我相信它不支持 Duplex。

WIF 可以支持双工吗?

【问题讨论】:

    标签: wcf wcf-binding wif


    【解决方案1】:

    WIF 可以,但联合绑定并非开箱即用。您需要执行以下操作:

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

    【讨论】:

    • 问题是要求双工通信,您的答案是建立 ssl 连接的 2 路信任。
    猜你喜欢
    • 2014-08-14
    • 1970-01-01
    • 1970-01-01
    • 2011-05-05
    • 2017-04-01
    • 2011-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多