bigbabo / oauth

Automatically exported from code.google.com/p/oauth
0 stars 0 forks source link

C# OAuthBase.cs incorrectly assumes authorization token will be alphanumeric #182

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
OAuth for AppEngine for one, returns an authorization token with a '/'. 
GenerateSignatureBase() does not url encode this parameter, and the access 
token request fails as a result. 

The correct code is:

            if (!string.IsNullOrEmpty(token))
            {
                parameters.Add(new QueryParameter(OAuthTokenKey, UrlEncode(token)));
            }

Original issue reported on code.google.com by akbertram on 13 Aug 2010 at 1:30

GoogleCodeExporter commented 8 years ago

Original comment by morten.f...@gmail.com on 29 Mar 2011 at 5:59