pnp-auth icon indicating copy to clipboard operation
pnp-auth copied to clipboard

@pnp v3?

Open wmertens opened this issue 3 years ago • 4 comments

Is there a way to use this with the v3 @pnp libraries?

wmertens avatar Feb 23 '22 14:02 wmertens

This project seems dead. There have been no commits in 2 years. The SharePoint support in NodeJS appears very fractured and poorly documented.

opub avatar Feb 24 '22 00:02 opub

hmm yes but both @s-KaiNet and @koltyakov still seem pretty active.

wmertens avatar Feb 24 '22 06:02 wmertens

Yeah, we should update this library to support pnp v3. The reason why it's dead is simply that the best and recommended way to work with nodejs and SharePoint authentication is through msal.js. This library (based on node-sp-auth) was created many years ago to support some specific scenarios using Azure ACS (currently deprecated but still works in SP for backward compat.) and username-password (not very secure) methods. That's why if you build something modern, it's better to use msal.js and standard Azure AD-based authentication implemented in msal.js.

s-KaiNet avatar Feb 24 '22 09:02 s-KaiNet

Thanks @s-KaiNet. The msal-node package seems to be what I want. The number of options that MS supports combined with all the packages that implement (or more frequently partially implement) them can be pretty overwhelming.

opub avatar Feb 24 '22 14:02 opub