So I have this login module set up that closely follows this model: http://choosing-a-blog-url-sucks.blogspot.com/2006/10/howto-implementing-smart-card.html
Basically, I have two types of users: CAC (Smart Card) and normal (user ID/password). I have my login module which inherits from IHttpModule and plugged into the pipeline within my web application. The login module contains an OnAuthenticateRequest method, which has been added to the AuthenticateRequest event. Ideally, depending on which login type the user chooses, I have one of two methods that should execute (AuthenticateByCAC or AuthenticateByUserID). However, since I don't know anything until the user actually sees the page and clicks on an option, I don't want the login module to fire off until the user picks an option. Is there any way I can "enable/disable" an HttpModule programatically? Or is there another way I should be approaching this? This area of programming is new to me, so forgive me for my n00bness. =)
