Describe the bug
After trying to add Entra Account interactively in browser the account does not appear in the dropdown list.
When adding a new connection I use Authentication type - Entra Auth. I successfully select Subsription, Resource Group, Location, Server, Database.
When adding Entra Account I am being redirected, I login, everything seems fine but I am unable to see the account in the list. In the browser i do see "Your Microsoft Entra Account was added successfully!
You may now close this page.".
To Reproduce
Steps to reproduce the behavior:
- Start adding a new connection
- Fill in subscription, rg, location, server, db.
- Select authentication type - Entra Auth
- Click "Add Entra Id" button
- Log in in the browser.
- The account does not appear in the dropdown.
Expected behavior
The account is added to the dropdown and I can select it.
VS Code version
Extension version: 1.10.0
Version: 1.98.2 (user setup)
Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
Date: 2025-03-12T13:32:45.399Z
Electron: 34.2.0
ElectronBuildId: 11161602
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Windows_NT x64 10.0.22631
Extension Logs
OUTPUT: [9:05:40 AM] [PgToolsService Initialization] [Verbose]: Retreived 1 Azure accounts from account store.
mainThreadExtensionService.ts:79 TypeError: Cannot read properties of undefined (reading 'id')
at /home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/accountStore.js:70:73
at Array.filter (<anonymous>)
at AccountStore.<anonymous> (/home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/accountStore.js:70:49)
at Generator.next (<anonymous>)
at /home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/accountStore.js:12:71
at new Promise (<anonymous>)
at __awaiter (/home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/accountStore.js:8:12)
at AccountStore.addAccount (/home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/accountStore.js:65:16)
at MsalAzureController.<anonymous> (/home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/azureController.js:52:32)
at Generator.next (<anonymous>)
at fulfilled (/home/coder/.vscode-server/extensions/ms-ossdata.vscode-pgsql-1.10.0/out/src/azure/azureController.js:9:58)
at processTicksAndRejections (node:internal/process/task_queues:95:5)```
Describe the bug
After trying to add Entra Account interactively in browser the account does not appear in the dropdown list.
When adding a new connection I use Authentication type - Entra Auth. I successfully select Subsription, Resource Group, Location, Server, Database.
When adding Entra Account I am being redirected, I login, everything seems fine but I am unable to see the account in the list. In the browser i do see "Your Microsoft Entra Account was added successfully!
You may now close this page.".
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The account is added to the dropdown and I can select it.
VS Code version
Extension version: 1.10.0
Version: 1.98.2 (user setup)
Commit: ddc367ed5c8936efe395cffeec279b04ffd7db78
Date: 2025-03-12T13:32:45.399Z
Electron: 34.2.0
ElectronBuildId: 11161602
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Windows_NT x64 10.0.22631
Extension Logs
OUTPUT: [9:05:40 AM] [PgToolsService Initialization] [Verbose]: Retreived 1 Azure accounts from account store.