Share via

PnP.Framework.AuthenticationManager Vs ConfidentialClientApplicationBuilder

john john 1,031 Reputation points
2021-08-26T11:20:41.613+00:00

We want to authenticate our .net core console application against SharePoint online >> but seems there are 2 ways of doing so either using PnP.Framework.AuthenticationManager or using ConfidentialClientApplicationBuilder .. the 2 approaches are mentioned in these links:-

https://www.vrdmn.com/2020/06/using-net-standard-csom-and-msalnet-for.html

+

https://sharepointstew.wordpress.com/2021/07/07/app-only-authentication-in-sharepoint-online-using-latest-azure-sdk/

so which approach is most recent and recommended to follow?

Thanks

Microsoft 365 and Office | SharePoint | For business | Windows

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,136 Reputation points
    2021-08-27T02:47:58.09+00:00

    Hi @john john ,

    It's the same. Both of them depend on MSAL(Microsoft.Identity.Client) for authentication. It is encapsulated in PnP.Framework.AuthenticationManager method.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.