gpt4 book ai didi

c# - 可以通过 SSL 通过 WCF 使用 Kerberos token 配置文件吗?

转载 作者:行者123 更新时间:2023-11-30 12:36:27 24 4
gpt4 key购买 nike

无处不在的示例展示了如何通过 WCF 执行 Kerberos Token Profile 1.1,但它使用消息安全性。事实上,WCF 实现默认为签名+加密。我需要使用 SSL,而不是使用 KTP 进行身份验证和签名,而不是加密。

如果我将模式更改为 TransportWithMessageCredential,它不再对请求进行签名。任何人都知道这是否可能,并且理想情况下有任何配置吗?谢谢

最佳答案

哎呀。让我把事情复杂化!我尝试了无数种设置组合,最终开始精简到一些简单的东西。

首先,这是开箱即用的 wsHttpBinding 的 customBinding 等价物:

http://webservices20.blogspot.com/2009/04/wcf-custombinding-equivalent-to.html

从那里开始,我开始构建,下面的配置最终做到了。我将 ServiceContract 属性指定为仅签名。然后在配置中,“Kerberos”模式负责 Kerberos token 配置文件,而 httpsTransport 负责 SSL!做到了!也许这对将来的其他人有帮助:

<customBinding>
<binding name="KerberosTokenProfileSignAndSslBinding">
<security authenticationMode="Kerberos" />
<httpsTransport />
</binding>
<customBinding>

编辑:我最后写了一篇关于细节的博客文章,以防阅读这篇文章的人需要它们 - http://robertseder.spaces.live.com/blog/cns!587F478B9240C01E!773.entry

关于c# - 可以通过 SSL 通过 WCF 使用 Kerberos token 配置文件吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3310673/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com