tsibelman / aws-signer-v4-dot-net

Sign HttpRequestMessage using AWS Signature v4 using request information and credentials.
Apache License 2.0
72 stars 27 forks source link

Another fix required for correct signature using query string arrays #26

Closed jlagnese-allata closed 4 years ago

jlagnese-allata commented 4 years ago

One more fix is required to correctly generate canonical strings with query parameter arrays.

Because the canonical string must be generated in a repeatable, consistent way, if a query parameter appears multiple times in the request, it must be ordered by it's value alphanumerically when generating the canonical string.

For example, if the request contains this query parameter array:

?ids=C&ids=A&ids=B

The canonical string must be:

?ids=A&ids=B&ids=C