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

drive,gcs,googlephotos: disable OAuth OOB flow (copy a token) due to google deprecation

Nick Craig-Wooddc7e3ea1e3ae
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index 798db047f..5aa1c02bb 100644
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -84,7 +84,7 @@ var (
Endpoint: google.Endpoint,
ClientID: rcloneClientID,
ClientSecret: obscure.MustReveal(rcloneEncryptedClientSecret),
- RedirectURL: oauthutil.TitleBarRedirectURL,
+ RedirectURL: oauthutil.RedirectURL,
}
_mimeTypeToExtensionDuplicates = map[string]string{
"application/x-vnd.oasis.opendocument.presentation": ".odp",
diff --git a/backend/googlecloudstorage/googlecloudstorage.go b/backend/googlecloudstorage/googlecloudstorage.go
index fca84b57d..a838d2350 100644
--- a/backend/googlecloudstorage/googlecloudstorage.go
+++ b/backend/googlecloudstorage/googlecloudstorage.go
@@ -65,7 +65,7 @@ var (
Endpoint: google.Endpoint,
ClientID: rcloneClientID,
ClientSecret: obscure.MustReveal(rcloneEncryptedClientSecret),
- RedirectURL: oauthutil.TitleBarRedirectURL,
+ RedirectURL: oauthutil.RedirectURL,
}
)
diff --git a/backend/googlephotos/googlephotos.go b/backend/googlephotos/googlephotos.go
index 7a07356be..cb9fda888 100644
--- a/backend/googlephotos/googlephotos.go
+++ b/backend/googlephotos/googlephotos.go
@@ -69,7 +69,7 @@ var (
Endpoint: google.Endpoint,
ClientID: rcloneClientID,
ClientSecret: obscure.MustReveal(rcloneEncryptedClientSecret),
- RedirectURL: oauthutil.TitleBarRedirectURL,
+ RedirectURL: oauthutil.RedirectURL,
}
)