ASP.NET Web API Self-Host with Windows Authentication

前端 未结 9 1303
不知归路
不知归路 2021-01-30 11:31

I am trying to use the ASP.NET Web API Self-Host option with Windows authentication so I can determine the logged on user and ultimately accept or reject the user based on their

9条回答
  •  独厮守ぢ
    2021-01-30 12:13

    Just to add, if you're using tpeczek's solution and also using HttpClient, you might need to do this:

            var handler = new HttpClientHandler();
            handler.UseDefaultCredentials = true;
            _httpClient = new HttpClient(handler);
    

提交回复
热议问题