WCF 使用 Kerberos 配置 CustomBinding
我希望能够为自定义绑定指定安全级别,就像使用 basicHttpBinding 一样。
<customBinding>
<binding name="jsonpBinding" >
....
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</customBinding>
当它不被接受时,如何正确地做到这一点?
I want to be able to specify a security level for my custom binding the same way you do with an basicHttpBinding.
<customBinding>
<binding name="jsonpBinding" >
....
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</customBinding>
How does one do this correctly as its not accepted?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加
authenticationScheme="Negotiate"
解决了该问题。将其添加到您的 WCF 方法
将其添加到您的 WCF web.config
将以下内容添加到您的客户端(在我的例子中为 MVC Web 应用程序)。值得注意的是,svcutil 应用程序不会为您的客户端存根生成行为,您必须手动添加它。这让我有一段时间了!
Adding
authenticationScheme="Negotiate"
resolved the issue.Add this to your WCF method
Add this to your WCF web.config
Adding the following to your client (MVC Web App in my case). Its worth noting that the svcutil application does not generate the behavior for your client stub and you have to add it manualy. This had me for some time!