This project is read-only.

How to Flow the Original Caller from an ASP.NET Client to WCF

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

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/>");
        myService.Close();
    }
}
…

Additional Resources

Last edited Jun 13, 2008 at 8:40 PM by prashantbansode, version 1

Comments

No comments yet.