gitsign icon indicating copy to clipboard operation
gitsign copied to clipboard

WSL can't be reach by redirect URL

Open Typositoire opened this issue 1 year ago • 1 comments

I'm using WSL on windows (Don't judge me!!!!) And when running gitsign, it tries to reach back on localhost but this doesn't work.

I think just a way to bind the callback server to 0.0.0.0 instead of 127.0.0.1 would work? I'd be glad to test whatever solution comes out!

Version

gitsign version v0.2.0

Typositoire avatar Aug 04 '22 12:08 Typositoire

Sorry about the delay - going back over old issues that are still open.

I haven't tried using gitsign with WSL, but this sounds roughly similar to the "use gitsign within a vm" use case we hear a lot. I think I'd be a little hesitant to open this up to 0.0.0.0, and I'm not sure this would directly solve your issue since the localhost redirect URL would still point to the host machine.

2 alternatives that may work for you:

  1. If WSL has a mechanism to port forward/proxy, you can set the redirectURL config directly to set a static port to always forward through.
  2. We recently fixed out-of-band oauth which should fix browser-less sign in flows https://github.com/sigstore/gitsign/issues/137

Let me know if this helps! 🙏

wlynch avatar Sep 21 '22 20:09 wlynch