I have an angular.js SPA which works with an ASP.Net MVC5 Web API on the backend. I am trying to have the API have Windows authentication enabled. I have, in my Web.config:
<system.webServer> <security> <authentication> <windowsAuthentication enabled="true"/> </authentication> </security> </system.webServer>
<system.web> <authentication mode="Windows" /> </system.web>
And have also set the following in my applicationHost.config:
<section name="windowsAuthentication" overrideModeDefault="Allow" />
User.Identity.Name is always empty, and
User.Identity.IsAuthenticated is false.
What am I missing here?