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 {