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

AuthenticationManager.GetADFSCertificateMixedAuthenticationContext Method

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

Returns a SharePoint on-premises ClientContext for sites secured via ADFS

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

Syntax

public ClientContext GetADFSCertificateMixedAuthenticationContext(String siteUrl, String serialNumber, String sts, String idpId, Int32 logonTokenCacheExpirationWindow = 10)

Parameters

siteUrl

  Type: System.String
  Url of the SharePoint site that's secured via ADFS

serialNumber

  Type: System.String
  Represents the serial number of the certificate as displayed by the certificate dialog box, but without the spaces, or as returned by the System.Security.Cryptography.X509Certificates.X509Certificate.GetSerialNumberString method

sts

  Type: System.String
  Hostname of the ADFS server (e.g. sts.company.com)

idpId

  Type: System.String
  Identifier of the ADFS relying party that we're hitting

(optional) logonTokenCacheExpirationWindow

  Type: System.Int32
  Optioanlly provide the value of the SharePoint STS logonTokenCacheExpirationWindow. Defaults to 10 minutes.

Return Value

Type: ClientContext
ClientContext to be used by CSOM code

See also

© 2018 Microsoft