Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/engflow_auth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ Visit %s for help.`,
if err != nil {
return autherr.CodedErrorf(autherr.CodeAuthFailure, "failed to parse authentication URL: %w", err)
}
if clusterPort := clusterURL.Port(); clusterPort != "" && verificationURL.Port() == "" {
verificationURL.Host = net.JoinHostPort(verificationURL.Hostname(), clusterPort)
}
if err := r.browserOpener.Open(verificationURL); err != nil {
return autherr.CodedErrorf(autherr.CodeAuthFailure, "failed to open browser to perform authentication: %w", err)
}
Expand Down