Interface IAuthenticationProvider
Defines the public interface that any Authentication Provider must implement
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 |
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<System.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<System.String>
An access token |