【问题标题】:Pass Windows Authentication between IIS servers在 IIS 服务器之间传递 Windows 身份验证
【发布时间】:2012-10-31 12:16:39
【问题描述】:

我有一个 ASP.NET Web 应用程序,它使用基于 WCF IIS 的后端服务。

我可以对 Web 应用程序使用 Active Directory 身份验证,但我也想在 WCF 服务(在另一个 IIS 服务器上)上使用它。

是否可以仅通过配置来做到这一点?

【问题讨论】:

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


    【解决方案1】:

    解决了。 在网络应用配置集中:

    <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>
    

    事情是我需要多睡觉。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多