Search code examples
c#authenticationwindows-authentication

Using Windows Authentication, not getting a popup


In my program, I'm attempting to use Windows Authentication, which I have never used before and so am pretty confused. I've followed what I think I should do and what I've found in my google searches by adding this in my Web.config:

<authentication mode="Windows" />

<authorization>
  <deny users="?"/>
</authorization>

and my IIS settings look like this:

enter image description here

but whenever I run my website, it just loads up correctly when I believe I should be getting a popup that asks for my username/password. How can I fix this? Thanks


Solution

  • You should get a popup if you try with Firefox, Seamonkey and probably Chrome. If you want a popup with the Internet Explorer, try this:

    Tools | Internet options | Security | Local intranet (or some other zone) | Custom level | user authentication | Prompt for user name and password

    EDIT: You an find Tools on the menu bar. If you don't see menu bar, open it by right click somewhere near tabs and enable Menu bar. See screenshots:

    Open menu bar

    Internet options