Table of Contents

Class AbstractManagedIdentityAcquireTokenParameterBuilder<T>

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

Abstract base class for managed identity application token request builders.

public abstract class AbstractManagedIdentityAcquireTokenParameterBuilder<T> : BaseAbstractAcquireTokenParameterBuilder<T> where T : BaseAbstractAcquireTokenParameterBuilder<T>

Type Parameters

T
Inheritance
AbstractManagedIdentityAcquireTokenParameterBuilder<T>
Derived
Inherited Members

Constructors

AbstractManagedIdentityAcquireTokenParameterBuilder()

Default constructor for AbstractManagedIdentityParameterBuilder.

protected AbstractManagedIdentityAcquireTokenParameterBuilder()

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.