Vscode-pull-request-github: Signing in on Github Enterprise errors out

Created on 6 Feb 2019  路  12Comments  路  Source: microsoft/vscode-pull-request-github

  • Extension version: 0.3.2
  • VSCode Version: 1.30.2 (1.30.2)
  • OS: macOS Mojave

Steps to Reproduce:

When trying to login on my Enterprise GitHub, every time I click sign in it leads me to a page on https://vscode-auth.github.com which errors out:

image

GitHubEnterprise

Most helpful comment

I have the same issue using Extension Version 0.4.0 and Visual Studio Code 1.31.1 on macOS 10.14.3

The workaround also doesn't work. I can see the token in the keychain but it keeps me asking for login credentials.

I can also see in GHE that the token has never been used.

The GHE instance is not reachable from the internet.

All 12 comments

Same here. My guess: this is happening because our enterprise GitHub server is on premise and can't be accessed from internet. It looks like VS Code is trying OAuth from a Heroku app.

I can confirm the steps described here works after setting the values and restarting VS Code. If you make the changes on your settings.json without the restart, you will be prompted for authentication again. After the restart the settings are moved to your keychain.

@pcastellazzi I did follow those steps and while the token did get copied to my keychain, I'm still finding it requesting me to login when I launch VSCode and integration not working.

(As a side note it should prob. highlight that after relaunch the token gets moved to keychain. I kept on checking my settings.json and after seeing it missing assuming that was the broken part. Maybe I'll PR to docs with slightly clearer language)

I have the same issue using Extension Version 0.4.0 and Visual Studio Code 1.31.1 on macOS 10.14.3

The workaround also doesn't work. I can see the token in the keychain but it keeps me asking for login credentials.

I can also see in GHE that the token has never been used.

The GHE instance is not reachable from the internet.

Same issue.

Can we have the server instead of timing out and showing a 404 redirect to the alternative instructions and/or maybe add a link to the instructions that combines the attempted enterprise host combined with /settings/tokens/new?scopes=repo,read:user,user:email,write:discussion&description=VSCode%20Github%20Extension which will autofill the entire token form for you. People would just hit 'generate' and then copy-paste the token.

It's a little annoying that alt-tabbing away from VSCode after you enter the token cancels the flow (I have to type in the enterprise host without letting VSCode lose focus).

@ProLoser while working to debug some of these GitHub Enterprise issues, I ran into this scenario. I'm looking to fix it for the next release. Hopefully fixing this is a start to better understanding some of these authentication issues.

@mkonikov I'm working to figure out the issue you have been having, but as mentioned earlier, the error might be a consequence of the setup. In the meantime things have changed in the plugin as far as authentication goes, would you mind updating to the latest version and starting again from scratch?

@stinnux did you try the workaround that was mentioned in the wiki. https://github.com/Microsoft/vscode-pull-request-github/wiki#personal-access-token-authentication

@akbyrd can you be a bit more specific, same issue as whom?

Can we all run a test with the latest version of the extension. Also, what version of GitHub Enterprise are you all using?

@StanleyGoldman Seems to work for me now.

Hey @mkonikov I'm glad it's working for you, but so I can be sure of what I'm debugging, can you be a bit more specific.

  • What steps did you go through that worked for you?
  • What version of the extension are you running?
  • What version of GitHub Enterprise do you have?

Honestly nothing. Just tried again with the latest version.

I'm still seeing this issue.
GitHub Pull Requests 0.11.2, GitHub Enterprise 2.15.18.

Still broken with version 0.15.0 & GitHub Enterprise ???.

We have discontinued support for GitHub Enterprise. https://github.com/microsoft/vscode-pull-request-github/wiki#2-is-github-enterprise-supported

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sbatten picture sbatten  路  4Comments

Jonnokc picture Jonnokc  路  3Comments

Tyriar picture Tyriar  路  4Comments

adrinjalali picture adrinjalali  路  4Comments

octogonz picture octogonz  路  3Comments