Table of contents
TOC
Collapse the table of content
Expand the table of content

TimerJob.UseAzureADAppOnlyAuthentication Method

SharePoint Dev Documents|Last Updated: 5/19/2017
|
1 Contributor

Prepares the timerjob to operate against SharePoint Only with Azure AD app-only credentials. Sets AuthenticationType to AuthenticationType.AzureADAppOnly

Namespace:OfficeDevPnP.Core.Framework.TimerJobs
Assembly: OfficeDevPnP.Core.dll

Syntax

public void UseAzureADAppOnlyAuthentication(String clientId, String azureTenant, X509Certificate2 certificate)

Parameters

clientId

  Type: System.String
  Client ID of the app

azureTenant

  Type: System.String
  The Azure tenant name, like contoso.com

certificate

  Type: System.Security.Cryptography.X509Certificates.X509Certificate2
  The X.509 Certificate to use for AppOnly Authentication

Return Value

Type: void

See also

© 2018 Microsoft