How to automatically authenticate windows integrate without login popup?

前端 未结 4 1318
迷失自我
迷失自我 2021-01-05 03:29

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 b

相关标签:
4条回答
  • 2021-01-05 03:38

    You need to uncheck Enable anonymous access in IIS and you can also remove the identity and authorization nodes in your web.config. Keep in mind that not all browsers support this and most will still prompt you for authentication.

    0 讨论(0)
  • 2021-01-05 03:48

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

    0 讨论(0)
  • 2021-01-05 03:53

    You can't do much from the server-side. However, your clients (if they are members of your orgnaization for instance) can add your site to their Local Intranet security zone in IE.

    Tools - Internet Options - Security - Local Intranet - Sites
    

    Note this will probably only work for IE clients.

    By default, IE automatically send current windows credentials to sites in the Local Intranet zone requesting for an authorization.

    This way, they will not be prompted for their credentials each time they are accessing your site.

    0 讨论(0)
  • 2021-01-05 04:00

    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.

    0 讨论(0)
提交回复
热议问题