vscode: Cannot sign in - Error: Unable to parse decrypted password

Type: Bug

When attempting to sign in with my Microsoft account, after auth completes, VSCode requests to sign in again - the following is shown in the Microsoft Authentication Log:

[2022-11-01 14:00:11.534] [Microsoft Authentication] [info] Getting sessions for all scopes...
[2022-11-01 14:00:11.534] [Microsoft Authentication] [info] Got 0 sessions for all scopes...
[2022-11-01 14:00:12.479] [Microsoft Authentication] [info] Getting sessions for the following scopes: email offline_access openid profile
[2022-11-01 14:00:12.479] [Microsoft Authentication] [info] Got 0 sessions for scopes: email offline_access openid profile
[2022-11-01 14:00:13.984] [Microsoft Authentication] [info] Logging in for the following scopes: email offline_access openid profile
[2022-11-01 14:00:17.687] [Microsoft Authentication] [info] Exchanging login code for token for scopes: email offline_access openid profile
[2022-11-01 14:00:18.068] [Microsoft Authentication] [info] Exchanging login code for token (for scopes: email offline_access openid profile) succeeded!
[2022-11-01 14:00:18.068] [Microsoft Authentication] [info] Setting token for scopes: email offline_access openid profile
[2022-11-01 14:00:18.068] [Microsoft Authentication] [info] Login successful for scopes: email offline_access openid profile
[2022-11-01 14:00:18.069] [Microsoft Authentication] [info] Token available from cache (for scopes email offline_access openid profile), expires in 5031000 milliseconds
[2022-11-01 14:00:18.071] [Microsoft Authentication] [info] Getting sessions for the following scopes: email offline_access openid profile
[2022-11-01 14:00:18.071] [Microsoft Authentication] [info] Got 1 sessions for scopes: email offline_access openid profile
[2022-11-01 14:00:18.071] [Microsoft Authentication] [info] Token available from cache (for scopes email offline_access openid profile), expires in 5030997 milliseconds
[2022-11-01 14:00:18.071] [Microsoft Authentication] [info] Getting sessions for the following scopes: email offline_access openid profile
[2022-11-01 14:00:18.071] [Microsoft Authentication] [info] Got 1 sessions for scopes: email offline_access openid profile
[2022-11-01 14:00:18.071] [Microsoft Authentication] [info] Token available from cache (for scopes email offline_access openid profile), expires in 5030997 milliseconds
[2022-11-01 14:00:18.897] [Microsoft Authentication] [error] Error: Unable to parse decrypted password
    at y.$getPassword (vscode-file://vscode-app/c:/Users/(username)/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1727:50142)
[2022-11-01 14:00:18.926] [Microsoft Authentication] [info] Session removed in another window with scopes: email offline_access openid profile
[2022-11-01 14:00:18.926] [Microsoft Authentication] [info] Logging out of session 'f8cdef31-a31e-4b4a-93e4-5f571e91255a/1:live.com:00037FFEA9CBEFA3/b5b7e2f0-a480-47c1-bc41-b573ba1e1758'
[2022-11-01 14:00:18.926] [Microsoft Authentication] [info] Sending change event for session that was removed with scopes: email offline_access openid profile
[2022-11-01 14:00:18.926] [Microsoft Authentication] [info] Logged out of session 'f8cdef31-a31e-4b4a-93e4-5f571e91255a/1:live.com:00037FFEA9CBEFA3/b5b7e2f0-a480-47c1-bc41-b573ba1e1758' with scopes: email offline_access openid profile

Not sure what else to add.

VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z) OS version: Windows_NT x64 10.0.19044 Modes: Sandboxed: No

System Info
Item Value
CPUs Intel® Xeon® W-2235 CPU @ 3.80GHz (12 x 3792)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.73GB (5.93GB free)
Process Argv –crash-reporter-id 78b31145-6d3c-4704-b7f4-5a189d012012
Screen Reader no
VM 0%
Extensions (32)
Extension Author (truncated) Version
vscode-openapi 42C 4.15.8
vscode-caniuse aka 0.5.4
Bookmarks ale 13.3.1
xml Dot 2.5.1
EditorConfig Edi 0.16.4
windows-explorer-context-menu ele 3.2.1
vscode-guid hea 1.5.0
rest-client hum 0.25.1
formate Mik 1.2.1
vscode-azurefunctions ms- 1.8.3
vscode-azureresourcegroups ms- 0.5.6
csharp ms- 1.25.0
vscode-dotnet-runtime ms- 1.6.0
data-workspace-vscode ms- 0.3.0
mssql ms- 1.16.0
sql-bindings-vscode ms- 0.3.0
sql-database-projects-vscode ms- 0.19.0
remote-containers ms- 0.255.4
remote-ssh ms- 0.90.1
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.72.0
vscode-remote-extensionpack ms- 0.21.0
azure-account ms- 0.11.2
powershell ms- 2022.10.0
azurerm-vscode-tools msa 0.15.8
autodocstring njp 0.6.1
vscode-yaml red 1.10.1
code-spell-checker str 2.10.1
keyoti-changeallendoflinesequence vs- 0.0.3
vscode-todo-highlight way 1.0.5
save-as-root yy0 1.5.0
markdown-pdf yza 1.4.4
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848:30577860
nodejswelcome1cf:30587006
fc301958:30595537
2e4cg342:30596373

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 19 (8 by maintainers)

Commits related to this issue

Most upvoted comments

Sorry, I didn’t pick up on the error change! Was head deep in debugging a Durandal and Knockout problem.

So, the laptop, which is where I ran the commends and pasted the latest output, despite multiple attempts last night, decided today that it was going to sign in first try after a fresh launch; output from credman:

> cmdkey /list | Select-String -Pattern "LegacyGeneric:target=(vscode.+)"

    Target: LegacyGeneric:target=vscodevscode.microsoft-authentication/microsoft.login.keylist
    Target: LegacyGeneric:target=vscodevscode.microsoft-authentication/f8cdef31-a31e-4b4a-93e4-5f571e91255a/1:live.com:00037FFEA9CBEFA3/7f233caa-f922-433e-8385-fe0f0ec7bfd9-1
    Target: LegacyGeneric:target=vscodevscode.microsoft-authentication/f8cdef31-a31e-4b4a-93e4-5f571e91255a/1:live.com:00037FFEA9CBEFA3/7f233caa-f922-433e-8385-fe0f0ec7bfd9
    Target: LegacyGeneric:target=vscodevscode.microsoft-authentication/f8cdef31-a31e-4b4a-93e4-5f571e91255a/1:live.com:00037FFEA9CBEFA3/09b20eb7-c22e-41f2-bb26-3b40377de827-1

I’m about to try on my desktop, which is where I logged this issue from originally.

1.73 was just released. Can you try the update and let me know how it goes?