I wrote an asp.net application with default.aspx. When I hit this page It is asking me windows login popup window. My application should me windows authentication required but it should "Integrated Windows authentication". If I enter login password I am able to see my page.
How can I automatically integrate this windows authentication?
I added below code in web.config. still doesn't work.
<authentication mode="Windows"/>
<identity impersonate="false"/>
<authorization>
<deny users="?"/>
</authorization>
You would want to disable anonymous access and just use "Integrated Windows Authentication".
Then in Internet Explorer go to Tools -> Internet Option -> Security -> Custom Level -> Scroll the whole way to the bottom and select "Automatic Login with current user name and password” -> OK -> OK -> Close and reopen browser.
This should allow an AD authenticated user to pass straight through to your page.
I would turn off enable anonymous access and just use the "Integrated Windows authentication". Also, if you are using FireFox the domain token for the logged in user is not available without some workarounds. So I would try to stick to using IE if you can too, to make it easier (no pop-ups).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With