Re: Code runs until Basic Authentication or Digest Authentication is r

From: Steven Cheng[MSFT] (stcheng_at_online.microsoft.com)
Date: 10/26/05

  • Next message: Ken Schaefer: "Re: Certsrv Page not authenticating with IE"
    Date: Wed, 26 Oct 2005 02:59:38 GMT
    
    

    Thanks for Ken's inputs.

    Hi Bmeyer,

    As ken mentioned, no matter we specify the credential in web.config's
    identity/impersonate element or not, the client always need to supply the
    clientside credential (if IIS anonymous access is turn off). Also, I'm not
    sure how are you accessing the asp.net web application, through client
    browser(interactively) or through other webrequest components (like
    httpwebrequest) programmatically? If convenient, would you provide us some
    detailed background of your applicaiton's logic?

    Thanks,

    Steven Cheng
    Microsoft Online Support

    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)

    --------------------
    | From: "Ken Schaefer" <kenREMOVE@THISadOpenStatic.com>
    | References: <5B162BE5-1935-4FF3-8900-A430A9CB68A0@microsoft.com>
    | Subject: Re: Code runs until Basic Authentication or Digest
    Authentication is r
    | Date: Wed, 26 Oct 2005 12:28:44 +1000
    | Lines: 29
    | X-Priority: 3
    | X-MSMail-Priority: Normal
    | X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
    | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
    | Message-ID: <OwXa#Td2FHA.1276@TK2MSFTNGP09.phx.gbl>
    | Newsgroups: microsoft.public.inetserver.iis.security
    | NNTP-Posting-Host: 203.53.153.82
    | Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
    | Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.inetserver.iis.security:8811
    | X-Tomcat-NG: microsoft.public.inetserver.iis.security
    |
    | Supplying a username/password in web.config does not mean that the user
    | doesn't supply credentials.
    |
    | Questions that you need to answer:
    | a) Do you want the user to have to authenticate (i.e. supply Windows
    | credentials)?
    | b) Do you have your authentication mode set to Windows in your web.config
    | file?
    | c) Are you trying to have ASP.NET impersonate the supplied user
    credentials?
    | Or do you want ASP.NET to run under a fixed user identity?
    |
    | Cheers
    | Ken
    |
    | "BMeyer" <bmeyer@community.nospam> wrote in message
    | news:5B162BE5-1935-4FF3-8900-A430A9CB68A0@microsoft.com...
    | : We have Windows 2003 server running IIS 6.0.
    | :
    | : Have an application that creates ASPX session variables based on values
    | : found in ASP session cookie.
    | :
    | : Works great if anyonymous is allowed. Once Basic or Digest Auth is
    | : required, we get 401 errors. We've even included a default user
    account
    | : username,pwd and domain in our web.config file to try and pass the
    | : credentials manually. Still no luck.
    | :
    | : Need to open a case on this one via MSDN so you can try to run our code
    |
    |
    |


  • Next message: Ken Schaefer: "Re: Certsrv Page not authenticating with IE"

    Relevant Pages

    • Re: BASIC authentication Issues with IE - Part II - Solved but WHY?
      ... it does not know the difference between a request from IE or from ... some other HTTP client. ... Some other authentication schemes are more ... IIS can sometimes remember the token for a particular set of credentials so ...
      (microsoft.public.inetserver.iis.security)
    • Re: ISAPI Authentication
      ... The job of your authentication filter is to accept ... non-Windows credentials from the client and then map them to a Windows ...
      (microsoft.public.inetserver.iis.security)
    • Re: Windows Integrated Auth/Basic Auth
      ... Both Basic and Windows Integrated authentication save their credentials on ... you need to convince the client browser to ... >> Windows Authentication on my web app to give an access ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Anonymous and integrated authentication for Web service
      ... I tried changing values in the UseDefaultCredentials and Credentials ... You need to write the client appropriately. ... Given this are you saying they both can call the same web service? ... Integrated Windows authentication ...
      (microsoft.public.inetserver.iis.security)
    • RE: simulating asp.net impersonation
      ... And this will depend on the client credential passed from the ... windows, webservice dosn't support interactive ... through the proxy class's Credentials property and specify the ... Message to contain our custom authentication info. ...
      (microsoft.public.dotnet.framework.windowsforms)