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.

DPAPI binaries on @azure/msal-node-extensions do not work on Windows, on Node 15

See original GitHub issue

Library

  • @azure/msal-node-extensions@1.0.0-alpha.6

Description

If one installs @azure/msal-node-extensions@1.0.0-alpha.6 on Windows, using Node 15, the FilePersistenceWithDataProtection class (that uses the DPAPI binaries) throws when one attempts to use it.

Error Message

Uncaught PersistenceError: DPAPIEncryptedFileError: Encryption/Decryption failed. Error code: 87

Identity Provider

  • Azure AD

Browsers/Environment

Node v15.12.0 on Microsoft Windows 10 Pro.

Source

  • Internal (Microsoft)
  • Customer request

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joshfreecommented, Mar 30, 2021

@sameerag This issue, along with the other Node 8 issue https://github.com/AzureAD/microsoft-authentication-library-for-js/issues/3337, blocks the Azure.Identity Client library for Javascript release we’re planning for May.

Can this be prioritized higher?

0reactions
sameeragcommented, Apr 3, 2021

Thank you @sadasant. Great find. Follow up: Should we change our sample to reflect these changes? Can you please let us know if you can contribute a doc to help the community?

We would like to highlight this for anyone relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@azure/msal-node-extensions - npm package | Snyk
Learn more about @azure/msal-node-extensions: package health score, popularity, ... No known security issues ... Windows - DPAPI is used for encryption.
Read more >
Set up NodeJS on native Windows - Microsoft Learn
A guide to help you get your Node.js development environment set up directly on Windows.
Read more >
DataProtectionDecryptor - Decrypt DPAPI (Data Protection API ...
DataProtectionDecryptor is a powerful tool for Windows that allows you to decrypt passwords and other information encrypted by the DPAPI (Data Protection ...
Read more >
Node v14.15.1 (LTS)
This is a security release. Vulnerabilities fixed: CVE-2020-8277: Denial of Service through DNS request (High). A Node.js application that ...
Read more >
windows-build-tools - npm
This package has been deprecated. Author message: Node.js now includes build tools for Windows. You probably no longer need this tool.
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