c # – Level of impersonation & # 39; impersonation & # 39; instead of & # 39; delegation & # 39;

Situation

I have a .NET Core CLI 2.2. or client 3.0 preview5, which sends a REST request to a server, protected with Kerberos. The level of impersonation must be "delegation", but only "impersonation" is achieved.

issue

I can not achieve delegation level with the .net core client. But same The code in the .NET Framework 4.7.2 or 4.8 works:

                                                controller var = new HttpClientHandler ();
handler.UseDefaultCredentials = true;

HttpClient httpClient = new HttpClient (handler) {BaseAddress = new Uri (baseUri)};
httpClient.DefaultRequestHeaders.Accept.Add (new MediaTypeWithQualityHeaderValue ("application / json"));

var response = awaits httpClient.GetAsync ("");

var json = wait answer.Content.ReadAsStringAsync ();

So far, I've also tried WebRequest, WebClient, also with RunImpersonated


            
            
            
            WindowsIdentity.RunImpersonated (WindowsIdentity.GetCurrent (). AccessToken, () =>
{
WebClient Client = new WebClient ();
client.UseDefaultCredentials = true;
var json = client.DownloadString (new Uri (uri));

pson = JsonConvert.DeserializeObject (json);
}); `

Everything was in vain.