AbstractConfidentialClientAcquireTokenParameterBuilderExtension.WithExtraBodyParameters<T> 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.
Add extra body parameters to the token request. These parameters are added to the cache key to associate these parameters with the acquired token. Works for confidential client flows (AcquireTokenForClient, AcquireTokenOnBehalfOf, AcquireTokenByAuthorizationCode).
public static T WithExtraBodyParameters<T>(this Microsoft.Identity.Client.AbstractConfidentialClientAcquireTokenParameterBuilder<T> builder, System.Collections.Generic.Dictionary<string,Func<System.Threading.CancellationToken,System.Threading.Tasks.Task<string>>> extraBodyParams) where T : Microsoft.Identity.Client.AbstractConfidentialClientAcquireTokenParameterBuilder<T>;
static member WithExtraBodyParameters : Microsoft.Identity.Client.AbstractConfidentialClientAcquireTokenParameterBuilder<'T (requires 'T :> Microsoft.Identity.Client.AbstractConfidentialClientAcquireTokenParameterBuilder<'T>)> * System.Collections.Generic.Dictionary<string, Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<string>>> -> 'T (requires 'T :> Microsoft.Identity.Client.AbstractConfidentialClientAcquireTokenParameterBuilder<'T>)
<Extension()>
Public Function WithExtraBodyParameters(Of T As AbstractConfidentialClientAcquireTokenParameterBuilder(Of T)) (builder As AbstractConfidentialClientAcquireTokenParameterBuilder(Of T), extraBodyParams As Dictionary(Of String, Func(Of CancellationToken, Task(Of String)))) As T
Type Parameters
- T
The concrete confidential client builder type.
Parameters
The builder to chain options to.
- extraBodyParams
- Dictionary<String,Func<CancellationToken,Task<String>>>
List of additional body parameters.
Returns
The concrete builder to chain method calls.