Good morning,
we’re having some problems verifying the signature when a property contains quotes inside the value.
Here is an example:
{
...
"occurredAt": 1697190591669,
"subscriptionType": "company.propertyChange",
"attemptNumber": 9,
"propertyName": "city",
"propertyValue": "Asd \"asd asd\"",
...
"changeSource": "HUBSPOT_INTERNAL"
}
The signature does not match, we tried these cases:
leaving as it is:
base64: ez6AzsWqQPTN9M+Uj5ja0cOg/a0IK0JB8CQfAnOJMY0=
signature: oKn+yyNkDKVjTHx/NbimDH2J7nc6y2YH+vfS0lQCJp4=
substituting \" in "
base64: dx+LIdEVCJ0AJp24v1HeNYYpgDGSq1vg+zRECoDuDIs=
signature: oKn+yyNkDKVjTHx/NbimDH2J7nc6y2YH+vfS0lQCJp4=
Removing \"
base64: kqEsX4cgp1fs6a8q+Snre6IcE3dMlMTcGiKeUhX0y2I=
signature: oKn+yyNkDKVjTHx/NbimDH2J7nc6y2YH+vfS0lQCJp4=
This problem only occurs when the value contains internal quotes, and in all the other webhook calls the verify process works correctly.
Do you have any hints on how to manage these specific cases?
Thank you in advance