Switching to Windows Hello Causes Unrecoverable Issue
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 881
- Forks
- 285
- Avg merge
- 3d 36m
- Merged PRs (30d)
- 1
Description
1. Describe the bug
after enabling / switching to windows hello the extension can no longer auth with bc saas systems.
2. To Reproduce
Steps to reproduce the behavior:
- use the extension to auth with a bc saas system.
- enable windows hello, restart you machine, etc.
- start vs code, try and auth with the same bc system, get an error
- it's possible it'll error with any saas system, but I didn't have a new one available to test with.
[2026-07-21 13:24:54.38] Starting a debug session using launch configuration 'Attach: Microsoft cloud sandbox' .
[2026-07-21 13:24:54.55] Error: Key not valid for use in specified state
[2026-07-21 13:24:54.55] Error: An internal error has occurred
3. Expected behaviour
I am not expecting to have the credentials cache available, however I would expect it to be able to make a new cache, if that makes sense. The same way git recognizes it needs me to login, copilot, signal, etc.
to work around this I had to
- uninstall the extension
- close vs code
- delete the extension folder
- start vs code
- re-install the extension
if you can tell me which file in that folder is the actual guilty party I will be happy to note that internally.
4. Actual behaviour
Hard error that cannot be resolved.
5. Versions:
- AL Language:17.0.2273547
- Visual Studio Code:1.129.1 (system setup)
- Business Central:saas 28
Final Checklist
Please remember to do the following:
-
Search the issue repository to ensure you are reporting a new issue
-
Reproduce the issue after disabling all extensions except the AL Language extension
-
Simplify your code around the issue to better isolate the problem
Internal work item: AB#649196
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the failure in the AL Language extension's VS Code authentication flow after enabling Windows Hello, then trace the credential-cache handling around the reported “Key not valid for use in specified state” error. Done means authentication can recover by creating a new cache instead of requiring extension-folder deletion and reinstallation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100