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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Security | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1825 | Hits: 109

Similar Posts

  • Exporting SWF & FLV format reports in SSRS 2005 and 2008 more
  • Linq to Mocks is finally born more
  • CI and Configurable Service Installers more
  • A Look at Lazy Loading in EF4 more
  • How to completely process and filter all bounced e-mail messages and get a notification via email when it's completed! more
  • Letting ASP.NET Handle Image File Extensions in IIS 6 more
  • Handling security for Flex and Silverlight in ASP.NET more
  • Dev Connections - The Code! more
  • Aspose.Slides for Reporting Services supports SQL Server 2008 more
  • Identity Maps more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD