Interface IRequestAuthenticationProvider
The authentication provider interface.
Namespace: Microsoft.Graph.StatefulClient.Authentication
Assembly: Microsoft.Graph.StatefulClient.dll
Syntax
public interface IRequestAuthenticationProvider
Methods
View SourceAuthenticateOutboundRequestAsync(HttpRequestMessage, String)
Authenticates the specified request message. This method will be called any time there is an outbound request.
Declaration
Task AuthenticateOutboundRequestAsync(HttpRequestMessage request, string tenant)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpRequestMessage | request | The request. |
System.String | tenant | The tenant. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The System.Threading.Tasks.Task. |
ValidateInboundRequestAsync(HttpRequestMessage)
Validates the request asynchronously. This method will be called any time we have an incoming request. Returning false will result in a Forbidden response being created.
Declaration
Task<RequestValidationResult> ValidateInboundRequestAsync(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpRequestMessage | request | The request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<RequestValidationResult> | The RequestValidationResult structure. |