Passing User Credentials in Web Services
I have two virtual directories (VD). Both have anonymous access disabled and window's integrated authentication on. I need a user to authenticate into one VD and then do a web service call to the other VD. I need the web service call to carry the users credentials from the first VD to the second so the user can authenticate there as well. I can make this work on two VDs on the same server if I include the following code, but not when VDs are on different servers.
oProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
Can anyone tell me why I can't get the credentials to pass on? I always get an access denied error from the second VD.
|