Forms authentication

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jof

    #1

    Forms authentication

    I have a very badly behaving forms authentication page.

    For some it reason it protects .ASPX pages but not .htm ones?

    Any ideas?
  • memememe

    #2
    Re: Forms authentication

    makes sense. The forms authentication is like a filter done by the .net
    engine on IIS, so IIS doesnt even send pages to the .net engine that arent
    mapped to hte .net engine. So this means that only things like .aspx and
    similar are protected by it. Any .htm, .js, .gif, etc are not protected by
    it.
    I personally dont like this, and actually dont like most of the
    configuration of HttpModules and Authentication, I was too used to making
    nice little servlets and filters!


    "Jof" <jonathan.fletc her@virgin.net> wrote in message
    news:a1554e00.0 309251309.6d585 d0f@posting.goo gle.com...[color=blue]
    > I have a very badly behaving forms authentication page.
    >
    > For some it reason it protects .ASPX pages but not .htm ones?
    >
    > Any ideas?[/color]


    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: Forms authentication

      Jof,

      There are two things going on here. First, in the web.config file for
      the application, you have to make sure that the <authorizatio n> element will
      deny people who are not authenticated (using a deny rule of "?").

      On top of that, you will have to make sure that the ASP.NET ISAPI
      extension is mapped to handle .HTM and .HTML pages. Otherwise, IIS will
      just process it normally and serve it up.

      Hope this helps.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - nick(dot)paldin o=at=exisconsul ting<dot>com

      "Jof" <jonathan.fletc her@virgin.net> wrote in message
      news:a1554e00.0 309251309.6d585 d0f@posting.goo gle.com...[color=blue]
      > I have a very badly behaving forms authentication page.
      >
      > For some it reason it protects .ASPX pages but not .htm ones?
      >
      > Any ideas?[/color]


      Comment

      Working...