[Cyberduck-trac] [Cyberduck] #6427: Dropbox connection profile fails to authrorize

Cyberduck trac at trac.cyberduck.ch
Sun May 19 16:42:16 UTC 2013


#6427: Dropbox connection profile fails to authrorize
---------------------+------------------------
 Reporter:  rhin     |         Owner:  dkocher
     Type:  defect   |        Status:  closed
 Priority:  normal   |     Milestone:
Component:  dropbox  |       Version:  4.2
 Severity:  normal   |    Resolution:  wontfix
 Keywords:           |  Architecture:
 Platform:           |
---------------------+------------------------

Comment (by みらい そらの):

 Hi,

 Finally I was able to get API 1 support. Dropbox support was recovered.
 1. patch the following to r9660 (You will need to apply
 http://trac.cyberduck.ch/ticket/6768 workaround too).
 {{{
 Index:
 source/ch/cyberduck/core/dropbox/client/AbstractHttpDropboxClient.java
 ===================================================================
 --- source/ch/cyberduck/core/dropbox/client/AbstractHttpDropboxClient.java
 (revision 9660)
 +++ source/ch/cyberduck/core/dropbox/client/AbstractHttpDropboxClient.java
 (working copy)
 @@ -73,7 +73,7 @@
      /**
       * This is set by Dropbox to indicate what version of the API you are
 using.
       */
 -    protected static final int API_VERSION = 0;
 +    protected static final int API_VERSION = 1;

      /**
       *
 @@ -111,7 +111,8 @@
       * @throws IOException
       * @throws OAuthException
       */
 -    public void authenticate(String key, String secret, String username,
 String password) throws IOException {
 +    public void authenticate(String key, String secret, String token_key,
 String token_secret) throws IOException {
 +/*
          String[] params = {"email", username, "password", password};

          OAuthConsumer consumer = new CommonsHttpOAuthConsumer(key,
 secret);
 @@ -133,7 +134,7 @@
              log.info(String.format("Obtained Token Key:%s", token_key));
              log.info(String.format("Obtained Token Secret:%s",
 token_secret));
          }
 -
 +*/
          auth = new Authenticator(key, secret,
                  this.getRequestPath("/oauth/request_token"),
 this.getRequestPath("/oauth/access_token"),
 this.getRequestPath("/oauth/authorize"),
                  token_key, token_secret);
 }}}
 2. Use this small script to obtain Access Token.
 https://www.dropbox.com/s/mj92ccgvwoit746/oauth_oob.pl

 3. Input the access token and secret as email and password, then consumer
 key and secret as "API Key".

 PS. I attach OSX binary (patched r9660) (due to Xcode issue, only 10.7+
 are supported)
 https://www.dropbox.com/s/oi5vblroi7vt19f/Cyberduck.app.zip

-- 
Ticket URL: <http://trac.cyberduck.ch/ticket/6427#comment:14>
Cyberduck <http://cyberduck.ch>
Open source FTP, SFTP, WebDAV, Cloud Files, Google Docs & Amazon S3 Browser for Mac & Windows.


More information about the Cyberduck-trac mailing list