"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
lib/oauthutil: don't require token to exist for client credentials flow
Nick Craig-Woodbfb7b8837161
diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.goindex 323737bcf..a03fd592d 100644--- a/lib/oauthutil/oauthutil.go+++ b/lib/oauthutil/oauthutil.go@@ -480,7 +480,7 @@ func OverrideCredentials(name string, m configmap.Mapper, origConfig *Config) (nfunc NewClientWithBaseClient(ctx context.Context, name string, m configmap.Mapper, config *Config, baseClient *http.Client) (*http.Client, *TokenSource, error) {config, _ = OverrideCredentials(name, m, config)token, err := GetToken(name, m)- if err != nil {+ if err != nil && !config.ClientCredentialFlow {return nil, nil, err}