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
When creating a multi-part user-agent header, .net will space separate the different entries, as per the user agent spec. This is also what AWS expects in its canonical header that should be signed.
However, this library always comma delimits multi-part headers by applying this default:
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. The Canonical String for this request should have been 'POST /something/something host:redacted.execute-api.eu-west-1.amazonaws.com user-agent:ToolA/1.2.3 ToolB/1.2.3 x-amz-date:20240912T171219Z x-amz-security-...
Expected behavior
It's expected to get through the AWS signature checks
Desktop (please complete the following information):
OS: Windows 10
Version 4.0.5
** Other comments
It can probably be worked around, by manually adding the full user agent as a single entry.
I don't know for sure if any other multi-part headers are also supposed to be space delimited like this. User Agent may be an exception
The text was updated successfully, but these errors were encountered:
Describe the bug
When creating a multi-part user-agent header, .net will space separate the different entries, as per the user agent spec. This is also what AWS expects in its canonical header that should be signed.
However, this library always comma delimits multi-part headers by applying this default:
aws-signature-version-4/src/Private/CanonicalRequest.cs
Lines 24 to 31 in ba6d9e2
To Reproduce
This leads to
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details. The Canonical String for this request should have been 'POST /something/something host:redacted.execute-api.eu-west-1.amazonaws.com user-agent:ToolA/1.2.3 ToolB/1.2.3 x-amz-date:20240912T171219Z x-amz-security-...
Expected behavior
It's expected to get through the AWS signature checks
Desktop (please complete the following information):
** Other comments
It can probably be worked around, by manually adding the full user agent as a single entry.
I don't know for sure if any other multi-part headers are also supposed to be space delimited like this. User Agent may be an exception
The text was updated successfully, but these errors were encountered: