Closed arslanakhtar61 closed 1 month ago
It isn't supported directly like that but it should be possible:
The main thing that is needed is to attach the client's certificate to the HttpClient via the SocketsHttpHandler. AccessTokenManagement doesn't do that automatically for you. We have a sample of mTLS that doesn't use AccessTokenManagement.
By configuring IHttpClientHandler like this you should be able to get it to work:
.AddClient("vendor.client", client =>
{
..
}).ConfigurePrimaryHttpMessageHandler( ... );
If this answered your question I would like to close the issue. If not feel free to add a comment.
Closing for now, but feel free to reopen if anything comes up.
`builder.Services.AddClientCredentialsTokenManagement()
`