This project is read-only.

How to flow the original caller from an ASP.NET client to WCF

J.D. Meier, Jason Taylor, Prashant Bansode, Carlos Farre, Madhu Sundararajan, Steve Gregersen.

Use the following steps to impersonate the original caller from an ASP.NET client to a WCF Service:
  1. Configure your WCF Service to Use Windows Authentication
  2. Configure the ASP.NET Application’s process identity for Constrained Delegation to WCF service
  3. Impersonate the Original Caller in ASP.NET when Calling the WCF Service
using System.Security.Principal;
protected void Button1_Click(object sender, EventArgs e)
    // Obtain the authenticated user's Identity and impersonate the original caller
    using (((WindowsIdentity)HttpContext.Current.User.Identity).Impersonate())
        WCFTestService.ServiceClient myService = new WCFTestService.ServiceClient();
        Response.Write(myService.GetData(123) + "<br/>");

Additional Resources

Last edited May 8, 2008 at 5:09 AM by prashantbansode, version 1


No comments yet.