oauthutil: Print redirection URI if using own credentials.

This commit is contained in:
Michael Ledin 2017-03-03 01:36:00 +03:00 committed by Nick Craig-Wood
parent 733d6fe56c
commit 84d4d7f9d9

View file

@ -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 != "" {