-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Cannot "Connect to Github" #12821
Comments
@tsmaeder it perhaps relies on the |
That is entirely possible. Any reason why we're not including all the built-ins from VS Code? |
Even with those extensions installed, The sign-in fails with |
On vscode, an external browser is opened towards GitHub, when the "Allow" button is pressed. I think this operation fails on Theia because we have a stub for |
@JonasHelming I can investigate this |
Great, I assigned it to you! |
Status please. |
PR is under review |
With the gitlens example from the testing instructions in the linked PR, I don't even get the "Connect to Github" link anymore. Reopening. |
This is weird: when I log out of Github in VS Code, I get the "Connect to Github" link again, but when I click it, nothing happens in the UI: There is an exception caught in the browser debugger:
This is in TheiaIDE 1.48.300. In master I don't get the link to log in. |
Turns out TheiaIDE just does not contain |
It seems I have a Github session in my Windows Credentials Manager. There is a problem in
In short: the |
Hmh...I'm not sure using the UrlHandlerFlow is a good idea anyway: it requires having the github app client secret available to the VS Code app, which is not recommended practice. |
So even with the scheme changed to |
Maybe it's simplest to write our own "github" authentication provider? |
Also includes code to consider sessions which are not created, but restored from storage at registration time Fixes eclipse-theia#13599 Partial fix for eclipse-theia#12821 Contributed on behalof of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Also includes code to consider sessions which are not created, but restored from storage at registration time Fixes #13599 Partial fix for #12821 Contributed on behalof of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Also includes code to consider sessions which are not created, but restored from storage at registration time Fixes #13599 Partial fix for #12821 Contributed on behalof of STMicroelectronics Signed-off-by: Thomas Mäder <[email protected]>
Seems the Electron case (device token flow) is broken again. @JonasHelming. |
Duh! I had cleaned out my .theia-ide settings folder, including the installed "github-authentication" vscode extension. The workflow works fine 🤷 |
Closing, as this works on the desktop now. |
The very useful Gitlens extensions offers to "Connect to Github" in order to directly jump to the relevant PR on github from an editor hover. This simply does not work.
To Reproduce
My expectation would be that I would be taken through github authentication and then back to see links to PR's in the hover.
The text was updated successfully, but these errors were encountered: