Search code examples
asp.netiisiis-7.5

Is it possible for windows authentication to not prompt the user for credentials?


I'm using iis 7, currently deployed on a test machine running windows 7 professional.

The computer is logged into the domain of my company. In the past (at another company) I was able to use integrated authentication in ii6 and it wouldn't prompt the user if they were using IE. It would just absorb their domain credentials.

However, that was initially setup by somebody else before I started. I'm doing this project from scrap, and I'm a software engineer without much IIS experience.

This is the relevant snippit from my web.config file

<authentication mode="Windows" />
<identity impersonate="false" />

I'm also running the app pool in v4.0 integrated.

Any help would be appreciated. Thanks!


Solution

  • On IIS disable anonymous authentication and activate Windows auth:
    - select your web application (or root if you app is place as root app)
    - select Authentication
    - disable Anonymous Authentication
    - enable Windows Authentication

    Remember: for "automatic" login both your server and client must be in the same AD domanin or trusted domains.