Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass identity from Form to WebService ?
Message
From
17/06/2005 14:10:58
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01024385
Message ID:
01024408
Views:
18
>Hi,
>
>Thought this would be simple, but ....
>
>I have a ASP.NET web form for which IIS requires Windows authentication. From the form I need to call a web service using the same identity as that provided to access the form.
>
>How do I do that,
>TIA,
>Viv

Viv,

You should be able to pass a WindowsPrincipal object to the Web Service, then attach that to the thread of the Web Service. I haven't tried it, but there's nothing in the docs to indicate that it wouldn't work.

See WindowsPrincipal, WindowsIdentity, and Thread.CurrentPrincipal in the help to get started.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform