Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass identity from Form to WebService ?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01024385
Message ID:
01025062
Views:
22
Hi,

>>
Here's what I've found so far:

I created a small Web Service project using the standard "Hello World" Example method.

Under the IIS Console Mgr I left Authorization and Authentication as is.

I right-clicked specifically on the asmx file that had the "Hello World" method and set the file security to Windows Authentication ONLY.

I then created another project with a single page aspx that created System.Net.NetworkCreditial(User, Pass, Domain)

I then set the WebService.Creditials property member to the Network Creditial Object

and viola! It worked.
>>

But you're just setting the credentials for the web service to a known identity (and in that situation the IIS Security settings are irrelevant).

What I'm trying to do is use the Identity passed to the web page by IIS (System.Threading.Thread.CurrentPrincipal ? ) to set the credentials for the WS proxy.

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform