Compartilhar via


MsalServiceClientCredentialsFactory.CreateCredentialsAsync Método

Definição

Um método de fábrica para criar ServiceClientCredentials.

public override System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> CreateCredentialsAsync (string appId, string audience, string loginEndpoint, bool validateAuthority, System.Threading.CancellationToken cancellationToken);
override this.CreateCredentialsAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public Overrides Function CreateCredentialsAsync (appId As String, audience As String, loginEndpoint As String, validateAuthority As Boolean, cancellationToken As CancellationToken) As Task(Of ServiceClientCredentials)

Parâmetros

appId
String

A appId.

audience
String

O público.

loginEndpoint
String

A URL de logon.

validateAuthority
Boolean

A autoridade de validação a ser usada pelo Vale.

cancellationToken
CancellationToken

Um token de cancelamento.

Retornos

Task<Microsoft.Rest.ServiceClientCredentials>

Um Task<TResult> que representa o resultado da operação assíncrona.

Aplica-se a