Skip to content

Preauthentication for Negotiate #33964

@trexx

Description

@trexx

A related issue: #30195

I have a simple poc which connects to Elasticsearch authenticated by Kerberos. Elasticsearch only supports request based authentication, so each time I need to ship a log, it requires 2 round trips as the first request always returns a 401 unauthorised.
It would be useful to use preauthentication to remove that 401 round trip and immediately send the header for applications that don't support session based authentication.

This was the behaviour before SocketHttpHandler (via AppContext.SetSwitch("System.Net.Http.UseSocketsHttpHandler", false);) as WinHttpHandler was able to preauth a Kerberos connection however when running on Linux we've discovered that the libcurl based handler does not behave the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Net.HttpenhancementProduct code improvement that does NOT require public API changes/additions

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions