我有一个 ASP.NET Web 应用程序,它使用基于 WCF IIS 的后端服务。
我可以对 Web 应用程序使用 Active Directory 身份验证,但我也想在 WCF 服务(位于另一台 IIS 服务器上)上使用它。
是否可以仅通过配置来做到这一点?
最佳答案
解决了。 在网络应用程序配置集中:
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows"/>
<message clientCredentialType="UserName" algorithmSuite="Default"/>
</security>
在 WCF 部分:
<bindings>
<basicHttpBinding>
<binding>
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows"/>
</security>
</binding>
</basicHttpBinding>
</bindings>
问题是我需要多 sleep 。
关于c# - 在 IIS 服务器之间传递 Windows 身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13157762/