Skip to content

Commit

Permalink
Only append client credentials if they exist, not if stdin isn't a tty.
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreer committed Nov 2, 2023
1 parent df47609 commit 775b937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func NewCmd[T any, PtrT *T](
return err
}

daemonMode := v.GetString("client-id") != "" || isService()
daemonMode := v.GetString("client-id") != ""
if daemonMode {
opts = append(opts, connectorrunner.WithClientCredentials(v.GetString("client-id"), v.GetString("client-secret")))
} else {
Expand Down

0 comments on commit 775b937

Please sign in to comment.