Skip to content

Commit 8770c25

Browse files
author
Tobias Weber
committed
Allow workaround if no browser can be opened
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.
1 parent 6213bb5 commit 8770c25

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)