Re: Passing user credintials from a web page to a web service.
- From: Dan Higman <danNews1@xxxxxxxxxxxxxxx>
- Date: Fri, 08 Apr 2005 18:32:49 -0700
Thanks Ken,
I had not see this particular article. I'm not sure how I missed it in my search.
Unfortunately, the article is exactly correct; at least not in my environment.
The technique in the article works if all the code is running on the same machine. If you were to build all the examples in the article and run them on localhost, it works just fine. But when the aspx code is running on a different server than the web service, it doesn't work. At least I can't get it to work. If I have impersonate set to false, the credentials are that of the IIS server running the aspx. If I set impersonate to true the credentials are null (the object exists, but all the properties are null).
I'm beginning to thinks this can't be done with integrated security.
Dan
Ken Cox [Microsoft MVP] wrote:
Hi Dan,
Just checking to see if you'd seen this...
HOW TO: Pass Current Credentials to an ASP.NET Web Service
http://support.microsoft.com/default.aspx?scid=kb;en-us;813834
Ken Microsoft MVP [ASP.NET] Toronto
"Dan Higman" <danNews1@xxxxxxxxxxxxxxx> wrote in message news:89WdnUfPWddt187fRVn-tQ@xxxxxxxxxxxxxx
I'm sure this is easy and I'll be embarrassed when I see the answer, but I just can't figure this one out.
Using .Net/ASP 1.1 on a server using integrated authentication--
I have a web page (.aspx) that will collect some data from the user, call a web service to get additional data, and then merge and format the data back to the user's browser. But I want the web service to authenticate with the user's credentials, not the credentials of IIS serving the aspx page. What the web service will or will not return is based on who is making the request.
How do I pass the user's credentials to the web service?
Sample code, white paper, knowledge base article, any clue will be welcome. Thanks in advance.
Dan
.
- Follow-Ups:
- Re: Passing user credintials from a web page to a web service.
- From: Scott Allen
- Re: Passing user credintials from a web page to a web service.
- References:
- Passing user credintials from a web page to a web service.
- From: Dan Higman
- Re: Passing user credintials from a web page to a web service.
- From: Ken Cox [Microsoft MVP]
- Passing user credintials from a web page to a web service.
- Prev by Date: Re: running sql script
- Next by Date: Re: Global Variable in Class
- Previous by thread: Re: Passing user credintials from a web page to a web service.
- Next by thread: Re: Passing user credintials from a web page to a web service.
- Index(es):
Relevant Pages
|