title: Redirect on Bad Authentication ASP.NET?
body: <p>I have an ASP.NET MVC site running in a Framework 4.0 app pool. I need to now put Active Directory Federation Services (ADFS) in front of it for authentication against a remote AD store. If authentication fails, I would like to redirect to my own custom page. What is the right way to do this? Since ADFS is implemented in an HTTP Module, should I make my own "reject module" and put it before or after the ADFS one?</p>