Forum Discussion
john john
Sep 24, 2020Iron Contributor
'AuthenticationManager' does not contain a constructor that takes 0 arguments
I have the following code to connect to SharePoint using clientID and ClientSecret:- string siteUrl = "https://****l.sharepoint.com/sites/DocumentApprovalProcess/";
string clientId = "**...
ganeshsanap
Dec 06, 2020MVP
The method you are trying to use is available in OfficeDevPnP.Core. You can install it from here.
Microsoft documentation: AuthenticationManager.GetAppOnlyAuthenticatedContext Method
You can check below reference to check how you can use this method:
Connect To SharePoint Online Site With App Only Authentication
Please click Mark as Best Response if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.