From 711407344152174019dcefc875cc8e1efc556aa7 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Thu, 22 Feb 2024 08:38:29 -0700 Subject: [PATCH] Added print for the authorization code callback --- internal/api/api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/api/api.go b/internal/api/api.go index 45a9560..9184010 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -14,15 +14,16 @@ func WaitForAuthorizationCode(host string, port int) (string, error) { s := &http.Server{ Addr: fmt.Sprintf("%s:%d", host, port), } - http.HandleFunc("/oauth/callback", func(w http.ResponseWriter, r *http.Request) { + http.HandleFunc("/oidc/callback", func(w http.ResponseWriter, r *http.Request) { // get the code from the OIDC provider if r != nil { code = r.URL.Query().Get("code") - fmt.Printf("Authorization Code: %v\n", code) + fmt.Printf("authorization code: %v\n", code) } s.Close() }) + fmt.Printf("listening for authorization code at %s/oidc/callback\n", s.Addr) return code, s.ListenAndServe() }