Sharing the security context between ASP.NET and WCF REST Services
Posted by: Pablo M. Cibraro (aka Cibrax),
on 08 Apr 2009 |
View original | Bookmarked: 0 time(s)
It is very common for WCF services that work as Ajax callbacks and ASP.NET pages that live in the same web application to share a common security context for the authenticated user. However, in order to make this happens, the ASP.NET compatibility mode must be enabled for the WCF service. When that setting is enabled, WCF basically includes the service call within the ASP.NET pipeline, all the ASP.NET modules configured for the application are executed, and as result, the HttpContext get initialized...