Merge lp:~crosser/duplicity/fix-oauth-flow into lp:duplicity

Proposed by Eugene Crosser on 2017-11-25
Status: Merged
Merged at revision: 1282
Proposed branch: lp:~crosser/duplicity/fix-oauth-flow
Merge into: lp:duplicity
Diff against target: 17 lines (+2/-2)
1 file modified
duplicity/backends/dpbxbackend.py (+2/-2)
To merge this branch: bzr merge lp:~crosser/duplicity/fix-oauth-flow
Reviewer Review Type Date Requested Status
duplicity-team 2017-11-25 Pending
Review via email: mp+334275@code.launchpad.net

Description of the change

dpbxbackend: Adapt OAuth flow to the "new" Dropbox API

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'duplicity/backends/dpbxbackend.py'
2--- duplicity/backends/dpbxbackend.py 2017-07-11 14:55:38 +0000
3+++ duplicity/backends/dpbxbackend.py 2017-11-25 13:05:11 +0000
4@@ -142,11 +142,11 @@
5 auth_code = raw_input("Enter the authorization code here: ").strip()
6 try:
7 log.Debug('dpbx,auth_flow.finish(%s)' % auth_code)
8- access_token, _ = auth_flow.finish(auth_code)
9+ authresult = auth_flow.finish(auth_code)
10 except Exception as e:
11 raise BackendException('dpbx: Unable to obtain access token: %s' % e)
12 log.Info("dpbx: Authentication successfull")
13- self.save_access_token(access_token)
14+ self.save_access_token(authresult.access_token)
15
16 def login(self):
17 if self.load_access_token() is None:

Subscribers

People subscribed via source and target branches