【发布时间】:2011-04-04 15:31:26
【问题描述】:
我想为我的 Silverlight 应用程序使用当前的 Windows 用户。使用任何其他应用程序我可以只使用WindowsIdentity,但似乎我需要将ServiceSecurityContext.Current 与WCF 一起使用。我的问题是.Current 以null 出现。
显然这是因为我使用的运输方式。我的问题是 Silverlight 不能使用 TransportWithMessageCredential 显然它不想使用 Https。
所以我尝试使用TransportWithMessageCredential,我的服务开始说它期待 Https,但正在接收 Http。
我在网上四处查看,似乎我需要使用 wsHttpBinding(Silverlight 不提供)或某种形式的访问策略才能将 Https 与 Http 结合使用(这似乎不起作用)。
肯定有更简单的方法来做到这一点?
【问题讨论】:
标签: c# silverlight wcf