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

Microsoft.Identity.Client.Extensibility.AcquireTokenParameterBuilderExtensions

Extensibility helpers for acquire token parameter builders.
public static T WithCachePartitionKey<T>(this BaseAbstractAcquireTokenParameterBuilder<T> builder, string key, string value) where T : BaseAbstractAcquireTokenParameterBuilder<T>

Adds a key-value pair to the token cache key without sending it as a query parameter. Use this to partition cached tokens (e.g., isolating short-lived sessions from regular sessions for the same user). Both AcquireTokenByAuthorizationCode and AcquireTokenSilent must use the same partition key to match cached entries.

public static T WithExtraHttpHeaders<T>(this AbstractAcquireTokenParameterBuilder<T> builder, IDictionary<string, string> extraHttpHeaders) where T : AbstractAcquireTokenParameterBuilder<T>

Adds additional HTTP headers to the token request.

Controls whether MSAL sends the reserved offline_access scope while continuing to send openid and profile. Only applicable to authorization code redemption flows.