Skip to content

Commit

Permalink
Fixes blocking SSO login via CLI (#2563) (#2564)
Browse files Browse the repository at this point in the history
  • Loading branch information
masa213f authored and Alexander Matyushentsev committed Oct 27, 2019
1 parent a0f3903 commit 73590e1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/argocd/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,12 @@ func oauth2Login(ctx context.Context, port int, oidcSettings *settingspkg.OIDCCo
}
fmt.Printf("Performing %s flow login: %s\n", grantType, url)
time.Sleep(1 * time.Second)
err = open.Run(url)
err = open.Start(url)
errors.CheckError(err)
go func() {
log.Debugf("Listen: %s", srv.Addr)
if err := srv.ListenAndServe(); err != http.ErrServerClosed {
log.Fatalf("listen: %s\n", err)
log.Fatalf("Temporary HTTP server failed: %s", err)
}
}()
errMsg := <-completionChan
Expand Down

0 comments on commit 73590e1

Please sign in to comment.