git-credential-oauth icon indicating copy to clipboard operation
git-credential-oauth copied to clipboard

Lynx support: Open browser asynchronous with current tty as stdin/stdout

Open YouDirk opened this issue 1 month ago • 3 comments

This patch enables the option to login using the minimalistic console browser Lynx, if xdg-open is running it as default browser. Useful on remote machines without X-forwarding or VNC.

YouDirk avatar Oct 31 '25 06:10 YouDirk

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Oct 31 '25 06:10 google-cla[bot]

Does not work in conjunction with git command. I just tested the code with

$> printf "host=host.name.org\nprotocol=https\n" | git-credential-oauth get

which works fine. But inside git it doesn't work.

The issue may be that git forks git-credential-oauth with os.Std{in,out} not equal to the current tty. I'm looking forward to update the pull-request. If I do not get success then I will close this pull-request unmerged.

Greets, Dirk.

YouDirk avatar Nov 03 '25 21:11 YouDirk

Hey, me again =D

this pull-request seems to work and is Ready-To-Merge.

I have published a test-build at YouDirk/git-credential-oauth/releases/v0.16.0.2 which you can try out ...

It seems to work fine. Just install lynx and xdg-open and it should hopefully work.

Greets, Dirk =D

YouDirk avatar Nov 06 '25 19:11 YouDirk