Re: Getting user ID from Web Service credentials

From: Nicole Calinoiu (calinoiu)
Date: 04/13/05


Date: Wed, 13 Apr 2005 07:00:00 -0400

Have you set the PreAuthenticate property on the proxy to ensure that the
credentials are submitted on the first request?

"Jeff Connelly" <nomail@thank.you> wrote in message
news:OHk2uu5PFHA.2560@TK2MSFTNGP14.phx.gbl...
> Fairly new to Windows security issues.... We have login to our
> application, and I'm trying to implement Windows authentication. It works
> OK in the standalone client app (I use their Windows current user name to
> log them in.) When I use a Web Service, I don't think it's working. I'll
> use this example provided by Microsoft.
>
> There's a Web Service called Service1. In the client app:
>
> localhost.Service1 myProxy = new localhost.Service1();
> myProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
>
> myProxy is of type System.Web.Services.Protocols.SoapHttpClientProtocol, I
> believe. This is supposed to add the user name and password to the HTTP
> headers. The code runs, however I can't verify this. I can't see any way
> to get the user name from the Web Services code. When I look at the user
> name in the credentials object above from the client side, it's always
> blank, and I don't know how to see it in the headers from the Web Services
> side.
>
> For both the client side caller and the Web Service, I have set in IIS
> Integrated Windows Authentication on, and anonymous access off. Thanks
> for any pointers.
>



Relevant Pages

  • Re: Dynamically Change URL of web service
    ... Microsoft MVP - Windows Client ... > client apps will use the exact same web service, ... What this does is put an entry in the config file, ... >>> How can I dynamically change this when the client app loads. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Dynamically Change URL of web service
    ... client apps will use the exact same web service, ... What this does is put an entry in the config file, ... > Microsoft MVP - Windows Client ... >> How can I dynamically change this when the client app loads. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Calling Web Service that calls other Web Service with Windows Authentication
    ... You are passing credentials (by ... services - then you do not need to pass token remotely and windows can ... Given a windows application client that's calling a web service (using ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: ADFS Development Issues
    ... One thing to keep in mind is that if a website is protected by ADFS V1, ... site to be automatically authenticated by our windows application so ... like a web service proxy. ... generated on the server. ...
    (microsoft.public.windows.server.active_directory)
  • Re: ADFS Development Issues
    ... site to be automatically authenticated by our windows application so ... based on redirects and possibly uses forms-based authentication to collect ... web service proxies don't handle this type of thing ... the server based on how it needs to work. ...
    (microsoft.public.windows.server.active_directory)