Skip to content
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

Setting sync account Microsoft automatically logout #105503

Closed
darkRaspberry opened this issue Aug 27, 2020 · 8 comments
Closed

Setting sync account Microsoft automatically logout #105503

darkRaspberry opened this issue Aug 27, 2020 · 8 comments
Assignees
Labels
authentication Issues with the Authentication platform bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Milestone

Comments

@darkRaspberry
Copy link

  • VSCode Version:1.49.0-insider
  • OS Version:Windows_NT x64 10.0.20190

Steps to Reproduce:

  1. To sync setting sign in with Microsoft account. And make a successfully sign in.
  2. After correctly setup exit vs-code(insiders) and open Microsoft account is sign out.
  3. If not open and close the vs-code some more time to get this error.

Does this issue occur when all extensions are disabled?: Yes

This issue exists from some 10-12 builds I thought it's side effect of insiders rough edge. But now it's seriously irritating.

@RMacfarlane
Copy link
Contributor

@darkRaspberry Can you open the output panel, select "Microsoft Authentication", and copy the output here?

@mareklinka
Copy link

I'm having the same issue and JUST managed to capture the moment it failed:

(last evening)

[Info  - 19:44:33.18] Token refresh success
[Info  - 19:44:33.19] Token available from cache, expires in 3598999 milliseconds
[Info  - 19:44:33.19] Token available from cache, expires in 3598999 milliseconds

(this morning - computer went to sleep in the meantime)

[Info  - 06:59:42.269] Refreshing token...
[Error  - 06:59:42.279] Refreshing token failed
[Info  - 06:59:42.279] Logging out of session '[trimmed for brevity]'
[Info  - 06:59:42.280] Refreshing token...
[Error  - 06:59:42.361] Refreshing token failed
[Info  - 06:59:42.361] Logging out of session '[trimmed for brevity]'

So it seems like the token has expired, VSCode tried to refresh it twice at the same time, failed both times, then logged me out. I wonder if the computer sleep might play into this?

@maxklock
Copy link

maxklock commented Sep 1, 2020

I have the same issue with the same output as @mareklinka.

Version: 1.48.2 (user setup)
Commit: a047975
Date: 2020-08-25T10:13:11.295Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.18363

@darkRaspberry
Copy link
Author

darkRaspberry commented Sep 1, 2020

I thought i was only one.
@RMacfarlane Still need me to send output.

I slowly shifting to Linux full time as windows seems to slow and less customisation.

@RMacfarlane RMacfarlane added authentication Issues with the Authentication platform bug Issue identified by VS Code Team member as probable bug labels Sep 1, 2020
@RMacfarlane RMacfarlane added this to the August 2020 milestone Sep 1, 2020
@RMacfarlane
Copy link
Contributor

Thanks for the output! I'll work on a fix

@aeschli
Copy link
Contributor

aeschli commented Sep 3, 2020

Are there verification steps that don't require waiting 2 days?

@RMacfarlane
Copy link
Contributor

Yes :)

  1. Sign into settings sync with a Microsoft account

  2. Turn off wifi

  3. Reload window
    The Microsoft auth provider will take a while to activate as it repeatedly tries to connect and backs off, maybe 30 sec. After that a "Microsoft is currently unavailable" item should appear in the accounts menu

  4. Turn wifi back on
    Provider should reconnect, and the account should show up in the accounts menu again

@RMacfarlane RMacfarlane removed the verification-steps-needed Steps to verify are needed for verification label Sep 3, 2020
@aeschli
Copy link
Contributor

aeschli commented Sep 3, 2020

Thanks a lot, works!

@aeschli aeschli added the verified Verification succeeded label Sep 3, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
authentication Issues with the Authentication platform bug Issue identified by VS Code Team member as probable bug insiders-released Patch has been released in VS Code Insiders verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

7 participants
@RMacfarlane @aeschli @maxklock @mareklinka @sandy081 @darkRaspberry and others