azure-activedirectory-identitymodel-extensions-for-dotnet
azure-activedirectory-identitymodel-extensions-for-dotnet copied to clipboard
[Feature] Allow specifying the HTTP protocol version and version policy
Allow specifying the HTTP protocol version and version policy
Allow specifying the HTTP protocol version and version policy when retrieving documents from eg. discovery endpoints.
Description
The PR allows users of HttpDocumentRetriever
(for example the ConfigurationManager
) to specify the HTTP version and version policy used when sending HTTP requests.
The version and policy can bei either specified explicitly via properties on HttpDocumentRetrieve
or implicitly via HttpClient
.
When using .NET 6 and no explicit values have been set, the default version and policy from the HttpClient
is used.
This allows users of OpenID connect authentication to easily setup the HTTP version and policy by configuring the HttpClient
of the Backchannel
.
Fixes #2808