Skip to content

Commit 3f602b4

Browse files
committed
feat: Print auth login during Successfully logged into STACKIT CLI.
Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz>
1 parent 45b9020 commit 3f602b4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/pkg/auth/user_login.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,13 @@ func AuthorizeUser(p *print.Printer, isReauthentication bool) error {
244244
return fmt.Errorf("open browser to URL %s: %w", authorizationURL, err)
245245
}
246246

247+
// Print the link
248+
p.Outputln("Your browser has been opened to visit:")
249+
p.Outputln("")
250+
p.Outputf("\t%s\n", authorizationURL)
251+
p.Outputln("")
252+
p.Outputln("")
253+
247254
// Start the blocking web server loop
248255
// It will exit when the handlers get fired and call server.Close()
249256
p.Debug(print.DebugLevel, "listening for response from authentication server on %s", redirectURL)

0 commit comments

Comments
 (0)