OneDrive and Google Drive OAuth failures

Just testing duplicati with test backups to OneDrive and Google Drive.

Using this link to connect to either service:
https://oauth-service.duplicati.com/

Emails received confirm account is connected to duplcati and OauthID tokens generated accordingly.

Pasting these IDs into Duplicati (latest version running on Docker) results in the same error:
Failed to connect: Failed to authorize using the OAuth service: Invalid authid in query.
If the problem persists, try generating a new authid token from:
Duplicati OAuth Handler

The OAuth handler can link fine with the Accounts, so no problem with username and password. Problem appears to be rejection of the OAuth token itself. Have repeated getting new ID but result is the same: “Failed to connect…”

Checking the logs reveals further: “Bad request”, together with the above failure message.

Odd that it should be both OneDrive and Google…

Connecting to Dropbox proved successful first time, however…

What to try next?
Thanks,
Ric

Welcome to the forum @ricm

What sent you there? Usually you’d just click the AuthID link in the GUI Destination screen:

image

Replacing the OAuth service shows you’re likely on a test server Duplicati isn’t using without.

  --oauth-url (String): Alternate OAuth URL
    Duplicati uses an external server to support the OAuth authentication flow. If you have set up your own Duplicati OAuth server, you can supply the refresh URL.
    * default value: https://duplicati-oauth-handler.appspot.com/refresh

You can use that option to test if the OAuth server you used (be careful where you go) has it.

To get to the production server (unless it finally moved), use Duplicati GUI or use this instead:

https://duplicati-oauth-handler.appspot.com/

1 Like

Hello,
I repeated my procedure with Dropbox and it creates backups seamlessly. Next step is to try and restore a backup to ensure everything is back in its proper place.

My problem with OneDrive: I did not see/realise the field name “AuthID” was a clickable link. Hence my search through lots of forum posts to see what others had done.

Clicking “AuthID” took me straight away to OneDrive login, after which the AuthId was generated and pasted directly into the field value. This is what the user manual actually states and I was at a loss to see why that wasn’t happening.

Many thanks for the spot-on reply. Solved.

1 Like