.net8 Web Api not passing windows user in iis
I have a web api built on .net 8.
When I run it via visual studio with iis express, Windows authentication works fine.
However, when I deploy the api in IIS, it fails to use Windows authentication. I tried enabling Windows authentication, asp.net impersonation and disabled anonymous.
I’ve also changed the pool to various such as system, network etc. In addition, I changed the api from a console app to a library. Still to no avail.
Would very much appreciate some pointers