diff options
author | warwickmm <warwickmm@users.noreply.github.com> | 2022-02-25 19:32:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 19:32:31 +0300 |
commit | 781347d4a4bdf0352aa25ed275f8bb9f4d248350 (patch) | |
tree | 81a3c2e433e3db94d60d66beea206f75115f5829 /Duplicati | |
parent | f0dfe67c89a366aacdb50d363b297dd4798c8948 (diff) | |
parent | b267b2b7444e88987977e21d41dd27441e80100c (diff) |
Merge pull request #4684 from duplicati/feature/update-dropbox-oauth
Added detection of access token types to Dropbox backend.
Diffstat (limited to 'Duplicati')
-rw-r--r-- | Duplicati/Library/Backend/Dropbox/DropboxHelper.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Duplicati/Library/Backend/Dropbox/DropboxHelper.cs b/Duplicati/Library/Backend/Dropbox/DropboxHelper.cs index b277f6312..1e7dd9a34 100644 --- a/Duplicati/Library/Backend/Dropbox/DropboxHelper.cs +++ b/Duplicati/Library/Backend/Dropbox/DropboxHelper.cs @@ -18,7 +18,9 @@ namespace Duplicati.Library.Backend : 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)
|