问题
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.
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.
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