Share via


AuthenticationResultToken.GetAccessTokenAsync Method

Definition

Overloads

GetAccessTokenAsync(Task<AuthenticationResult>)
GetAccessTokenAsync(Task<AuthenticationResult>, String, String)

GetAccessTokenAsync(Task<AuthenticationResult>)

public static System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken> GetAccessTokenAsync (System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> result);
static member GetAccessTokenAsync : System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken>
Public Shared Function GetAccessTokenAsync (result As Task(Of AuthenticationResult)) As Task(Of IAccessToken)

Parameters

Returns

Applies to

GetAccessTokenAsync(Task<AuthenticationResult>, String, String)

public static System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken> GetAccessTokenAsync (System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> result, string userId = default, string tenantId = default);
static member GetAccessTokenAsync : System.Threading.Tasks.Task<Microsoft.Identity.Client.AuthenticationResult> * string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Commands.Common.Authentication.IAccessToken>
Public Shared Function GetAccessTokenAsync (result As Task(Of AuthenticationResult), Optional userId As String = Nothing, Optional tenantId As String = Nothing) As Task(Of IAccessToken)

Parameters

userId
String
tenantId
String

Returns

Applies to