Skip to content

msal authentication suddenly stopped working from VS code #310044

@ramakoni1

Description

@ramakoni1

Type: Bug

Was using MCP servers in my VS code and they suddenly stopped working. Further troubleshooting isolated this to authentication issue. Cannot Sign in to Azure using new 'Azure Resources' from Visual Studio Code. · Issue #1039 · micros… which in turn pointed me to January 2025 (version 1.97) - changing the Microsoft account setting to msal-no-broker fixed the issue with one extension (powerbi-remote) but other internal extensions are not working. I am raising this issue to understand why msal authtentication setting is not working from VS code and if there is a way to fix this.

I already tried manually cleaning up vscode and reinstalling the same a couple of times. I would either get 404 or 401 errors - would get prompted for my enterprise credentials 3 or 4 times and then it just fails. Account information only shows my Github accoun and not my corp account.
Example errors:

  • Error fetching authorization server metadata: Error: Failed to fetch authorization server metadata from  404

  • "2026-04-07 23:09:58.462 [info] Connection state: Error 401 status sending message to : {"requestId":","errorCode":"TokenIsMissing","message":"Access token is required"}" -

Steps to Reproduce:

VS Code version: Code 1.116.0 (ae13001, 2026-04-14T11:01:03+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) Ultra 7 165H (22 x 3072)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x7d55 [Intel(R) Arc(TM) Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.6737 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
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_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.64GB (3.62GB free)
Process Argv --crash-reporter-id 7e6efee0-1725-40fd-a27e-72be9e7ee6ba
Screen Reader no
VM 0%
Extensions: none
A/B Experiments
vsliv368cf:30146710
vswsl492:30256859
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsdeactivate2:31464701
cloudbuttont:31379625
42190218_ostrepl:31403339
use-responses-api:31390855
anonusage:31403420
je187915:31401257
ec5jj548:31422691
cmp-cht-xtab-300-edit-0-7-speculative:31492379
metis_rerank_treatment1:31422731
cp_cls_t_966_ss:31454198
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
8g5ec713_opus_4_6:31487349
cp_cls_c_1081:31454833
conptydll_true:31489736
ia-use-proxy-models-svc:31452481
core-renderer-profiling-on:31440367
e9c30283:31461165
test_treatment2:31471001
control_6dc23131:31495068
idci7584:31464702
e3e4d672:31494082
534a6447_copy:31478748
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31495047
t-some:31486549
dfc2j404:31489908
cpptoolsoff-v2:31475362
827if375:31494040
githubstableflight:31469463
30450953:31494756
ghj88844:31492074
h08i8180:31475369
ec1eg703:31491645
po_split_t:31488386
ddid_c:31478207
getcmakediagnosticson:31489824
nes-perm-reb-1:31490410
cp_cls_c_1082:31491634
ihfe3146:31493005
nes-async-ew-check-off:31491821
logging_disabled_new:31493366

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions