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
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 1m4s
This commit is contained in:
parent
a1dce82d99
commit
75afa70155
@ -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
|
// 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 {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("listen for callback: %w", err)
|
return nil, fmt.Errorf("listen for callback: %w", err)
|
||||||
}
|
}
|
||||||
port := listener.Addr().(*net.TCPAddr).Port
|
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)
|
done := make(chan error, 1)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user