【问题标题】:Windows 8 App NTLM authWindows 8 应用 NTLM 身份验证
【发布时间】:2013-07-03 07:16:33
【问题描述】:

我用 C# 编写了一个程序,该程序使用 NTLM auth(通过 SOAP 的 Sharepoint 2010 服务器)访问 Web 服务。现在我想将此程序移植到 Windows 8 应用程序。

在我的程序中,我在 App.config 中使用了以下设置以允许使用 Windows 登录凭据:

<security mode="TransportCredentialOnly">
   <transport clientCredentialType="Ntlm"/>
</security>

由于这在 Windows 8 应用程序中是不可能的,我该如何实现呢?

【问题讨论】:

    标签: soap windows-8 ntlm


    【解决方案1】:

    您需要手动编码。我已经能够使用以下方式连接到我的 SP:

    BasicHttpBinding MyHttpBinding = new BasicHttpBinding();

    MyHttpBinding.Security.Mode = BasicHttpSecurityMode.Transport;

    MyHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-04
      • 2018-09-28
      • 2016-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多