You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Allow for configuring HttpClient in AddDownstreamWebApiย #891
Is your feature request related to a problem? Please describe.
I want to be able to configure the HttpClient made inside the AddDownstreamWebApi call.
I'd like access to HttpClient to be able to set default headers etc. client.DefaultRequestHeaders.
I'd like access to IHttpClientBuilder to be able to call ConfigurePrimaryHttpMessageHandler.
Describe the solution you'd like
The default DownstreamWebApi implementation is nice. But a bit restrictive.
Activity
jennyf19 commentedon Jan 8, 2022
Included in the [1.22.0 release](https://github.com/AzureAD/microsoft-identity-web/releases/tag/1.22.00
jmprieur commentedon Jan 8, 2022
Eskild Diderichsen (@snebjorn): you can now customize the HttpRequestMessage. The documentation is Customizing the headers (or the HttpMessageRequest) when using IDownstreamWebApi
snebjorn commentedon Jan 10, 2022
Excellent! Thank you โค๏ธ