hickford/git-credential-oauth

Authentication not working for some reason

grisaitis opened this issue · 2 comments

probably making a simple mistake but no idea how to make this work:

Steps I took:

  1. downloaded the release and extracted the binary to ~/.local/bin, which is in my $PATH
  2. configured as per README (git config --global --unset-all credential.helper, etc. )
  3. did git push for a repo
  4. opened the URL
  5. granted this repo access to my account and organization
  6. re-opened the URL... following screen shows up
  7. retry git push
  8. open URL... same thing

my environment:

  • on saturn cloud, inside a docker container
  • ubuntu 20.04
  • bash
  • git version 2.25.1

~/.gitconfig has:

[credential]
        helper = cache --timeout 7200
        helper = oauth

this tool looks amazing. any help appreciated to make it work in my environment!

jovyan@w-grisa-dsc-089fe175f06e472ead0ac4e1a13a0b42-5754d6fd8-dsvwq:~/workspace$ git push -u origin main
Please complete authentication in your browser...
https://github.com/login/oauth/authorize?client_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&code_challenge=xxxxxxxxxxxxxxxxxxxx&code_challenge_method=S256&redirect_uri=http%3A%2F%2F127.0.0.1%3A34009&response_type=code&scope=repo+gist+workflow&state=xxxxxxxxxxxxxxxxxxxx%3D%3D
2023/01/21 23:48:15 exec: "open": executable file not found in $PATH
Username for 'https://github.com':

image

Hello first user to make contact!

exec: "open": executable file not found in $PATH

This fatal error closes the application and local server. I mistakenly assumed /usr/bin/open to be universal. Try installing package xdg-utils.

I'll relax the assumption.

haha hello! thank you for the prompt reply (more prompt than this one).

i'll try this soon and circle back!