title: .net core 2.0 windows impersonation
body: <p>I'm new to .NetCore 2.0. I'm building a simple HR application that runs on our intranet in VS2017/C#. </p>
  
  <p>Server: Window 2012 R2 
  Using IIS as a reverse proxy. 
  Windows Authentication only -- all other authentication disabled. 
  .Net Core Windows server hosting on the server is 2.0.5. </p>
  
  <p>In previous application (.net framework). I simply set the authentication on the site to windows, disabled all other authentication and set the identity impersonate = true in the web.config. </p>
  
  <p>In .NET core, this is not working when the application attempts to access the database. In this case, I get an error stating that the IIS user cannot access the database (which they shouldn't be allowed to, the current windows login credentials should be used instead). </p>
  
  <p>I have already done what it says in this link </p>
  
  <p><a href="https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?tabs=aspnetcore2x" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/security/authentication/windowsauth?tabs=aspnetcore2x</a></p>
  
  <p>I am still getting an error stating that the IIS user cannot get access to the db, but I want it to impersonate the windows credential, not the IIS user. </p>
  
  <p>In short, how do I get windows authentication to work in .NET Core 2? </p>
  
  <p>Any help is appreciated. Thanks </p>