Return message is "Incorrect oauth_body_hash." You can see that oauth_body_message is "3JN7WYkmBPWoaslpNs1/8J4l8Yrmt1joAUokx/oDnpE%3D" which is uri_rfc3986_encode(base64.b64encode(hashlib.sha256('None'.encode('utf-8')).digest())).
Expected behavior
A successful connection.
Suggest a fix/enhancement
Creating a PR for the fix right now.
Description The
oauth_body_hash
is incorrect when the body isNone
. The reason is thatstr(message)
returns 'None' when message is None.To Reproduce
Return message is "Incorrect oauth_body_hash." You can see that
oauth_body_message
is "3JN7WYkmBPWoaslpNs1/8J4l8Yrmt1joAUokx/oDnpE%3D" which isuri_rfc3986_encode(base64.b64encode(hashlib.sha256('None'.encode('utf-8')).digest()))
.Expected behavior A successful connection.
Suggest a fix/enhancement Creating a PR for the fix right now.