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
Is your feature request related to a problem? Please describe.
The lib is nice, but I don't want to use the SendAsync(...) extension because I have different code that builds the request and then I call SendAsync (official). I just want to sign the request, adding the needed headers etc, without having to call SendAsync.
How can I do that? The code is probably there already.
The text was updated successfully, but these errors were encountered:
A maintainer will be with you shortly, but first and foremost I would like to thank you for taking the time to report this issue. Quality is of the highest priority for us, and we would never release anything with known defects. We aim to do our best but unfortunately you are here because you encountered something we didn't expect. Lets see if we can figure out what went wrong and provide a remedy for it.
I wonder if that can be done with an extension method addition to the httpclientfactory setup during app initialisation. It would be a nice addition. Similar to how the MS resiliency stuff is done
Fortunately the library exposed the class that is required to sign:
var credentials = ...
var request = new HttpRequestMessage(...);
_ = await Signer.SignAsync(request, null, request.Headers, DateTime.UtcNow, "us-west-2", "lambda", credentials.GetCredentials());
var response = await client.SendAsync(request, cancellation);
another point is that the library deliberately assumes the headers is on the DefaultHttpRequestHeaders property, but in my case I'm using the request.Headers and not the client.Default.. headers.
Is your feature request related to a problem? Please describe.
The lib is nice, but I don't want to use the
SendAsync(...)
extension because I have different code that builds the request and then I callSendAsync
(official). I just want to sign the request, adding the needed headers etc, without having to callSendAsync
.How can I do that? The code is probably there already.
The text was updated successfully, but these errors were encountered: