How to Read a SharePoint List Using .NET 8 with MFA Authentication
System.Net.WebException: 'The remote server returned an error: (403) FORBIDDEN.' I am using .NET 8, and I've already tried with GetACSAppOnlyContext but it wouldn't work because I need to access more than 5 SharePoint sites simultaneously. There was an error in CC.ExecuteQuery();
'The remote server returned an error: (403) FORBIDDEN.' ao usar ClientContext com NetworkCredential
I wanted to know if there is a new method that works. I have tried several methods and all are giving errors.
Libraries I tested:
- TTCUE.NetCore.SharepointOnline.CSOM
- PnP.Framework
I am looking for a solution that works with .NET 8 to read SharePoint lists and access more than 5 different SharePoint sites.