Skip to content

SharePoint PnP Sites Core library c# example is wrong #8412

@StefH

Description

@StefH

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docsCategory: SharePoint developer/development documentation relatedarea:docs-commentCategory: Comment left on bottom of a docs page here: https://docs.microsoft.com/sharepoint/devtype:archive-old-issueIssues which are closed as tool old for active work

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions