run IHttpModule before authentication [Answered]RSS

4 replies

Last post Nov 14, 2013 09:00 AM by lextm

  • run IHttpModule before authentication

    Nov 13, 2013 01:14 PM|Bogdan1024|LINK

    Is it possible to run a custom IHttpModule before Windows authentication occurs on IIS6? How do I configure it? Is authentication implemented as a module or as some sort of built-in feature in IIS6? In IIS7 it is a module, and all modules can be reordered; but I haven't found this possibility in IIS6 yet.

    ihttpmodule authentication iis6

  • Re: run IHttpModule before authentication

    Nov 13, 2013 07:08 PM|lextm|LINK

    What you want is only feasible for integrated pipeline, and therefore is exclusively available only in IIS 7 and above.

    ihttpmodule authentication iis6

    Lex Li
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: run IHttpModule before authentication

    Nov 14, 2013 04:03 AM|Bogdan1024|LINK

    lextm

    What you want is only feasible for integrated pipeline, and therefore is exclusively available only in IIS 7 and above.
    Thanks for your answer. So there is no way of handling a request before authentication occurs? What about ISAPI extensions and filters - they too won't execute before authentication? Maybe I can do another way around: turn off authentication for specific requests?

    ihttpmodule authentication iis6

  • Re: run IHttpModule before authentication

    Nov 14, 2013 06:18 AM|Bogdan1024|LINK

    At first I thought that HttpApplication.BeforeRequest executes before authentication, but then with fiddler I saw that it is executed after authentication.

    ihttpmodule authentication iis6

  • Re: run IHttpModule before authentication

    Nov 14, 2013 09:00 AM|lextm|LINK

    For classic pipeline, ASP.NET modules cannot hook to IIS events.

    Like you said, you will have to write ISAPI filters.

    ihttpmodule authentication iis6

    Lex Li
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.