Share via


AzureServiceTokenProvider.GetAuthenticationResultAsync Method

Definition

Overloads

GetAuthenticationResultAsync(String, String)
GetAuthenticationResultAsync(String, Boolean, CancellationToken)
GetAuthenticationResultAsync(String, String, CancellationToken)
GetAuthenticationResultAsync(String, String, Boolean, CancellationToken)

GetAuthenticationResultAsync(String, String)

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult> GetAuthenticationResultAsync (string resource, string tenantId);
abstract member GetAuthenticationResultAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
override this.GetAuthenticationResultAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
Public Overridable Function GetAuthenticationResultAsync (resource As String, tenantId As String) As Task(Of AppAuthenticationResult)

Parameters

resource
String
tenantId
String

Returns

Applies to

GetAuthenticationResultAsync(String, Boolean, CancellationToken)

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult> GetAuthenticationResultAsync (string resource, bool forceRefresh, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAuthenticationResultAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
override this.GetAuthenticationResultAsync : string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
Public Overridable Function GetAuthenticationResultAsync (resource As String, forceRefresh As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AppAuthenticationResult)

Parameters

resource
String
forceRefresh
Boolean
cancellationToken
CancellationToken

Returns

Applies to

GetAuthenticationResultAsync(String, String, CancellationToken)

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult> GetAuthenticationResultAsync (string resource, string tenantId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAuthenticationResultAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
override this.GetAuthenticationResultAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
Public Overridable Function GetAuthenticationResultAsync (resource As String, Optional tenantId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AppAuthenticationResult)

Parameters

resource
String
tenantId
String
cancellationToken
CancellationToken

Returns

Applies to

GetAuthenticationResultAsync(String, String, Boolean, CancellationToken)

public virtual System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult> GetAuthenticationResultAsync (string resource, string tenantId, bool forceRefresh, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAuthenticationResultAsync : string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
override this.GetAuthenticationResultAsync : string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Services.AppAuthentication.AppAuthenticationResult>
Public Overridable Function GetAuthenticationResultAsync (resource As String, tenantId As String, forceRefresh As Boolean, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AppAuthenticationResult)

Parameters

resource
String
tenantId
String
forceRefresh
Boolean
cancellationToken
CancellationToken

Returns

Applies to