【发布时间】:2013-01-18 08:53:42
【问题描述】:
我在下面的配置中添加了一个绑定:
<services>
<service name="MyNamespace.Service.ServiceName.ServiceEndPoint">
<endpoint address="http://localhost:8012/ServiceEndPoint" binding="webHttpBinding" contract="MyNamespace.Service.ServiceName.IServiceEndPoint" behaviorConfiguration="webHttp" name="ServiceName"/>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="webHttp">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
所以我添加了 binding="webHttpBinding" 因为我想保护端点。这是我拥有的相应配置:
<bindings>
<wsHttpBinding>
<binding name="ServiceName">
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</wsHttpBinding>
</bindings>
但这似乎无法保护终点。我已经用 Firefox 尝试过这个,以确认 IE 没有自动验证并检查了 firebug 中的标题。
任何人都可以为我指出正确的配置方向吗?
谢谢, 马特
【问题讨论】:
标签: wcf wcf-security