Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?
From: Sean Dowling (nyq2000_at_hotmail.com)
Date: 06/22/04
- Previous message: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 21 Jun 2004 18:57:08 -0700
Hello,
I have an ASP.NET web-application using Windows Based authentication
that references a web-service to do business logic type things. I
would like to secure the web-service with Windows Authentication as
well and would like to forward the credentials from the original
web-request (to the web-form) on to the web-service. I can get the
WindowsPrincipal / Identity of the requesting user but the generated
proxy for the web-service requires a "NetworkCredentials". If I use:
webservice.Credentials =
System.net.CredentialsCache.DefaultCredentials
the web-service authenticates the request with the ASPNET user (which
makes sense)
I don't know how to create credentials using the WindowsPrincipal (or
even if this can be done?). Do I need to somehow create the
XML-Web-service request myself using the base classes?
Help! Thanks
- Previous message: Alek Davis: "Re: How to get the WindowsIdentity of the caller of my excutable?"
- Next in thread: Joe Kaplan \(MVP - ADSI\): "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Reply: Joe Kaplan \(MVP - ADSI\): "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|