Passing Windows Identity to multiple servers  
Author Message
Deobrat Singh - MSFT





PostPosted: ASMX Web Services and XML Serialization, Passing Windows Identity to multiple servers Top

I have a web application that uses Windows Authentication. From this web app, I want to call a web service. Now the tricky part is that I need to pass the identity of the logged on user to the web service as well. There may be some code within the web service for which I want to impersonate the user who is logged on to the web application.

Can someone suggest anything on this Please help.. Its urgent.


.NET Development28  
 
 
rfreire





PostPosted: ASMX Web Services and XML Serialization, Passing Windows Identity to multiple servers Top

You can either set Windows Authentication for the web service too or use WSE's kerberos token to pass user credentials.


Hope it helps
Rgds
Rodrigo

 
 
Deobrat Singh





PostPosted: ASMX Web Services and XML Serialization, Passing Windows Identity to multiple servers Top

Right now, I am using Windows Authentication for the web service as well. I am not too clear on how to use kerberose user tokens.. can you shed some light on it.
 
 
rfreire





PostPosted: ASMX Web Services and XML Serialization, Passing Windows Identity to multiple servers Top

Sure, take a look at this document from msdn.... it will give you the whole set of possibilities that comes with WSE and web service security.

http://msdn.microsoft.com/practices/compcat/default.aspx pull=/library/en-us/dnpag2/html/wssp.asp

Rgds

Rodrigo


 
 
Ahmed Nagy





PostPosted: ASMX Web Services and XML Serialization, Passing Windows Identity to multiple servers Top

Hi;

Try the following few lines...

MyWebService ws = new MyWebService();

credintials = CredentialCache.DefaultNetworkCredentials;

ws.Credentials = credintials;

ws.HelloWorld();



 
 
Deobrat Singh





PostPosted: ASMX Web Services and XML Serialization, Passing Windows Identity to multiple servers Top

Thats exactly what I am doing for Windows Authentication in Web Services. I am looking for WSE implementation.