title: iis asp.net windows authentication in a custom module
body: <p>I need to write an iis asp.net module that requires win authentication in very specific circumstances that can't be configured using iis configuration alone.</p>
  
  <p>Essentially, </p>
  
  <p>If complex conditions are true...
    Then
       Force windows authentication (kerberos or ntlmv2)
    Else
       Proceed without authentication</p>
  
  <p>Can anyone suggest a away to do this with out having to write the auth implementation? </p>