Skip to content

Conversation

@gbordier
Copy link

auto-responding to #105 to add the redirect port from the oauth interactive flow to a predictable port so that port forwarding from vscode to the remote box (or WSL) can be setup before the authentication happens.

  1. set GH_OAUTH_PORT to the desired port
  2. setup port forwarding in your IDE to from the localhost to the remote box with the same port number
  3. use gh auth login for the desired account , gh will generate the oauth login url including the encoded redirecturi to the http://localhost:PORT

this is tentative with minimal code change to avoid propagating an option from the cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant