Live-share: Stuck on sign in after signing in with Microsoft or GitHub account.

Created on 22 Nov 2019  Â·  42Comments  Â·  Source: MicrosoftDocs/live-share

Issue Type: Bug

VSCode gets stuck on sign-in to live share indefinitely. Same for github or microsoft login.

VSCode 1.40.1
LiveShare plugin 1.0.1293
Browsers: Firefox, also tried Edge
Platform: Windows 10
Corporate Proxy with CNTLM

On Linux it doesn't work with Microsoft login, but with GitHub login.

Extension version: 1.0.1293
VS Code version: Code 1.40.1 (8795a9889db74563ddd43eb0a897a2384129a619, 2019-11-13T16:49:35.976Z)
OS version: Windows_NT x64 10.0.17763


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off
surface_control: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off
webgl: enabled
webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|31.81GB (8.62GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|


authentication product-feedback

Most helpful comment

For everyone still experiencing sign in issues with Live Share in Visual Studio Code, please try to run Live Share: Disable VSCode account authentication in your command palette. That will change the authentication flow to the legacy one which is still being supported.

All 42 comments

Thanks for reaching out. We have changed our sign-in flow recently and we are interested in feedback. Can you give us more details about what is the step that failed in the authentication scenario?

Also, please see this issue for a work-around (intented for MacOS users but works on Linux as well): https://github.com/MicrosoftDocs/live-share/issues/2982#issue-522563208

This also isn't working for me meaning I can't use Live Share at all.

With GitHub, I can log in and authorize it but a blank page is all that's shown after I do. With Microsoft, it gives an error as soon as I enter my email:

We're unable to complete your request
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for this client application.

Both of these lead to it just saying "Signing in..." forever.

I found out the issue was a misconfiguration of CNTLM (stale password hash). However it would be helpful if the sign in process didn't just appear stuck, but gave a (meaningful) error message. E.g. can't connect to '...' response '...', so that the user has a chance to find the problem.

@patrickmcnamara What OS and extension version do you use? I want to try reproduce your issue. Also, what is your default browser and version? What version of VSCode do you use?

@legomushroom Any ideas what this might be?

@patrickmcnamara could you post/DM the first authentication page URL you get in your browser? That should give us clues on what the redirect_uri is generated.

@SoftwareApe we do have a request id for the authentication request and expect that id to match when we get the response. Do you mean that for your case you've use some old browser tab to trigger redirection?

I'm currently experiencing the following issue:

Screen Shot 2019-12-10 at 5 39 16 PM

Version: 1.41.0-insider
Commit: 9579eda04fdb3a9bba2750f15193e5fafe16b959
Date: 2019-12-10T21:42:59.146Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Darwin x64 19.2.0

@conradwt Are you still experiencing this issue? What type of account are you using (GitHub or Microsoft)?

@dlebu I was able to get things working by uninstalling the extension, quitting the application, restarting the application, and reinstalling the extension. I’m guessing something was silently failing when trying to authenticate with Github and/or a corrupt configuration.

@legomushroom I'm not sure what you mean. However I think the most important thing would be that it would fail with something that can be diagnosed.

It appears that even if your browser can use the automatically configured proxy, if the proxy in VSCode doesn't work (in my case CNTLM with an old password hash)., It somehow doesn't get any response and just loops infinitely.

Well the same problem still persists. But you could use the work around. Simple Go to the Command Palette and choose Live Share: Sign in using user code. A browser window will pop up. If it doesn't, go to this location and proceed with authentication. Once the authentication succeeds, you'll get a Ready to collaborate thingy. You'll find a hyperlink which says something about user codes. You'll find the authentication code. Paste it in VSCode (you'll get a text area to enter it as soon as you select the login using user code option from the command palette)

@saurabh000345 This is still not working for me; After I enter the code, nothing happens. As soon as I click anything related to Live Share, the sign-in prompt reappears.

I've tried with both Microsoft and Github logins, and with the code method for both too.

Are there any logs somewhere I could send you guys ?

@nassimm As far as I understand the issue (might be dumb of me to put it that way, but I think) that the sign in thingy has an issue with the detection of a sign in event. The very fact that you get a code means that the sign in has succeeded, it's only the app that is unable to detect this. I guess you should try it another time, try reinstalling the extension. Restart VSCode and repeat the process. Also, I hope you're using the correct prompt for the code.

I'm thinking this is a connectivity issue. The extension is working fine on
another computer after it asked for a firewall exception. This prompt never
happened on my first computer, I'll look into adding the exception manually.

On Tue, Feb 25, 2020 at 7:10 AM saurabh000345 notifications@github.com
wrote:

@nassimm https://github.com/nassimm are you entering the code in the
correct prompt? As far as I understand the issue (might be dumb of me to
put it that way, but I think) that the sign in thingy has an issue with the
detection of a sign in event. The very fact that you get a code means that
the sign in has succeeded, it's only the app that is unable to detect this.
I guess you should try it another time, try reinstalling the extension.
Restart VSCode and repeat the process. Also, I hope you're using the
correct prompt for the code.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/MicrosoftDocs/live-share/issues/3012?email_source=notifications&email_token=AB3FMMRIUYREZG3XZ3UVTATRESY4VA5CNFSM4JQQTB22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM2WGOA#issuecomment-590701368,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB3FMMUY4IRJ6L6PXD6VU6LRESY4VANCNFSM4JQQTB2Q
.

For everyone still experiencing sign in issues with Live Share in Visual Studio Code, please try to run Live Share: Disable VSCode account authentication in your command palette. That will change the authentication flow to the legacy one which is still being supported.

Myself and dozens of coworkers have been blocked by this for several weeks now. Most of us are on macOS Mojave 10.14.6 — some are on Catalina — running VS Code 1.44.2 and VS Live Share 1.0.2104.

We are behind a corporate proxy and we were unable to fix the problem with any adjustments to our network settings or proxy configs, but running the suggested command provided an immediate fix.

Thank you!

How long will this legacy auth flow be supported? We don't want to lose the ability to Live Share again especially now that we're all remote!


ADDENDUM:
I first noticed and reported this behavior when I was running the following earlier versions of Code and Live Share:
VS Code: 1.42.1
VS Live Share: 1.0.1615

I'm having this error too. I use Ubuntu 20.04 and Live Share doesn't work for my and my friends.
It gets stuck when I try to sign in. I already tried signing in via Microsoft and via Github.

Screenshot from 2020-04-30 18-54-24

Did you try the work-around noted above about using the legacy auth flow?

I must have read over this post.
Running: Live Share: Disable VSCode account authentication from my command palette indeed solved my issue.
Thanks!

I'm hitting this as well on MacOS Mojave 10.14.6

I'm also not able to run the Live Share: Disable VSCode account authentication command.

I installed Live Share just today in VS Code, signed in, comes back to VS Code, and says I'm logged in.. but then says I'm not.

Screen Shot 2020-05-05 at 7 23 42 PM

Yet at the bottom, it shows that I am logged in... makes no sense.

Don't know if it could help but when I try to open a link from VSCode and Live Share, it doesn't work (it shows the same messages as above) but when I try to open a link directly in my browser which asks me if I want to open it in VSCode, then asks me to login, it works !
Soo I don't really understand the logic there but anyway

I'm hitting this as well, on Arch. No combination of disabling VSCode account auth, changing the sign in mode from auto to direct/relay, using user code log in, or signing in with GitHub vs Personal account vs Corporate account seems to fix it. I've attached my logs.
livesharelogs.zip

Had this problem too...

I have the same issue. I attempt to run the Live Share: Disable command above and now get an error stating:
image

I'm having the same issue. Logging in with user code didn't work, nor did disabling account authentication. I'm on Windows 10

Just found out! Disabling Avast web shield made it work for me

I also got this problem.
Neither run the "Live Share: Disable VSCode account authentication" command nor disable Avast can solve this issue, both on VScode rev1.48.0 and rev1.41.1, OS:win10
What can I do now?

Also having this issue. When I open a normal window (not joining a session) it shows my name in the bottom left corner as normal and my contacts in the extension tab, but when joining a session using any method it refuses to let me sign in.
Code desktop<br />
The same exact thing happens using the web editor as well.
Code web (in chrome)

We shipped a bunch of authentication fixes this past couple of weeks. I would appreciate if you could try the latest release of our Visual Studio Code extension and let us know if you are still experiencing authentication issues. The fixed issues span all operating systems.

Still getting this issue on ubuntu

image

So I can kind of sign in using the user code workaround, but joining a live share session always asks me to sign in again several times, and gives me this error. Basically cannot use liveshare (v1.0.2902).

Version: 1.49.3
Commit: 2af051012b66169dde0c4dfae3f5ef48f787ff69
Date: 2020-10-02T17:56:11.027Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 4.15.0-118-generic

Same problem, after trying everything in this thread, I still cannot connect wen behind the corporate proxy(which requires auth)

Same problem.
If it can help, here is a screenshot of what happen in the console after the redirection of the Github OAuth.

image

I stumble on this one year old issue today.

Trying to connect the Settings Sync extension of VSCode 1.51.1 and using a GitHub gist fails at login.

FIX
I found a way to fix my problem, in case that helps anyone.

If you have GitDuck installed (another sharing extension), uninstall it and restart VS Code.
I think it overwrite or hook the fetch function, causing the actual issue.

If you don't have the extension, follows these instructions.

  1. Click on "Help" in the navbar.
  2. Click on "Toggle Developer Tools".
  3. Click inside the Devtools and press CTRL + R to reload VS Code.
  4. If you get a fetch error while trying to connect with Github, follow step 5.
  5. Try to figure out which extension conflicts with Liveshare.

Hope it will help.

Hello Everyone I am suffering from a issue in sign in vs code with GitHub account for Live Share and I got stuck while sign in if some one know the solution then please help

  1. System - Chrome OS 64-bit
  2. Linux version - Linux kernel
    Screenshot 2020-11-28 at 9 33 23 AM

Hello Everyone I am suffering from a issue in sign in vs code with GitHub account for Live Share and I got stuck while sign in if some one know the solution then please help

  1. System - Chrome OS 64-bit
  2. Linux version - Linux kernel
    Screenshot 2020-11-28 at 9 33 23 AM

Read my answer above if it can help.

@RealAlphabet Thanks for your help dude but i had tried it but it wasn't worked for me but i had figured out the solution it is very helpful for all os

Steps for that -

  1. When You will sign in through your GitHub Account on vs code for Live Share.
  2. Then an authorization tab will open .
    This one 👇
    Screenshot 2020-11-29 at 10 01 39 AM
  3. Then simply Click on authorize Visual Studio Code Live Share.
  4. After that a blue link will arrive where there would be a code which you need on paste on the command pallet
    of vs code.
    *For that simply press F1 key and then on command pallet type Live Share username and signin .
  5. And You will be sign to live share

Hey Guys . Actually I wanna little help from you all . I am facing problem in installing git on my chromebook so if some one know how i can install Git on the chromebook so please tell me .
Thankyou.

Was this page helpful?
0 / 5 - 0 ratings