Myh

Myh

  • 1.4k
  • 198
  • 1.5k

.Net Core Web API Development

Apr 13 2021 3:40 PM
Hello everyone, I am trying to develop a custom API (.Net 5) hosted on Azure or on a local IIS. this API's main duty is to get SharePoint online site clientcontext (csom) and to retrieve or manage some data in SP online. I have walked through the steps using-csom-for-dotnet-standard and I am not able to get the ClientContext. Anyway, what I need here is to access SharePoint online clientContext using client id and secret and not using a username/password because we have MFA.
 
any suggestion on how to give this custom API access on SharePoint online APIs using Client ID and Client Secret (or certificate)?