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?
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?
Comment