Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass identity from Form to WebService ?
Message
De
17/06/2005 14:10:58
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
17/06/2005 13:11:19
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01024385
Message ID:
01024408
Vues:
17
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform