httpmodule, will it work for this? RRS feed

  • Question

  • User735438249 posted

    I'm working with proprietary software that runs on windows servers in IIS. The main executable is a DLL. So all requests to this web app go to http://...../index.dll

    The software allows you to pass arguments to the dll so that you can run your own authentication system instead of using the built in system.

    So my thought was to code an httpmodule, intercept requests that were not authenticated yet, make them authenticate in my system, then let the request go through.

    I have use httphandlers in the past to work with images. In those cases it was simple, after working with the image to whatever extent my code would handle, the image was then streamed out. But with working with this DLL setup, i'm not really sure I know how to deal with all of this. 

    What I want to do is intercept the call to the DLL, authenticate the person and then let the DLL execute as it was going to after I add some arguments to the original call. 

    I can do this with an isapi filter, but using an httpmodule seems so much better if I could just understand how to let the dll execute.

    Saturday, March 6, 2010 8:03 AM


  • User1009273304 posted

    use httpmodule's AuthenticateRequest event. good luck

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, March 7, 2010 3:41 AM