title: Asp.net Core Web API - Current user & Windows Authentication
body: <p>We have following technical stack in our application
  AngularJS2
  Asp.Net Core API
  SQL Server</p>
  
  <p>Now we need to store User Name for the Logged in User in table during Create/Edit for given item i.e. in Core API.</p>
  
  <p>We have tried with </p>
  
  <ul>
  <li>WindowsIdentity.GetCurrent().Name, it gives IIS APPPOOL\Asp.netCore</li>
  <li>HttpContext.User.Identity gives null value</li>
  </ul>
  
  <p>I get User Name with WindowsIdentity while working with Visual Studio, but with IIS, it gives value as Asp.Netcore i.e. pool name</p>
  
  <p>Windows Authentication is enabled and Anonymous Authentication is disabled</p>
  
  <p>Using IIS Version 6.1</p>
  
  <p>Am I missing anything?</p>