使用windows身份验证的WCF调用
我们有一个系统,用户访问web服务器,然后web服务器调用WCF服务 我们希望在web服务器上应用程序池的windows标识的安全上下文中调用WCF服务 最好的方法是什么?完全可以通过web.config文件中的配置来完成 谢谢使用windows身份验证的WCF调用,wcf,security,configuration,windows-authentication,Wcf,Security,Configuration,Windows Authentication,我们有一个系统,用户访问web服务器,然后web服务器调用WCF服务 我们希望在web服务器上应用程序池的windows标识的安全上下文中调用WCF服务 最好的方法是什么?完全可以通过web.config文件中的配置来完成 谢谢 设拉子是的,您应该能够做到这一点,全部在配置中: <system.serviceModel> <bindings> <netTcpBinding> <binding name="WinAuth" m
设拉子是的,您应该能够做到这一点,全部在配置中:
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="WinAuth" mode="Transport">
<transport clientCredentialType="Windows" />
<bindings>
</netTcpBinding>
</bindings>
</system.serviceModel>
如果您没有Windows调用者,则该值将为NULL,否则它将显示谁给您打电话
马克
<endpoint name="WCFService" address="......."
binding="netTcpBinding"
bindingConfiguration="WinAuth"
contract="......" />
ServiceSecurityContext.Current.WindowsIdentity