SharePoint Online API – Get Access Token with Client ID and Secret – Part 2

In Part 1 of this post we created our SharePoint add-in and added permissions to it. We now can start using the SharePoint Online API. With using PnP Framework library Add the PnP Framework library nuget package to use the below code: https://www.nuget.org/packages/PnP.Framework https://gist.github.com/furkankaracan/5e400400e20dba153f8423e276ef9d2e With using Postman appReg_clientIdYour SharePoint add-in Client IDrealmYour SharePoint Tenant IDprincipal00000003-0000-0ff1-ce00-000000000000targetHost<domain_name>.sharepoint.com With … Continue reading SharePoint Online API – Get Access Token with Client ID and Secret – Part 2

SharePoint Online API – Get Access Token with Client ID and Secret – Part 1

With Microsfot leaving basic authentication behind it is unsecure to use username and passwords anymore. Authentication with Client ID and Secrets is the suggested and secured method to use. We will look at how to do this for SharePoint Online API. First we will register an app on SharePoint site, use its ID and Secret … Continue reading SharePoint Online API – Get Access Token with Client ID and Secret – Part 1