Skip to content

Commit

Permalink
Merge pull request #8 from lkrapf/main
Browse files Browse the repository at this point in the history
Browser writing to stdout interferes with token storage
  • Loading branch information
telegrapher authored Sep 30, 2021
2 parents dc0d34a + 9df4a30 commit 03309d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ims/authz_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ func (i Config) AuthorizeUser() (string, error) {

localUrl := fmt.Sprintf("http://localhost:%d/", port)

// redirect stdout to avoid "Opening in existing browser session." message from chromium
browser.Stdout = nil

err = browser.OpenURL(localUrl)
if err != nil {
fmt.Fprintf(os.Stderr, "error launching the browser, open it and visit %s\n", localUrl)
Expand Down

0 comments on commit 03309d0

Please sign in to comment.