Re: Passing user credintials from a web page to a web service.
- From: Scott Allen <scott@xxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 09 Apr 2005 11:00:48 -0400
Hi Dan:
It is the 2 hop issue Brock mentioned. One solution is to use
delegation, and I have some links to more information here:
http://odetocode.com/Blogs/scott/archive/2005/02/24/1053.aspx
--
Scott
http://www.OdeToCode.com/blogs/scott/
On Fri, 08 Apr 2005 18:32:49 -0700, Dan Higman
<danNews1@xxxxxxxxxxxxxxx> wrote:
>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
>>
>>
.
- 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]
- Re: Passing user credintials from a web page to a web service.
- From: Dan Higman
- Passing user credintials from a web page to a web service.
- Prev by Date: Re: ASP.NET thumbnail creating and saving
- Next by Date: updating iframe datagrid
- Previous by thread: Re: Passing user credintials from a web page to a web service.
- Next by thread: Single User Login At A Time
- Index(es):
Relevant Pages
|
Loading