Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically authenticate windows integrate without login popup?

Tags:

c#

asp.net

iis

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>

alt text

like image 233
James123 Avatar asked Jan 21 '11 18:01

James123


2 Answers

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.

like image 133
Matt Avatar answered Oct 08 '22 17:10

Matt


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).

like image 39
szeliga Avatar answered Oct 08 '22 16:10

szeliga