Posts

Showing posts from July, 2023

SharePoint Online authentication using CSOM

Image
Jerryzy   •  Follow 10,436 Reputation points Apr 1, 2021, 9:55 PM Hi  @Lakshman Bana  , PnP.Framework Library supported to use App Id and App Secret to get the ClientContext and this library supported both .NET Framework and .NET Standard: Please first install PnP.Core as this is the dependent package for PnP.Framework: Copy Install-Package PnP.Core -Version 1.1.0 Install-Package PnP.Framework -Version 1.4.0 Then authentication with App Id and AppSecret ( register in https://siteurl/_layouts/15/AppRegNew.aspx) like this: Copy using Microsoft.SharePoint.Client; using PnP.Framework; ClientContext ctx = new AuthenticationManager().GetACSAppOnlyContext("SiteUrl", "AppId", "AppSecret"); ctx.Load(ctx.Web); ctx.ExecuteQuery(); Here is a detailed blog for your reference: https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs Recommend:  M365 – SharePoint Online – CSOM – Getting SharePoint client context using

Using Visual Studio Code to Check in a Folder to DevOps

 https://stackoverflow.com/questions/67616266/how-to-connect-visual-studio-code-with-azure-git-repo Issue  When pushing to..., I got the following error: git push EUM-Config main error: RPC failed; curl 56 HTTP/2 stream 7 was reset send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date Solution: git config --global http.version HTTP/1.1 https://stackoverflow.com/questions/66366582/github-unexpected-disconnect-while-reading-sideband-packet