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

oauthutil: Print redirection URI if using own credentials.

Michael Ledin84d4d7f9d9dd
diff --git a/oauthutil/oauthutil.go b/oauthutil/oauthutil.go
index 7c91d5151..edff202d8 100644
--- a/oauthutil/oauthutil.go
+++ b/oauthutil/oauthutil.go
@@ -243,6 +243,10 @@ func Config(id, name string, config *oauth2.Config) error {
config, changed := overrideCredentials(name, config)
automatic := fs.ConfigFileGet(name, fs.ConfigAutomatic) != ""
+ if changed {
+ fmt.Printf("Make sure your Redirect URL is set to %q in your custom config.\n", config.RedirectURL)
+ }
+
// See if already have a token
tokenString := fs.ConfigFileGet(name, "token")
if tokenString != "" {