Skip to content
This repository has been archived by the owner on Oct 30, 2023. It is now read-only.

Fix signature calculation for URL encoded characters #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kovalu
Copy link

@kovalu kovalu commented Dec 4, 2020

Fixing issue #297

Took me a while, but I've identified a bug in 'AuthenticationInterceptor'.

Maybe it was not needed yet, but when I was locally implementing support for sub-account APIs and some of the query string parameters were containing email address (with @ symbol) then the request was failing with 'msg':
-1022:Signature for this request is not valid

The issue is that 'AuthenticationInterceptor' is creating the SHA256 signature from original query string, for example:
[email protected]

But it needs to be calculating it from URL encoded query string, for example:
email=foo%40bar.com

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant