Search Results for

    Show / Hide Table of Contents

    Interface IAuthenticationProvider

    Defines the public interface that any Authentication Provider must implement

    CredentialManagerAuthenticationProvider
    DeviceCodeAuthenticationProvider
    ExternalAuthenticationProvider
    InteractiveAuthenticationProvider
    OAuthAuthenticationProvider
    OnBehalfOfAuthenticationProvider
    UsernamePasswordAuthenticationProvider
    X509CertificateAuthenticationProvider
    Namespace: PnP.Core.Services
    Assembly: PnP.Core.dll
    Syntax
    public interface IAuthenticationProvider

    Methods

    AuthenticateRequestAsync(Uri, HttpRequestMessage)

    Authenticates the specified request message.

    Declaration
    Task AuthenticateRequestAsync(Uri resource, HttpRequestMessage request)
    Parameters
    Uri resource

    Request uri

    HttpRequestMessage request

    The HttpRequestMessage to authenticate.

    Returns
    Task

    The task to await.

    GetAccessTokenAsync(Uri)

    Gets an access token for the requested resource

    Declaration
    Task<string> GetAccessTokenAsync(Uri resource)
    Parameters
    Uri resource

    Resource to request an access token for

    Returns
    Task<string>

    An access token

    GetAccessTokenAsync(Uri, string[])

    Gets an access token for the requested resource and scope

    Declaration
    Task<string> GetAccessTokenAsync(Uri resource, string[] scopes)
    Parameters
    Uri resource

    Resource to request an access token for

    string[] scopes

    Scopes to request

    Returns
    Task<string>

    An access token

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer