【发布时间】:2012-02-13 15:44:10
【问题描述】:
我有一个 WCF 4 服务,它位于 Secure 子文件夹中,可在客户端使用 .NET AuthenticationService 使用 Forms 身份验证进行身份验证后访问。
此 WCF 服务适用于通过 json 进行通信但不是 ASP.NET 应用程序的移动应用程序客户端。我已成功将服务配置为使用 json,并且 AuthenticationService 具有许多地方记录的标准配置,例如http://msdn.microsoft.com/en-us/library/bb398990.aspx
AuthenticationService 的文档说“应用程序必须能够发送和使用 SOAP 消息”。但是我希望客户端也能够使用 json 进行身份验证。这可能吗?需要什么配置?
我发现这篇文章http://weblogs.asp.net/asptest/archive/2008/12/09/working-with-the-asp-net-ajax-authentication-service.aspx 所以看起来 AuthenticationService 可以处理 json 但它使用客户端应用程序服务。移动应用客户端不是 ASP.NET 应用。
【问题讨论】:
标签: wcf json forms-authentication