c# - 在 IIS 服务器之间传递 Windows 身份验证

标签 c# asp.net wcf iis active-directory

我有一个 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/

相关文章:

c# - 防止 Button 继承 Parent 的 BackColor

c# - 创建一个返回数组的方法

c# - 使用 SocketAsyncEventArgs 时是否可以删除 ExecutionContext 和 Thread 分配?

asp.net - 从 webforms 页面以编程方式调用 asp.net mvc Controller 操作

c# - 从 WCF 返回多个响应

.net - 使用 Net.TCP 时在客户端添加 Web 引用

asp.net - 在ASP.NET + WCF下长时间运行的线程进程

c# - Mailgun 使用 RestSharp 发送附件

javascript - 从一帧到另一帧可见

asp.net - 在 ASP.net 中运行 CSS 文件中的代码