Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Polishing doc and samples (Callback url parameter is not needed in Fe…

…tchRequestToken method for OAuth 1.0 providers)
  • Loading branch information...
commit 4a44874ecf5c5678d4e5c28c7a4cddc49eaf053a 1 parent e665609
@bbaia bbaia authored
View
5 examples/Spring.ConsoleQuickStart/src/Spring.ConsoleQuickStart/Program.cs
@@ -108,16 +108,15 @@ static void Main(string[] args)
// Authentication using callback url
Console.Write("Getting request token...");
- OAuthToken oauthToken = dropboxServiceProvider.OAuthOperations.FetchRequestToken("http://localhost/", null);
+ OAuthToken oauthToken = dropboxServiceProvider.OAuthOperations.FetchRequestToken(null, null);
Console.WriteLine("Done");
OAuth1Parameters parameters = new OAuth1Parameters();
- parameters.CallbackUrl = "http://localhost/";
//parameters.Add("locale", CultureInfo.CurrentUICulture.IetfLanguageTag); // for a localized version of the authorization website
string authenticateUrl = dropboxServiceProvider.OAuthOperations.BuildAuthorizeUrl(oauthToken.Value, parameters);
Console.WriteLine("Redirect user for authentication: " + authenticateUrl);
Process.Start(authenticateUrl);
- Console.WriteLine("Enter 'oauth_token' query string parameter from callback url:");
+ Console.WriteLine("Copy/Paste 'oauth_token' query string parameter from success url:");
string verifier = Console.ReadLine();
Console.Write("Getting access token...");
Please sign in to comment.
Something went wrong with that request. Please try again.