sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SharePoint PnP Sites Core library c# example is wrong

Open StefH opened this issue 1 year ago • 1 comments

The method GetAzureADAppOnlyAuthenticatedContext is obsolete in latest version.

This line

using (var cc = authManager.GetAzureADAppOnlyAuthenticatedContext("https://contoso.sharepoint.com/sites/demo"))

Should be replaced by:

using (var cc = await authManager.GetContextAsync("https://contoso.sharepoint.com/sites/demo"))

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

StefH avatar Sep 05 '22 16:09 StefH

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

msftbot[bot] avatar Sep 05 '22 16:09 msftbot[bot]