← Back to team overview

duplicity-team team mailing list archive

[Bug 1492301] Re: onedrive refresh token failed

 

If you're still interesting in this question, so you can add further
code to duplicity/backends/onedrivebackend.py right after
self.http_client = OAuth2Session(...) (for 0.7.06 it should starts on
line 125) :

        # We have to refresh token manually because it's not working "under the covers"
        if token is not None:
        	self.http_client.refresh_token(self.OAUTH_TOKEN_URI)

There are some problems with requests-oauthlib. It doesn't refresh
token... it needs more deeper analysis. But we can just refresh it
manually at this moment.

duplicity-team, maybe it worth to be commited ?

-- 
You received this bug notification because you are a member of
duplicity-team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1492301

Title:
  onedrive refresh token failed

Status in Duplicity:
  New

Bug description:
  Hello,

  I retrieved an "access_token" and a "refresh_token" by following the
  process found here:

  https://dev.onedrive.com/auth/msa_oauth.htm#code-flow

  It works well, i successfully connect and upload content to my
  onedrive account, but after one hour (token lifetime) i lost the
  connection and i must request another token manually, it seems
  duplicity cant handle the refresh token process.

  Is it normal or i miss something ?

  I use duplicity 7.0.4 on Ubuntu server 14.04.

  Regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/duplicity/+bug/1492301/+subscriptions