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
I'm attempting to use RequestValidator but it's not working - it says all requests that come from Twilio are invalid. As there's only one example that makes it very difficult to diagnose what the problem is. It would help massively to have more examples.
As RequestValidator is part of security, good test coverage is really important, especially edge cases.
Here's a starting list of the test cases to be added
A request with and without form parameters
A request with and without query parameters
A request with and without non-Twilio query parameters (e.g. I set a Voice Callback URL to be https://my-website.abc/twilio/callback/?type=thiswontbeusedinthesignaturegeneratorandsoshouldbeignored
A request with URL encoded query parameters
And just a lot more tests in general. At the moment the RequestValidator is unusable.
Technical details:
twilio-java version: 8.19.1
java version: 11
The text was updated successfully, but these errors were encountered:
Besides the fact that the code will not validate a Twilio request anymore. I'd like to know exactly what to add in the parameters map as it simply won't work for a Status Webhook at the moment. There seems to be extra information needed and nothing available in the official doc.
Issue Summary
RequestValidator only has one example in its test, RequestValidatorTest.
I'm attempting to use RequestValidator but it's not working - it says all requests that come from Twilio are invalid. As there's only one example that makes it very difficult to diagnose what the problem is. It would help massively to have more examples.
As RequestValidator is part of security, good test coverage is really important, especially edge cases.
Here's a starting list of the test cases to be added
https://my-website.abc/twilio/callback/?type=thiswontbeusedinthesignaturegeneratorandsoshouldbeignored
And just a lot more tests in general. At the moment the RequestValidator is unusable.
Technical details:
The text was updated successfully, but these errors were encountered: