Windows authentication of Intranet ASP.NET website and reappearing windows login box

独自空忆成欢 提交于 2019-12-05 12:22:13

Check if your browser has "Enable Integrated Windows Authentication" checked. In IE it's in the Advanced options.

You should be able to configure it so you don't have to see the login prompt at all. IIS seems to be configured correctly since it's asking you for credentials. So I would test out the browser settings. Some things I would check for are that:

  1. Make sure that your browser recognizes the site as being in your Intranet. You should see the "Intranet" zone icon near the right side of your status bar.
  2. If not, you should add it to your list of local sites.
  3. Check that your credentials are being passed to sites in the local intranet.
  4. Make sure your links are all consistent, for example if you use a different DNS name or access by IP, the browser won't necessarily know they belong to the same site and try to reauthenticate.

Something else that might be going on is if you're trying access resources that you're account isn't allowed to. So make sure that isn't happening. I'm wondering since you said hitting cancel gets your page to show the login name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!