WCF Web Services - Multiple Hop impersonation on the same server

Posted by Lerxst on Stack Overflow See other posts from Stack Overflow or by Lerxst
Published on 2010-05-26T13:45:44Z Indexed on 2010/05/26 13:51 UTC
Read the original article Hit count: 267

Filed under:
|
|
|
|

Hi Folks

I have 3 web services, all located on the same server.

My Client calls Service A, which impersonates the client to call Service B, and all is well.

Now, I want to impersonate the caller of service B (which is my username) to call Service C. When I use the same technique as before (AllowedImpersonationLevel = Impersonate, user.Impersonate()), The user doesnt get passed to service C. Instead, Service C sees the user as the user I am running it under in IIS.

Is there anything special I need to do to get this working? Is this a delegation issue? (I thought it would not be delegation because they are all on the same server)

Thanks SO!

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET