WCF之安全性

所谓安全性就是给服务添加一个标识,然后允许客户端每次调用服务端的任何操作之前对服务进行身份验证,规避恶意调用,保证客户端的安全。

1  <endpoint address="http://localhost:8000/GIX4/session" binding="wsHttpBinding" contract="Calculator.Service.ICalculatorSession" name="session">
2                 <identity>
3                     <userPrincipalName value="chenlh@huawei"/>
4                 </identity>
5             </endpoint>
原文地址:https://www.cnblogs.com/lihongchen/p/3611480.html