Skip to content

Commit

Permalink
Fixed bug with AuthToken and Verifier not being encoded. DotNetOpenAu…
Browse files Browse the repository at this point in the history
…th does a split on the = character so it was causing an error. 9 hours to track down (gotta love OAuth) but still way less time then it would take to recreate the excellent code that is TweetStation. Not to mention being able to program for the iPhone in C# also blows my mind, so THANK YOU
  • Loading branch information
cdeutsch authored and migueldeicaza committed Apr 20, 2011
1 parent 76e8cc7 commit 6cd9a26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TweetStation/Utilities/OAuthAuthorizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ public bool AcquireAccessToken ()
{ "oauth_version", "1.0" }};
var content = "";
if (xAuthUsername == null){
headers.Add ("oauth_token", AuthorizationToken);
headers.Add ("oauth_verifier", AuthorizationVerifier);
headers.Add ("oauth_token", OAuth.PercentEncode (AuthorizationToken));
headers.Add ("oauth_verifier", OAuth.PercentEncode (AuthorizationVerifier));
} else {
headers.Add ("x_auth_username", OAuth.PercentEncode (xAuthUsername));
headers.Add ("x_auth_password", OAuth.PercentEncode (xAuthPassword));
Expand Down

0 comments on commit 6cd9a26

Please sign in to comment.