Closed djeer closed 1 year ago
My initial problem was that all conference-end requests had bad signature while all other requests had valid signature. Took quite a time to figure out root cause 😄
This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.
Fixed by #173
Issue Summary
According to docs, in order to validate signature POST form, fields have to be sorted by keys (like in Python twilio library code). However, twilio-go uses "keyvalue" concatenated pairs in sorting which leads to incorrect sorting and invalid signature.
Here is an actual line of golang lib code that sorts keyvalue concatenated chunks https://github.com/twilio/twilio-go/blob/main/client/request_validator.go#L38 Python code that sorts by keys https://github.com/twilio/twilio-python/blob/main/twilio/request_validator.py#L76
Steps to Reproduce
Code Snippet
Concatenated string before hashing looks like:
Exception/Log
Technical details: