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 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈