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
requestValidator.Validate doesn't work when the hostname in the URL has any uppercase letters. The change introduced with #492 breaks things.
The change introduces the use of URIBuilder to add and remove the port from the URL. Unfortunately, that technique also lowercases the hostname. The actual signature in the payload is against the hostname in the originally specified case, so signature validation fails if the hostname has any uppercase letters.
Steps to Reproduce
Validate a request using a callback URL with any uppercase letters in the hostname.
Code Snippet
varuri=newUriBuilder("http://MixedCaseUrl/");uri.Port=-1;stringresult=uri.ToString();// result is "http://mixedcaseurl".// It's been lowercased.
Technical details:
twilio-csharp version: 5.38.0
csharp version: .NET Core 3.1
The text was updated successfully, but these errors were encountered:
Issue Summary
requestValidator.Validate doesn't work when the hostname in the URL has any uppercase letters. The change introduced with #492 breaks things.
The change introduces the use of URIBuilder to add and remove the port from the URL. Unfortunately, that technique also lowercases the hostname. The actual signature in the payload is against the hostname in the originally specified case, so signature validation fails if the hostname has any uppercase letters.
Steps to Reproduce
Validate a request using a callback URL with any uppercase letters in the hostname.
Code Snippet
Technical details:
The text was updated successfully, but these errors were encountered: