New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Access Enterprise Git Pull Requests #3371
Comments
I did some digging and looks like I found the quick fix. if (authProviderId === AuthProvider['github-enterprise']) {
getAuthSessionOptions = { ...getAuthSessionOptions, ...{ createIfNone: true, silent: false } };
} Adding the above in I rebuilt the extension with above changes and got it working until we get an official fix. |
@harshanarayana could you expand on the potential fix here? We're running into the same issue, I believe. If you get time to put up a PR, I'd be happy to test it and ensure it fixes things for us locally (once I figure out how to build from source and test locally). |
Here's some additional issue and log details from my end as well Debug info
Remotes:
Extension settings:
GitHub Enterprise Authentication output:
GitHub Pull Request output:
|
Hi @harshanarayana and @wrslatz @harshanarayana I have taken your code and created a PR #3564 Though it can't go as is, as I have also updated some md files with further information |
I'm on vacation but am happy to test this out when I return! Thanks for putting this together, hopefully this fixes things 🙏🏻 |
@wrslatz looking at your log your issue may be slightly different as you are getting a session back. But feel free to give it a go and see what happens Cheers James |
@wrslatz If you are on macOS then you might give it a try by cleaning up the keychain entries for vscode github auth. security find-generic-password -a github-enterprise.auth
security find-generic-password -a github.auth delete and that should let you re-login. When you do so, use the Enterprise auth firs and then the public one. That is what worked for me. When I was logged into the Public Github, it never provided me an option to Authenticate against the Enterprise git. and even when it did, it only worked after the above fix. Cleaning up the keychain and recreating helped. Been working for me since. |
Thanks @jpspringall I have been kind of pre-occupied for a while with some other contributions and lost track of this as the local patch has been serving me well so far and I have been using a custom build of the plugin since. Thanks for opening the PR. Hopefully we can get this change merged. 🤞 |
…b Enterprise AuthProvider
I tested after the latest release and it still doesn't work. My guess is that it's a proxy issue, which leads me to microsoft/vscode#12588. Going to do more debugging and see what I find. Edit: VSCode also doesn't allow a custom |
Any tips for debugging this further? Happy to do additional troubleshooting if y'all have recommendations. The debug output doesn't show any errors, which makes me think something in the auth / interaction with our GHES instance isn't actually erroring but is not correctly handled by the extension. Not sure the best way to rule out proxy either. Also, I'll add that our current GHES version is |
Folks who are seeing these issues: can you please try out VS Code Insiders with the latest pre-release version of the extension? There are some important changes there that might fix the issues you're seeing:
You might need to sign out and sign back in again in VS Code to get things working. Please do post back on whether it works or not! |
Sorry @wrslatz I have been away from this space for a while and lost track of this thread. I switched to insiders with latest like @alexr00 suggested and I am able to manage GHE accounts properly so far. I am also able to manage my external repo access at the same time in a clean way as well. I did log out of the current session just to avoid confusion. |
@harshanarayana thank you for trying out the changes so quickly! |
Going to test this today hopefully! |
I'm fairly confident that the worst of the auth issues are solved for GitHub Enterprise so I'm closing this issue. If you encounter any other problems please open a new issue and include the version of GitHub Enterprise you're using! |
With the repo configuration as above, and following VSCode settings
I am unable to see any PRs being listed in the VSCode.
Is there something I am doing wrong?
The text was updated successfully, but these errors were encountered: