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, StoreName storeName, StoreLocation storeLocation, String thumbPrint, String certificateIssuerId)

Parameters

siteUrl

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

clientId

  Type: System.String
  The SharePoint Client ID

storeName

  Type: System.Security.Cryptography.X509Certificates.StoreName
  The name of the store for the certificate

storeLocation

  Type: System.Security.Cryptography.X509Certificates.StoreLocation
  The location of the store for the certificate

thumbPrint

  Type: System.String
  The thumbprint of the certificate to locate in the store

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