.Net Core Web API Development

Michel Al Hayek 36 Reputation points
2021-04-13T10:00:47.55+00:00

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)?

Microsoft 365 and Office | SharePoint | For business | Windows

2 answers

Sort by: Oldest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    6 deleted comments

    Comments have been turned off. Learn more

  2. md zakir 1 Reputation point
    2021-06-24T09:35:29.577+00:00

    Using above method we are able to get wesite details but unable to retrieve list item. The item count is returning 0.

    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.