AbstractConfidentialClientAcquireTokenParameterBuilderExtension.WithExtraClientAssertionClaims<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.
Specifies extra claims to be included in the client assertion. These claims will be merged with default claims when the client assertion is generated. This lets higher level APIs like Microsoft.Identity.Web provide additional claims for the client assertion. Important: tokens are associated with the extra client assertion claims, which impacts cache lookups. This is an extensibility API and should not be used by applications directly.
public static Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T> WithExtraClientAssertionClaims<T>(this Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T> builder, string clientAssertionClaims) where T : Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T>;
static member WithExtraClientAssertionClaims : Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)> * string -> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)> (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)
<Extension()>
Public Function WithExtraClientAssertionClaims(Of T As AbstractAcquireTokenParameterBuilder(Of T)) (builder As AbstractAcquireTokenParameterBuilder(Of T), clientAssertionClaims As String) As AbstractAcquireTokenParameterBuilder(Of T)
Type Parameters
- T
Parameters
The builder to chain options to
- clientAssertionClaims
- String
Additional claims in JSON format to be signed in the client assertion.
Returns
The builder to chain the .With methods
Exceptions
Thrown when clientAssertionClaims is null or whitespace.