WSL can't be reach by redirect URL
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
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:
- 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.
- 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! 🙏