Table of Contents

Class AbstractPublicClientAcquireTokenParameterBuilder<T>

Namespace
Microsoft.Identity.Client
Assembly
Microsoft.Identity.Client.dll

Base class for public client application token request builders

public abstract class AbstractPublicClientAcquireTokenParameterBuilder<T> : AbstractAcquireTokenParameterBuilder<T> where T : AbstractAcquireTokenParameterBuilder<T>

Type Parameters

T
Inheritance
AbstractPublicClientAcquireTokenParameterBuilder<T>
Derived
Inherited Members
Extension Methods

Methods

ExecuteAsync(CancellationToken)

Executes the Token request asynchronously, with a possibility of cancelling the asynchronous method.

public override Task<AuthenticationResult> ExecuteAsync(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Cancellation token. See CancellationToken

Returns

Task<AuthenticationResult>

Authentication result containing a token for the requested scopes and parameters set in the builder.

Remarks

Cancellation is not guaranteed, it is best effort. If the operation reaches a point of no return, e.g. tokens are acquired and written to the cache, the task will complete even if cancellation was requested. Do not rely on cancellation tokens for strong consistency.

To learn more about potential exceptions thrown by the function, refer to Exceptions in MSAL.NET.