Posts

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

DevOps: Authentication failed for Azure Git

Issue: Visual Studio keep asking username and password when trying to clone a repository.  Solution: https://stackoverflow.com/a/70528023/4979261 Login into Azure Dev Ops portal. Go to Project you wish to clone. Select Repo from left menu. Click on Clone from right top corner. Click Generate Git Credential Enter given username & password where you are cloning repository. you are done!

Use USB Connection to Debug Android Devices from Desktop Chrome

Image
Quick Start:      How to get the web console log in Chrome for Android Where to locate the Build Number?       How to activate ‘Developer options’ on your Android smartphone Troubleshooting:      Remote debug Android devices The Key Points: If the device does not show up in the Devices list: 1.    Revoke USB Debugging Authorizations  from the  Developer Options 2. Unplug and reconnect the USB between Android device and PC     Swipe down to check the USB File Transfer options. It must be set to "USB tethering".     Answer Yes for  Allow USB Debugging  prompt on your Android device That's all.

The Best Article to Explain ASP.NET Core Endpoint Routing

  https://www.tektutorialshub.com/asp-net-core/asp-net-core-endpoint-routing/

Using .NET OpenAPI tool to auto-generate client code

 https://markheath.net/post/openapi-autogen-aspnetcore Note: please user Browse button to select OpenAPIs\swagger.json when adding OpenAPI