From 4b5170ad350cebe131dd01177c2d5158ef2f5533 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Tue, 14 Oct 2025 08:40:07 +0200 Subject: [PATCH 1/3] feat: Print auth login during Successfully logged into STACKIT CLI. Signed-off-by: Jorge Turrado --- internal/pkg/auth/user_login.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/pkg/auth/user_login.go b/internal/pkg/auth/user_login.go index 8ac94743e..495a08d18 100644 --- a/internal/pkg/auth/user_login.go +++ b/internal/pkg/auth/user_login.go @@ -244,6 +244,13 @@ func AuthorizeUser(p *print.Printer, isReauthentication bool) error { return fmt.Errorf("open browser to URL %s: %w", authorizationURL, err) } + // Print the link + p.Outputln("Your browser has been opened to visit:") + p.Outputln("") + p.Outputf("\t%s\n", authorizationURL) + p.Outputln("") + p.Outputln("") + // Start the blocking web server loop // It will exit when the handlers get fired and call server.Close() p.Debug(print.DebugLevel, "listening for response from authentication server on %s", redirectURL) From 512c6ee39e285e197f42fed019fe64cdb8aa97bd Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Fri, 17 Oct 2025 13:29:23 +0200 Subject: [PATCH 2/3] update message Signed-off-by: Jorge Turrado --- internal/pkg/auth/user_login.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/pkg/auth/user_login.go b/internal/pkg/auth/user_login.go index 495a08d18..a55948de7 100644 --- a/internal/pkg/auth/user_login.go +++ b/internal/pkg/auth/user_login.go @@ -245,11 +245,8 @@ func AuthorizeUser(p *print.Printer, isReauthentication bool) error { } // Print the link - p.Outputln("Your browser has been opened to visit:") - p.Outputln("") - p.Outputf("\t%s\n", authorizationURL) - p.Outputln("") - p.Outputln("") + p.Outputln("Your browser has been opened to visit:\n") + p.Outputf("\t%s\n\n", authorizationURL) // Start the blocking web server loop // It will exit when the handlers get fired and call server.Close() From 33c56411eb07ce72212204ed78aff299624914cb Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Fri, 17 Oct 2025 13:29:34 +0200 Subject: [PATCH 3/3] update message Signed-off-by: Jorge Turrado --- internal/pkg/auth/user_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/pkg/auth/user_login.go b/internal/pkg/auth/user_login.go index a55948de7..2ec2040dd 100644 --- a/internal/pkg/auth/user_login.go +++ b/internal/pkg/auth/user_login.go @@ -246,7 +246,7 @@ func AuthorizeUser(p *print.Printer, isReauthentication bool) error { // Print the link p.Outputln("Your browser has been opened to visit:\n") - p.Outputf("\t%s\n\n", authorizationURL) + p.Outputf("%s\n\n", authorizationURL) // Start the blocking web server loop // It will exit when the handlers get fired and call server.Close()