AcquireTokenForClientBuilderExtensions.WithProofOfPosessionKeyId 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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應