Saturday, 27 July 2019

CSOM: How to authenticate a user on SharePoint 2013 using claim based authentication?


Visual Studio > Project > References > Manage NuGet Packages > Online > Search 'Microsoft.SharePointOnline.CSOM' > Accept and Install

Visual Studio > Project > References > Manage NuGet Packages > Online > Search 'OfficeDevPnP.Core'> Accept and Install


using Microsoft.SharePoint.Client;
using PnP = OfficeDevPnP.Core;

PnP.AuthenticationManager authManager = new PnP.AuthenticationManager();
ClientContext context = authManager.GetWebLoginClientContext("siteUrl");



Thursday, 18 July 2019