fix: OAuth redirect URI must use localhost not 127.0.0.1 + wire vault/connections/import to Go backend
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 1m4s

This commit is contained in:
Vantz Stockwell 2026-03-17 10:28:48 -04:00
parent a1dce82d99
commit 75afa70155

View File

@ -70,12 +70,12 @@ func (o *OAuthManager) StartLogin(openURL func(string) error) (<-chan error, err
}
// Start a local HTTP server on a random port for the callback
listener, err := net.Listen("tcp", "127.0.0.1:0")
listener, err := net.Listen("tcp", "localhost:0")
if err != nil {
return nil, fmt.Errorf("listen for callback: %w", err)
}
port := listener.Addr().(*net.TCPAddr).Port
redirectURI := fmt.Sprintf("http://127.0.0.1:%d/callback", port)
redirectURI := fmt.Sprintf("http://localhost:%d/callback", port)
done := make(chan error, 1)