Windows Integrated Authentication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zanzibar
    New Member
    • Jan 2008
    • 2

    #1

    Windows Integrated Authentication

    I need to develop an intranet app that uses Windows Authentication with IIS set up for Windows Integrated Authentication.

    The problem is that I want to force a challenge (i.e., force the user to enter username and password) when they access the app.

    I know that basic and digest authentication will do this, but I cannot use these, nor can I use forms authentication.

    With windows integrated authentication there is no challenge.

    I tried forcing one by storing a boolean flag in a session variable and returning a status code of 401 if it isn't set. This "forced" a challenge, but the problem was that the user could simply close the login dialog and the page would get served anyway!

    This is because the user is already authenticated.

    Any suggestions?
  • camel
    New Member
    • Jan 2008
    • 55

    #2
    Seems a bit obvious, but why don't you just put a login form on startup page? Successful login therein can set a session value or cookie, failure to login via the form denies access to any other pages as you just don't show navigation tree until successful\disa ble navigation links. If your particular concern is people using other's already logged in machines then you could compare form entered login details to the Windows NT detail you can pick up automatically\ via A.D.

    Comment

    • zanzibar
      New Member
      • Jan 2008
      • 2

      #3
      Thanks, Camel.

      I am currently looking into using Forms Authentication with an ActiveDirectory MembershipProvi der to accomplish something similar to what you've described.

      Comment

      Working...