Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

dropbox: enable short lived access tokens #4792

Nick Craig-Woode073720a8fed
diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go
index 350b2d4e0..4b29f5792 100755
--- a/backend/dropbox/dropbox.go
+++ b/backend/dropbox/dropbox.go
@@ -125,6 +125,9 @@ func init() {
Config: func(ctx context.Context, name string, m configmap.Mapper) {
opt := oauthutil.Options{
NoOffline: true,
+ OAuth2Opts: []oauth2.AuthCodeOption{
+ oauth2.SetAuthURLParam("token_access_type", "offline"),
+ },
}
err := oauthutil.Config(ctx, "dropbox", name, m, dropboxConfig, &opt)
if err != nil {