From 2030dc13b269fd41f09ab4252b2789751def0dbe Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 18 Jan 2018 11:18:35 +0000 Subject: [PATCH] lib/oauthutil: fix Google drive oauth process The problem was introduced by the code refactoring in 11da2a6c9bd1a903a7737e9314617810f1903c5c --- lib/oauthutil/oauthutil.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauthutil/oauthutil.go b/lib/oauthutil/oauthutil.go index 8c65209a4..5febfe066 100644 --- a/lib/oauthutil/oauthutil.go +++ b/lib/oauthutil/oauthutil.go @@ -290,7 +290,7 @@ func doConfig(id, name string, oauthConfig *oauth2.Config, offline bool, opts [] // Detect whether we should use internal web server useWebServer := false - switch RedirectURL { + switch oauthConfig.RedirectURL { case RedirectURL, RedirectPublicURL, RedirectLocalhostURL: useWebServer = true if automatic {