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:

         <windowsAuthentication enabled="true"/>


   <authentication mode="Windows" />

And have also set the following in my applicationHost.config:

<section name="windowsAuthentication" overrideModeDefault="Allow" />

However, User.Identity.Name is always empty, and User.Identity.IsAuthenticated is false.

What am I missing here?

Related posts

Recent Viewed