I have an application with Windows authentication enabled and it works fine. There is a new functionality that calls a web service, and I want to carry the user credentials to that web service as well, so I have enabled impersonation hoping that delegation will work out of the box since both my web app and the web service are under the same Active Directory.
However, when I enabled impersonation, the browser prompts me for user and password when accessing the web app, and even providing a valid one it is not working. Note that without impersonation, the app is picking the Windows user correctly.
What can be the issue? I have been following the documentation selecting Authenticated User for the impersonation, and I don´t think I missed any step. Considering that I have Windows authentication already working, what can make it stop working when enabling impersonation?