MsGraphAuthProvider.AuthenticateRequestAsync Method

Definition

Caution

This method is deprecated. Please manually add access token to request head instead.

Authenticates the specified request message.

[System.Obsolete("This method is deprecated. Please manually add access token to request head instead.", false)]
public System.Threading.Tasks.Task AuthenticateRequestAsync (Microsoft.Kiota.Abstractions.RequestInformation request, System.Collections.Generic.Dictionary<string,object>? additionalAuthenticationContext = default, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This method is deprecated. Please manually add access token to request head instead.", false)>]
abstract member AuthenticateRequestAsync : Microsoft.Kiota.Abstractions.RequestInformation * System.Collections.Generic.Dictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AuthenticateRequestAsync : Microsoft.Kiota.Abstractions.RequestInformation * System.Collections.Generic.Dictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function AuthenticateRequestAsync (request As RequestInformation, Optional additionalAuthenticationContext As Dictionary(Of String, Object) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

request
Microsoft.Kiota.Abstractions.RequestInformation

The RequestInformation to authenticate.

additionalAuthenticationContext
Dictionary<String,Object>
cancellationToken
CancellationToken

Returns

The task to await.

Implements

Microsoft.Kiota.Abstractions.Authentication.IAuthenticationProvider.AuthenticateRequestAsync(Microsoft.Kiota.Abstractions.RequestInformation,System.Collections.Generic.Dictionary{System.String,System.Object},System.Threading.CancellationToken)
Attributes

Applies to