Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?

From: Sean Dowling (nyq2000_at_hotmail.com)
Date: 06/22/04

  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"
    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


  • Next message: Joe Kaplan \(MVP - ADSI\): "Re: Forward Credentials from ASP.NET Web-application to ASP.NET Web-Service?"

    Relevant Pages