Login prompt in spite of having windows authentication enabled

匆匆过客 提交于 2021-02-05 09:39:40

问题


We have enabled Windows authentication (Anonymous access is disabled) in IIS but, I am getting prompt to enter user-credentials for application Checked for the providers under authentication and the order is correct as well.

Any pointers would be helpful. For information is it a .NET application hosted on IIS 7.5


回答1:


Not sure if this is old but i hope it may be helpful for someone like me in near future.

  1. In Windows Authentication feature, goto providers. Just ensure that the NTLM is the only provider selected and remove the Negotiate. It would stop the logon prompt to show up.

  2. Not sure if this may also be needed but, In advanced Settings, change the value to Off.

For anyone who uses this in a web api and trying to call that from another app, say, angular or anything, then the webapi in IIS also needs to have the Anonymous authentication enabled along with the Windows authentication.

Earlier, i had the NTLM and Negotiate as two providers, even though the NTLM was moved/kept at the top, it kept prompting for logon in all the browsers. After removing the Negotiate provider, it cooled off not to prompt anymore :)



来源:https://stackoverflow.com/questions/38009152/login-prompt-in-spite-of-having-windows-authentication-enabled

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