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

AuthenticationManager.GetHighTrustCertificateAppOnlyAuthenticatedContext Method

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

Returns a SharePoint ClientContext using High Trust Certificate App Only Authentication

Namespace:OfficeDevPnP.Core
Assembly: OfficeDevPnP.Core.dll

Syntax

public ClientContext GetHighTrustCertificateAppOnlyAuthenticatedContext(String siteUrl, String clientId, String certificatePath, SecureString certificatePassword, String certificateIssuerId)

Parameters

siteUrl

  Type: System.String
  Site for which the ClientContext object will be instantiated

clientId

  Type: System.String
  The SharePoint Client ID

certificatePath

  Type: System.String
  Full path to the private key certificate (.pfx) used to authenticate

certificatePassword

  Type: System.Security.SecureString
  Password used for the private key certificate (.pfx)

certificateIssuerId

  Type: System.String
  The IssuerID under which the CER counterpart of the PFX has been registered in SharePoint as a Trusted Security Token issuer

Return Value

Type: ClientContext
Authenticated SharePoint ClientContext

See also

© 2018 Microsoft