"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: add a new redirect URL for oauth.rclone.org
Nick Craig-Wood25a0e7e8aa3a
diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.goindex 3d9e031a0..02b65f244 100644--- a/lib/oauthutil/oauthutil.go+++ b/lib/oauthutil/oauthutil.go@@ -42,6 +42,10 @@ const (// RedirectLocalhostURL is redirect to local webserver when active with localhostRedirectLocalhostURL = "http://localhost:" + bindPort + "/"+ // RedirectPublicSecureURL is a public https URL which+ // redirects to the local webserver+ RedirectPublicSecureURL = "https://oauth.rclone.org/"+// AuthResponse is a template to handle the redirect URL for oauth requestsAuthResponse = `<!DOCTYPE html><html lang="en">@@ -380,7 +384,7 @@ func doConfig(id, name string, m configmap.Mapper, errorHandler func(*http.Reque// Detect whether we should use internal web serveruseWebServer := falseswitch oauthConfig.RedirectURL {- case RedirectURL, RedirectPublicURL, RedirectLocalhostURL:+ case RedirectURL, RedirectPublicURL, RedirectLocalhostURL, RedirectPublicSecureURL:if changed {fmt.Printf("Make sure your Redirect URL is set to %q in your custom config.\n", oauthConfig.RedirectURL)}