How does automatic window authentication integrate without logging in?

I wrote an asp.net application with default.aspx. When I click on this page, it asks the Windows login window. My application should require Windows authentication, but it should be "Integrated Windows Authentication." If I enter a password to enter, I can see my page.

How can I automatically integrate this windows authentication?

I have added the code below in web.config. still not working.

<authentication mode="Windows"/> <identity impersonate="false"/> <authorization> <deny users="?"/> </authorization> 

alt text

+7
source share
4 answers

You want to disable anonymous access and just use Integrated Windows Authentication.

Then, in Internet Explorer, open “Tools” → “Internet option” → “Security” → “User level” → Scroll all the way to the end and select “Automatically login with current username and password” → OK → OK → Close and reopen browser.

This should allow an authenticated AD user to go directly to your page.

+4
source

I would disable anonymous access and just use Integrated Windows Authentication. In addition, if you use FireFox, the domain token for a registered user is not available without any workarounds. So I would try to use IE if you do this too to simplify (pop-ups).

+4
source

You cannot do much on the server side. However, your customers (for example, members of your organization) can add your site to the local intranet security zone in IE.

 Tools - Internet Options - Security - Local Intranet - Sites 

Please note that this will probably only work for IE clients.

By default, IE automatically sends the current Windows credentials to sites in the local intranet zone that request authorization.

That way, they won’t ask for their credentials every time they access your site.

+3
source

You need to uncheck the Enable anonymous access checkbox in IIS, and also remove the authentication and authorization nodes in the web.config file. Keep in mind that not all browsers support this, and most of them still request authentication.

+2
source

All Articles