我是使用WCF的新手,需要一些帮助为简单的WCF 4.0服务配置安全性。我想允许一个特定的域用户帐户能够访问该服务,而不是其他人。我已经看到一些示例代码,其中通过客户端应用程序中的代理发送帐户凭证,调用该服务,如下所示: proxy.ClientCredentials.Windows.ClientCredential.UserName =“MyUsername”; proxy.ClientCredentials.Windows.ClientCredential.Password =“MyPassword”; 但我不知道如何配置我的服务中的端点,以接受该用户作为唯一的授权使用该服务的用户。这里是我的终点代码:WCF 4.0安全
<endpoint address="" binding="wsHttpBinding" bindingConfiguration=""
contract="EvalServiceLibrary.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
您是否使用Windows身份验证? – 2010-12-09 16:05:26