Skip to content

Add support for SocketsHttpHandler to use provided SPN #25320

@mconnew

Description

@mconnew

WCF has the requirement to use non-default SPN's when using Kerberos authentication over HTTP. The AuthenticationHandler class specifies the SPN in this line of code. WCF needs a way to optionally specify which value is used on this line.
Ideally this would be exposed via an api mechanism available on HttpClientHandler/HttpClient/HttpRequestMessage so that WCF wouldn't need to dictate that a client always uses SocketsHttpHandler once available. We need to be able to specify either a mapping between hostname and SPN or to be able to specify on a per-request basis. This is especially important as there are likely to be some compatibility edge cases with SocketsHttpHandler once released and we would need to allow developers to specify which implementation that WCF will use.
An issue to expose the ability to specify the SPN in a general way to support mutual authentication was previously opened in 2015 in issue #15708. This issue is a more specific ask for this support to be available in SocketsHttpHandler and hopefully for it to be exposed in a more generic manner.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions