From 84d4d7f9d9dd5b8bf990b289c63bebe8251a3489 Mon Sep 17 00:00:00 2001 From: Michael Ledin Date: Fri, 3 Mar 2017 01:36:00 +0300 Subject: [PATCH] oauthutil: Print redirection URI if using own credentials. --- oauthutil/oauthutil.go | 4 ++++ 1 file changed, 4 insertions(+) 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 != "" {