[英]WCF - Soap Webservice with Basic Auth, no ssl, self-hosted
I'm fully aware of the insecurity of this approach, but have a justified need for Basic http authentication for a WCF hosted SOAP webservice. 我完全了解这种方法的不安全性,但对于WCF托管的SOAP Web服务有合理的基本http身份验证需求。 Is there really no way to make this work?
真的没办法让这个工作吗? Every method I've found of adding basic auth requires transport (https) security.
我发现添加基本身份验证的每种方法都需要传输(https)安全性。
I think you're looking for "TransportCredentialOnly". 我想你正在寻找“TransportCredentialOnly”。 See this MSDN article .
请参阅此MSDN文章 。
The binding would then look like this: 然后绑定看起来像这样:
<bindings>
<basicHttpBinding>
<binding name="NewBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic" />
</security>
</binding>
</basicHttpBinding>
</bindings>
The above code snippet was taken from this blog article on the topic . 上面的代码片段取自关于该主题的博客文章 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.