Skip to content

Commit a86c936

Browse files
tgweberTobias Weber
andauthored
Allow workaround if no browser can be opened (#603)
In debug mode, print out full authorizationURL to provide workaround in circumstances where no window-server is available (hence no browser can be opened), as is the case when connect via ssh to headless systems. The workaround is to call ``stackit --verbosity debug auth login`` Copy the link from the debug output and paste it to an available browser. Co-authored-by: Tobias Weber <[email protected]>
1 parent d8fd4e8 commit a86c936

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/auth/user_login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func AuthorizeUser(p *print.Printer, isReauthentication bool) error {
232232
}
233233
})
234234

235-
p.Debug(print.DebugLevel, "opening browser for authentication")
235+
p.Debug(print.DebugLevel, "opening browser for authentication: %s", authorizationURL)
236236
p.Debug(print.DebugLevel, "using authentication server on %s", idpWellKnownConfig.Issuer)
237237
p.Debug(print.DebugLevel, "using client ID %s for authentication ", idpClientID)
238238

0 commit comments

Comments
 (0)