diff options
author | Alexander Tkachev | 2019-07-16 14:09:38 +0700 |
---|---|---|
committer | Matan Bareket | 2019-07-30 14:51:41 -0400 |
commit | e8669f693c6adbb33f515d9a4ce9d1079756e2e8 (patch) | |
tree | a11d17b6706c9c21ea78ae92ff113f860f7d97e9 /backends/cloud/dropbox | |
parent | 60504dce7539863a207610fd636236c7035ade3e (diff) | |
download | scummvm-rg350-e8669f693c6adbb33f515d9a4ce9d1079756e2e8.tar.gz scummvm-rg350-e8669f693c6adbb33f515d9a4ce9d1079756e2e8.tar.bz2 scummvm-rg350-e8669f693c6adbb33f515d9a4ce9d1079756e2e8.zip |
CLOUD: Update BaseStorage to expect no refresh_token
While refreshing access_token, some cloud providers also pass a new
refresh_token. Google Drive does not, and accepts the same refresh_token
next time. These changes allow this to happen.
Diffstat (limited to 'backends/cloud/dropbox')
-rw-r--r-- | backends/cloud/dropbox/dropboxstorage.cpp | 2 | ||||
-rw-r--r-- | backends/cloud/dropbox/dropboxstorage.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/backends/cloud/dropbox/dropboxstorage.cpp b/backends/cloud/dropbox/dropboxstorage.cpp index 8941dff94a..c12dec9968 100644 --- a/backends/cloud/dropbox/dropboxstorage.cpp +++ b/backends/cloud/dropbox/dropboxstorage.cpp @@ -54,6 +54,8 @@ uint32 DropboxStorage::storageIndex() { return kStorageDropboxId; } bool DropboxStorage::needsRefreshToken() { return false; } +bool DropboxStorage::canReuseRefreshToken() { return false; } + void DropboxStorage::saveConfig(Common::String keyPrefix) { ConfMan.set(keyPrefix + "access_token", _token, ConfMan.kCloudDomain); } diff --git a/backends/cloud/dropbox/dropboxstorage.h b/backends/cloud/dropbox/dropboxstorage.h index bd9f284f72..bca83d2b5a 100644 --- a/backends/cloud/dropbox/dropboxstorage.h +++ b/backends/cloud/dropbox/dropboxstorage.h @@ -47,6 +47,8 @@ protected: virtual bool needsRefreshToken(); + virtual bool canReuseRefreshToken(); + public: /** This constructor uses OAuth code flow to get tokens. */ DropboxStorage(Common::String code); |