AbstractConfidentialClientAcquireTokenParameterBuilderExtension.WithProofOfPosessionKeyId<T> Method

Definition

Binds the token to a key in the cache.No cryptographic operations is performed on the token.

public static Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T> WithProofOfPosessionKeyId<T> (this Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T> builder, string keyId, string expectedTokenTypeFromAad = "Bearer") where T : Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<T>;
static member WithProofOfPosessionKeyId : Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)> * string * string -> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)> (requires 'T :> Microsoft.Identity.Client.AbstractAcquireTokenParameterBuilder<'T>)
<Extension()>
Public Function WithProofOfPosessionKeyId(Of T As AbstractAcquireTokenParameterBuilder(Of T)) (builder As AbstractAcquireTokenParameterBuilder(Of T), keyId As String, Optional expectedTokenTypeFromAad As String = "Bearer") As AbstractAcquireTokenParameterBuilder(Of T)

Type Parameters

T

Parameters

builder
AbstractAcquireTokenParameterBuilder<T>

The builder to chain options to

keyId
String

A key id to which the access token is associated. The token will not be retrieved from the cache unless the same key id is presented. Can be null.

expectedTokenTypeFromAad
String

AAD issues several types of bound tokens. MSAL checks the token type, which needs to match the value set by ESTS. Normal POP tokens have this as "pop"

Returns

the builder

Applies to