AcquireTokenParameterBuilderExtensions.WithExtraHttpHeaders<T> Method

Definition

Adds additional Http Headers to the token request.

public static T WithExtraHttpHeaders<T> (this Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T> builder, System.Collections.Generic.IDictionary<string,string> extraHttpHeaders) where T : Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T>;
static member WithExtraHttpHeaders : Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)> * System.Collections.Generic.IDictionary<string, string> -> 'T (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)
<Extension()>
Public Function WithExtraHttpHeaders(Of T As AbstractAcquireTokenParameterBuilder(Of T)) (builder As AbstractAcquireTokenParameterBuilder(Of T), extraHttpHeaders As IDictionary(Of String, String)) As T

Type Parameters

T

Parameters

builder
AbstractAcquireTokenParameterBuilder<T>

Parameter builder for a acquiring tokens.

extraHttpHeaders
System.Collections.Generic.IDictionary<System.String,System.String>

additional Http Headers to add to the token request.

Returns

T

Applies to