【问题标题】:How to pass Credentials to WCF service for Windows Authentication from Silverlight如何从 Silverlight 将凭据传递给 WCF 服务以进行 Windows 身份验证
【发布时间】:2011-08-19 00:06:20
【问题描述】:

我已为 Windows 身份验证启用 WCF 服务。如何从 Silverlight 应用程序将凭据传递给服务。 对于凭据,我可以通过代码 WebContext.Current.User.DisplayName 获取用户名和域。但是我将如何通过代码获取客户端密码。 serviceClient.Credentials = newSystem.Net.NetworkCredential("UserName", "Password", "Domian");

【问题讨论】:

    标签: silverlight wcf wcf-security wcf-data-services wcf-client


    【解决方案1】:

    如果您已将客户端配置为使用 Windows 身份验证模式,它应该会自动完成,请阅读以下链接:

    Use Windows Authentication to Secure a Service for Silverlight Applications

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-13
      • 2010-12-08
      • 1970-01-01
      • 2012-11-20
      相关资源
      最近更新 更多