vstreaming1982 / oauth

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

ASP.Net OAuthBase.cs UrlEncode method is not accesible without using a derived class #65

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
ASP.Net OAuthBase.cs UrlEncode method is not accesible without using a 
derived class. It doesn't matter if I use a the dll and include the 
Namespace OAuth in a script.

What steps will reproduce the problem?
1. Use the UrlEncode from a simple C# script (No a derived class). Like 
using it with a returned signature before posting a Token Request.

What is the expected output?
I should get the Encoded URL.
What do you see instead?
But, I receive error
CS0122: 'OAuth.OAuthBase.UrlEncode(string)' is inaccessible due to its 
protection level

Please use labels and text to provide additional information.
I suggest to change 2 lines(81 and 139): Replacing "protected" with 
"public" in order to be able to use this UrlEncode from any script like we 
can do with GenerateNonce() and GenerateTimeStamp();. 

protected string unreservedChars = 
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.~";

protected string UrlEncode(string value) {

Thanks;

GB

Original issue reported on code.google.com by gbar...@gmail.com on 20 Nov 2008 at 4:05

GoogleCodeExporter commented 8 years ago

Original comment by leah.culver on 14 Jan 2009 at 10:03