question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot sign in - Error: Unable to parse decrypted password

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
SmithPlattscommented, Nov 5, 2022

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.

1reaction
TylerLeonhardtcommented, Nov 3, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to fetch and parse login fields #154 - GitHub
When trying to enter a password into a form, I see the following message instead: Error: Unable to fetch and parse login fields:...
Read more >
Cannot able to decrypt the password field in Quebec version ...
I was using gr.<field_name>.getDecryptedValue() to decrypt the password but Quebec cannot able to decrypt the password. Find the below results ...
Read more >
Error processing SAML response - Unable to decrypt the ...
Cause. This error means that the Service Provider (SP) wasn't able to decrypt the assertion created by the Identity Provider (IdP), which ...
Read more >
Windows Password won't decrypt on AWS EC2 even with the ...
For me it was the solution. The AWS UI doesn't detect that the key was passphrase protected and then you need to decrypt...
Read more >
Ansible Error: Decryption Failed - How to fix it quickly - Bobcares
Ansible Error: Decryption Failed occurs because the decryption password we provide to ansible is incorrect. Here's how to fix it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found