E
elora_c
I have a webservice that needs to use the current user's credentials
instead of the worker process. In my webservices web.config, I have
<authentication mode="Windows"> and <identity impersonate="true"> In
IIS, I have anonymous access turned off and Integrated Windows
authorization turned on. I call the webservice from an ASP.NET page.
I have the same web.config and IIS settings for that app. When I run
the webpage from my machine calling to the webservice on machine A, it
works just fine. It passes in my credentials and the webservice
authenticates just fine. However, when I run the webpage on machine B,
which also calls machine A to run the webservice, I get the dreaded
"The request failed with HTTP status 401: Unauthorized" error. I am
logging the value of WindowsIdentity.GetCurrent().Name in the app and
can see that it is my own identity. I can't get the value of
DefaultCredentials, but I would have assumed it would be the same as
the WindowsIdentity. But when I look in the IIS log for the
webservice, no username is being passed in. The IIS log entries from
my machine do show my username.
Is there anything else I need to be setting on machine A to correctly
call the webservice with the user's credentials?
Thanks,
Carole
instead of the worker process. In my webservices web.config, I have
<authentication mode="Windows"> and <identity impersonate="true"> In
IIS, I have anonymous access turned off and Integrated Windows
authorization turned on. I call the webservice from an ASP.NET page.
I have the same web.config and IIS settings for that app. When I run
the webpage from my machine calling to the webservice on machine A, it
works just fine. It passes in my credentials and the webservice
authenticates just fine. However, when I run the webpage on machine B,
which also calls machine A to run the webservice, I get the dreaded
"The request failed with HTTP status 401: Unauthorized" error. I am
logging the value of WindowsIdentity.GetCurrent().Name in the app and
can see that it is my own identity. I can't get the value of
DefaultCredentials, but I would have assumed it would be the same as
the WindowsIdentity. But when I look in the IIS log for the
webservice, no username is being passed in. The IIS log entries from
my machine do show my username.
Is there anything else I need to be setting on machine A to correctly
call the webservice with the user's credentials?
Thanks,
Carole