Skip to content

Commit cfd42a0

Browse files
authored
feat: Print auth login during stackit auth login (#1027)
* feat: Print auth login during Successfully logged into STACKIT CLI. Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> * update message Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> * update message Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz> --------- Signed-off-by: Jorge Turrado <jorge.turrado@mail.schwarz>
1 parent 1b5d0b2 commit cfd42a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/pkg/auth/user_login.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ 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:\n")
249+
p.Outputf("%s\n\n", authorizationURL)
250+
247251
// Start the blocking web server loop
248252
// It will exit when the handlers get fired and call server.Close()
249253
p.Debug(print.DebugLevel, "listening for response from authentication server on %s", redirectURL)

0 commit comments

Comments
 (0)