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

jottacloud: fix token refresh - fixes #2992

Sebastian Bünger972e27a861b7
diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go
index 62bd394c2..4bbc705da 100644
--- a/backend/jottacloud/jottacloud.go
+++ b/backend/jottacloud/jottacloud.go
@@ -381,6 +381,9 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
rootIsDir := strings.HasSuffix(root, "/")
root = parsePath(root)
+ // add jottacloud to the long list of sites that don't follow the oauth spec correctly
+ oauth2.RegisterBrokenAuthHeaderProvider("https://www.jottacloud.com/")
+
// the oauth client for the api servers needs
// a filter to fix the grant_type issues (see above)
baseClient := fshttp.NewClient(fs.Config)