<PackageReference Include="Microsoft.Identity.Client" Version="4.84.2-preview" />

Microsoft.Identity.Client.BaseAbstractAcquireTokenParameterBuilder<T>

Base class for builders of token requests, which attempt to acquire a token based on the provided parameters.

Default constructor for AbstractAcquireTokenParameterBuilder.

public abstract Task<AuthenticationResult> ExecuteAsync(CancellationToken cancellationToken)

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

Executes the Token request asynchronously.

protected virtual void Validate()

Validates the parameters of the AcquireToken operation.

public T WithCorrelationId(Guid correlationId)

Sets the correlation id to be used in the authentication request. Used to track a request in the logs of both the SDK and the Identity Provider service. If not set, a random one will be generated.

public T WithExtraQueryParameters(Dictionary<string, string> extraQueryParameters)

Sets Extra Query Parameters for the query string in the HTTP authentication request.

public T WithExtraQueryParameters(IDictionary<string, ValueTuple<string, bool>> extraQueryParameters)

Sets Extra Query Parameters for the query string in the HTTP authentication request with control over which parameters are included in the cache key