Incorrectly formatted access tokens may cause a FormatException #62
Labels
Area: Web API v2
Related to the v2 web API
Duration: Short
Less than 2 hours of estimated work
Priority: Medium
Medium priority
Resolution: Fixed
The issue has been fixed
Type: Bug
Something isn't working
Whenever the access token is invalid according to (some) specifications, performing a request can throw a
FormatException
. An example is including a single"
character.Failing early is the best solution, so the consumer immediately knows that there's something wrong, instead of finding that out upon the request.
In this case, a pre-validation check in
Connection
object on theAccessToken
property can be added. It will have to check if the token is properly formatted (e.g. does not contain invalid characters).The text was updated successfully, but these errors were encountered: