diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2022-02-23 23:58:04 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2022-02-23 23:58:04 +0300 |
commit | b267b2b7444e88987977e21d41dd27441e80100c (patch) | |
tree | 66e1a38516b96062f55b6f922b5b8f900ffbbdc6 /Duplicati/Library | |
parent | 27ff8cd20b3e349f6efd7b3b754637c0d940ea9c (diff) |
Added detection of access token types.feature/update-dropbox-oauth
This fixes #4667
Diffstat (limited to 'Duplicati/Library')
-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)
|