ServiceClientCredentialsFactory.CreateCredentialsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A factory method for creating ServiceClientCredentials.
public abstract System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials> CreateCredentialsAsync (string appId, string audience, string loginEndpoint, bool validateAuthority, System.Threading.CancellationToken cancellationToken);
abstract member CreateCredentialsAsync : string * string * string * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.ServiceClientCredentials>
Public MustOverride 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.