Permalink
Browse files

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

…tchRequestToken method for OAuth 1.0 providers)
  • Loading branch information...
bbaia committed Jan 30, 2012
1 parent e665609 commit 4a44874ecf5c5678d4e5c28c7a4cddc49eaf053a
Showing with 2 additions and 3 deletions.
  1. +2 −3 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...");

0 comments on commit 4a44874

Please sign in to comment.