Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 06/22/04
- Next message: Carel Lotz: "Re: StrongNameIdentityPermission error"
- Previous message: Sean Dowling: "Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- In reply to: Sean Dowling: "Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Next in thread: Sean Dowling: "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Reply: Sean Dowling: "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 21 Jun 2004 22:34:33 -0500
Using Windows Integrated authentication in the ASP.NET application, this can
be done if you use impersonation in the ASP.NET app and enabled Kerberos
delegation. Kerberos delegation allows the token that IIS generates on the
ASP.NET box to hop to the machine on the web services box.
There are a bunch of references to Kerberos delegation in the MS Knowledge
Base. Kerberos can be tricky, so I suggest you read up on it.
Also, if you use Basic Authentication in the ASP.NET application, it is
trivially easy to get the user's username and password directly from the
request headers or server variables and pass those directly to your proxy
class.
HTH,
Joe K.
"Sean Dowling" <nyq2000@hotmail.com> wrote in message
news:606b339b.0406211757.4c6fab57@posting.google.com...
> 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
- Next message: Carel Lotz: "Re: StrongNameIdentityPermission error"
- Previous message: Sean Dowling: "Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- In reply to: Sean Dowling: "Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Next in thread: Sean Dowling: "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Reply: Sean Dowling: "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|