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
So Twitter API does this really stupid thing, where it requires any post fields to be added to the base string for the signature generation. The encoding seems a little bit different than the rest of the string...I feel like I had this working at one point...however it's not working right now.
It looks like they get tacked onto the end of the base string, key sorted alphabetically and weirdly encrypted. I'm not sure how many OAuth 1 APIs share this same strategy, I don't believe I've seen any. It was an easy enough tack on, so could Twitter could be used with an otherwise spec compliant library. Seems superfluous and unnecessary and doesn't really add much security...but it is what it is I suppose.
The text was updated successfully, but these errors were encountered:
Turns out Snaggle is handling this correctly, the issue when actually using this functionality is that the OAuth aspect of the post fields in the Twitter API requires they be rawurlencoded prior to being added (they get encoded again) - the actual request requires them to be not rawurlencoded. Minus a little clean up and a few tests (which didn't exist before I guess), this should be ready for 1.0.0
So Twitter API does this really stupid thing, where it requires any post fields to be added to the base string for the signature generation. The encoding seems a little bit different than the rest of the string...I feel like I had this working at one point...however it's not working right now.
It looks like they get tacked onto the end of the base string, key sorted alphabetically and weirdly encrypted. I'm not sure how many OAuth 1 APIs share this same strategy, I don't believe I've seen any. It was an easy enough tack on, so could Twitter could be used with an otherwise spec compliant library. Seems superfluous and unnecessary and doesn't really add much security...but it is what it is I suppose.
The text was updated successfully, but these errors were encountered: