Skip to content

Commit

Permalink
Merge pull request #4684 from duplicati/feature/update-dropbox-oauth
Browse files Browse the repository at this point in the history
Added detection of access token types to Dropbox backend.
  • Loading branch information
warwickmm committed Feb 25, 2022
2 parents f0dfe67 + b267b2b commit 781347d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Duplicati/Library/Backend/Dropbox/DropboxHelper.cs
Expand Up @@ -18,7 +18,9 @@ public DropboxHelper(string accessToken)
: base(accessToken, "dropbox")
{
base.AutoAuthHeader = true;
base.AccessTokenOnly = true;
// Pre 2022 tokens are direct Dropbox tokens (no ':')
// Post 2022-02-21 tokens are regular authid tokens (with a ':')
base.AccessTokenOnly = !accessToken.Contains(":");
}

public ListFolderResult ListFiles(string path)
Expand Down

0 comments on commit 781347d

Please sign in to comment.