Pass through authentication - IIS and dotNet

Sorry to repeat the question that I have seen many times. But they do not seem to respond to my circumstances. Or articles for previous versions of IIS and IE

I am trying to create a landing page where the user is redirected to the intranet. I would like users who are part of the domain to be transferred directly to our Intranet with their Windows username (Single Sign on). However, I also like users who donโ€™t have a username to submit to the login page.

It seems to be having problems turning on anonymous access in IIS. You can allow access to IIS, but you cannot determine the username and vice versa.

I have a solution that does something similar to this. However, when a user who is not part of the domain accesses the site, then he must click "Cancel" in the dialog box (Windows login). They are then redirected to page 402, which is the login page.

Does anyone know how to stop displaying this dialog box? If I can get rid of the dialog box, this will solve my problem.

I looked through many solutions that none of them have the desired effect:

(These two are most suitable for my problem - but you donโ€™t see to provide one page and filter the user to the right place)

Any help would be greatly appreciated. Let me know if I ask for impossibility (I have been looking for an answer for several days ...) It seems I am hacking the iis server to do what it does not want to do ...

I also tried Windows and forms authentication, which does not seem to work on both IIS 6.0 and 7.0.

+4
source share
1 answer

I donโ€™t believe there is a solution to your problem, however I know for sure that you cannot (and should not) override the default browser behavior mentioned here:

Does anyone know how to stop displaying this dialog box? If I can get rid of the dialog box, this will solve my problem.

0
source

Source: https://habr.com/ru/post/1382896/


All Articles