Share via


AcquireTokenForClientBuilderExtensions.WithProofOfPosessionKeyId Method

Definition

Binds the token to a key in the cache. L2 cache keys contain the key id. No cryptographic operations is performed on the token.

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

Parameters

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