Re: Forms authentication to secure various static content?

From: Michael Brandt Lassen (MichaelBrandtLassen_at_discussions.microsoft.com)
Date: 11/24/05

  • Next message: Marre: "Re: MD5"
    Date: Thu, 24 Nov 2005 12:12:02 -0800
    
    

    Hi Dominic

    Thanks for your reply.

    After reading you articles and doing various experiments, I still don’t get
    it.

    I’ve tried what seems to me every possible combination of along your advice,
    configuring IIS with specific application extensions or wild card application
    maps, registering the default http handler in both machine.config and
    web.config. My results range from no effect, over 404-errors, to requests
    that never seem to return from IIS.

    I’m Sorry to bother you, but I’m afraid I need a more precise guidance on
    how exactly to enable say forms authentication of htm and gif’s, and/or the
    wild card strategy.

    You write:

    “In ASP.NET […] All unknown file extensions are now handled by a class
    called DefaultHttpHandler.”

    Is this default handler enabled by default? Or do I have to, and in which
    configuration file should I write:

    <add path="*" verb="GET,HEAD,POST" type="System.Web.DefaultHttpHandler"
    validate="True" />

    Is this configuration to be combined with a wildcard application maps in IIS
    pointing to the asp.net isapi dll?

    Thanks a bunch,

    Michael Brandt Lassen, Developer & Architect
    3F, Denmark

    "Dominick Baier [DevelopMentor]" wrote:

    > Hello Michael,
    >
    > i wrote an article about that:
    >
    > http://www.leastprivilege.com/ProtectingNonASPNETResourcesWithASPNET20.aspx
    > http://www.leastprivilege.com/MoreOnProtectingStaticResourcesWithASPNET20.aspx
    >
    > ---------------------------------------
    > Dominick Baier - DevelopMentor
    > http://www.leastprivilege.com
    >
    > > Hi there gurus,
    > >
    > > I'd like to secure both dynamic AND STACIC content (html-files, gif's,
    > > Office documents etc.) using forms authentication.
    > >
    > > In my ASP.net 2.0 test application forms authentication secures all
    > > content out of the box on the ASP.net Development Server. However,
    > > publishing the application to IIS only dynamic content is secured.
    > >
    > > Elsewhere I've read how to configure IIS to service html-files through
    > > the aspnet_isapi.dll, this extents forms authentication to secure
    > > html-files. But I need to secure gif's, office documents etc. on IIS
    > > just as the default behavior of the ASP.net Development Server. How
    > > can this be accomplished? I've had no luck sending say .doc documents
    > > through aspnet_isapi.dll.
    > >
    > > In how many other significant areas are the behavior of the ASP.net
    > > Development Server different that the default behavior of IIS 6.0. If
    > > no one knows, can ASP.net Development Server then be trusted for any
    > > serious development?
    > >
    > > Can the problem be solved using ASP.net 1.1 as well?
    > >
    > > Best regards,
    > >
    > > Michael Brandt Lassen
    > > 3F, Denmark
    > > Michael Brandt Lassen, Developer & Architect
    > > 3F, Denmark
    >
    >
    >


  • Next message: Marre: "Re: MD5"

    Relevant Pages

    • debbugging in iis - serving outdated pages
      ... I've always been debugging my ASPX pages using the ASP.NET ... deployed the aplication on a remote IIS. ... I've tested as much as possible using the ASP.NET development server ... IIS still serves the old content. ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Development in IIS or on file system
      ... I can copy the files from the file system to my local IIS to test ... the ASP.NET Development Server is a limited environment for sure. ... the most important ones is that it allows developers to run and debug ... say that you have a Web server called Web01. ...
      (microsoft.public.dotnet.framework.aspnet)
    • IIS 6.0 vs IIS 5.1
      ... My web project runs on machine (local host) successfully. ... development server and I met a lot of troubles. ... an instruction is satisfied it will update database. ... Here are some infos of the development server (IIS) ...
      (microsoft.public.dotnet.framework.aspnet)
    • ASP.Net 2.0. Cannot view project in IE.
      ... I'm running Windows XP SP2 (firewall is off and no other firewall exists, ... the "ASP.Net development server" appears to load ... up correctly with the icon appearing in the system tray. ... through the development server application rather than using IIS? ...
      (microsoft.public.dotnet.framework.aspnet)
    • Re: Syntax Error ???
      ... This function serves as the onSubmit even handler in a web ... Our development server is down for the next few minutes. ... this portion of the application from a VBScript enthusiast. ...
      (microsoft.public.scripting.vbscript)