AL icon indicating copy to clipboard operation
AL copied to clipboard

Unable to authenticate to BC on Linux

Open dsichrovsky opened this issue 7 months ago • 2 comments

I am running Visual Studio Code on Linux Fedora 42 having AL Extension installed same project and launch.json works on Windows however if i try to download symbols from server on Linux it prompts for username and password and fails with error:

[2025-05-14 17:35:20.91] Please authenticate in the Visual Studio Code... <I enter username and password in pop up>

[2025-05-14 17:35:25.51] Error: Windows Data Protection API (DPAPI) is not supported on this platform.

This means on Linux I cannot download nor do anything with the BC server.

Same config works flawlessly on Windows.

Is there any fix to this?

Internal work item: AB#580644

dsichrovsky avatar May 14 '25 15:05 dsichrovsky

Have you tried going back to device authentication by disabling interactive login setting?

Image

SBalslev avatar May 27 '25 06:05 SBalslev

Dear Steffen, Unfortunately even unchecking this setting does not solve the issue. My on-prem BC instance uses NavUserPassword so in launch.json I specified "UserPassword" and this still prompts the same way for user and password and producing same error.

dsichrovsky avatar May 27 '25 12:05 dsichrovsky

@dsichrovsky the DPAPI error should not block you from authenticating - are you getting other issues? I think there is a different bug in there on the username/password auth path that might be resolved by clearing the credentials and retrying. Still looking into it but not on top of the stack.

SBalslev avatar Jul 09 '25 10:07 SBalslev

Thank you, any date we could expect this AB#580644 available?

Thank you

dsichrovsky avatar Oct 30 '25 17:10 dsichrovsky