Two Web Services using same NetworkCredential?

From: wgo (onarheim_at_ameritech.net)
Date: 10/14/03


Date: Mon, 13 Oct 2003 20:35:31 -0500

Hi,

I've been trying to figure this out all day and thought someone here might
be able to help.

I have a Windows form app that's using windows basic authentication to
access two different web services. Each web service uses a different
username and password. When I access the first web service everything is
fine, but when I access the second web service it's using the username and
password from the first web service.

I'm making an instance of NetworkCredential, assigning the correct username
and password and then assigning it to the web service proxy before making
each call.

If I switch the order of the calls the first always works and the second
fails because it has the username and password of the first one.

I'm verifying the username received by the web service by using
User.Identity.Name() and Thread.CurrentPrincipal.Identity.Name in the web
service. Both web services are running on the same server.

Does anyone know what's going on here?

Thanks in advance.



Relevant Pages

  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... I now have the web service configured properly and the ... Using the custom Assertion "MyCustomAssertion" I ... "The username token is not present in the message" ... Microsoft.Web.Services3.Security.Security security) ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: WSE 3.0, usernameOverTransportSecurity, custom Token Manager w/ securityTokenManager,
    ... An username token was not being added in the proxy. ... I now have the web service configured properly and the ... Microsoft.Web.Services3.Security.Security security) ... protected override string AuthenticateToken(UsernameToken ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Same Issue, but with a Web Service calling a DLL
    ... WSE 3.0 UsernameToken in COM+ to Web Service ... The web service call uses WSE 3.0 to provide a username ... Then rename the app.config to match the VB6 exe. ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: <identity impersonat=> problems.
    ... I have a web service configured with Anonymous access disabled. ... if I change the element and add the "username" ... that the web service authentication use, ... Probably because you cannot impersonate and delegate the encrypted credentials (authenticated via ...
    (microsoft.public.dotnet.security)
  • Re: Problem with my Published web service
    ... The web service is run as the normal IUSER account. ... private void AuthenticateUser(string ldapPath, string username, string ... password, AuthenticationTypes type) ...
    (microsoft.public.dotnet.framework.aspnet.webservices)