From a3d54795ae7c08a203cef2646e75e77450c8f084 Mon Sep 17 00:00:00 2001 From: samjtro Date: Sun, 3 Nov 2024 17:03:41 -0600 Subject: [PATCH] major: desc: - further attempts at debugging --- oauth/oauth.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/oauth/oauth.go b/oauth/oauth.go index 7a00572..992d8f7 100644 --- a/oauth/oauth.go +++ b/oauth/oauth.go @@ -43,8 +43,6 @@ const ( // If IP is not 127.0.0.1 DEVICE_NAME must be set. It can be any short string. IP = "127.0.0.1" DEVICE_NAME = "" - // PORT is the port that the temporary oauth server will listen on - PORT = 8888 // seconds to wait before giving up on auth and exiting authTimeout = 180 oauthStateStringContextKey = 987 @@ -131,7 +129,7 @@ func authenticateUser(oauthConfig *oauth2.Config, options ...AuthenticateUserOpt // Redirect user to consent page to ask for permission // for the scopes specified above. - oauthConfig.RedirectURL = fmt.Sprintf("https://%s:%s", IP, strconv.Itoa(PORT)) + oauthConfig.RedirectURL = fmt.Sprintf("https://%s", IP) // Some random string, random for each request oauthStateString := randSeq(16) ctx = context.WithValue(ctx, oauthStateStringContextKey, oauthStateString)