Table of Contents

Interface ILegacyAuthenticationProvider

Namespace
PnP.Core.Services
Assembly
PnP.Core.dll

Defines the interface that a legacy Authentication Provider must implement. Note: this is only meant to be used by PnP Framework, no 3rd party support will be provided.

public interface ILegacyAuthenticationProvider : IAuthenticationProvider
Inherited Members

Properties

RequiresCookieAuthentication

Allows to see if the authentication provider should prioritize the cookie authentication

bool RequiresCookieAuthentication { get; }

Property Value

bool

Methods

GetCookieHeader(Uri)

Provides the value of the Cookie header for legacy cookie-based authentication

string GetCookieHeader(Uri targetUrl)

Parameters

targetUrl Uri

The URL of the target API

Returns

string

The string value of the Cookie header to use for cookie authentication

GetRequestDigest()

Provides the value of the Request Digest header for legacy cookie-based authentication

string GetRequestDigest()

Returns

string

The string value of the Request Digest header to use for cookie authentication