Share via


ManagedIdentityServiceClientCredentialsFactory.CreateCredentialsAsync Method

Definition

A factory method for creating 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)

Parameters

appId
String

The appId.

audience
String

The audience.

loginEndpoint
String

The login url.

validateAuthority
Boolean

The validate authority vale to use.

cancellationToken
CancellationToken

A cancellation token.

Returns

Task<Microsoft.Rest.ServiceClientCredentials>

A Task<TResult> representing the result of the asynchronous operation.

Applies to