locked
How Can I Override WCF To Return Status Code 401 (Not authorized) RRS feed

  • Question

  • How can I intercept a call to my data service (*.svc file) to inject my own logic that would check to see if the user is currently authenticated in their asp.net session is still active?  When I detect this situation plan to return a 401 code so that my ajax library reacts appropriately.

    I know how to interrogate the session and set the appropriate headers but I don't know how to hook into the WCF Data Services processing pipeline.

    Thanks

    Mark

    Monday, September 20, 2010 12:45 AM

All replies