Skip to content

Commit

Permalink
login: OIDC login should bind to localhost (#109)
Browse files Browse the repository at this point in the history
Co-authored-by: Luke Exton <[email protected]>
  • Loading branch information
lexton and lexton authored Dec 20, 2022
1 parent ae87fda commit de83209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/profile/login_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func loginUsingWebBrowser(creds *session.StoredCredentials) error {
}

m := http.NewServeMux()
server := &http.Server{Addr: fmt.Sprintf(":%d", cliServerPort), Handler: m, ReadHeaderTimeout: 5 * time.Second}
server := &http.Server{Addr: fmt.Sprintf("localhost:%d", cliServerPort), Handler: m, ReadHeaderTimeout: 5 * time.Second}
m.HandleFunc("/", handler)

fmt.Printf("\nOpening browser to %s\n\n", browserURL)
Expand Down

0 comments on commit de83209

Please sign in to comment.