Udostępnij za pośrednictwem


PopKeyResolverFromKeyIdAsync Delegate

Definition

A delegate that will be called to resolve a SecurityKey from a 'cnf' claim that contains only the 'kid' claim.

public delegate System.Threading.Tasks.Task<Microsoft.IdentityModel.Tokens.SecurityKey> PopKeyResolverFromKeyIdAsync(string kid, SecurityToken validatedAccessToken, SecurityToken signedHttpRequest, SignedHttpRequestValidationContext signedHttpRequestValidationContext, CancellationToken cancellationToken);
type PopKeyResolverFromKeyIdAsync = delegate of string * SecurityToken * SecurityToken * SignedHttpRequestValidationContext * CancellationToken -> Task<SecurityKey>
Public Delegate Function PopKeyResolverFromKeyIdAsync(kid As String, validatedAccessToken As SecurityToken, signedHttpRequest As SecurityToken, signedHttpRequestValidationContext As SignedHttpRequestValidationContext, cancellationToken As CancellationToken) As Task(Of SecurityKey) 

Parameters

kid
String

KeyIdentifier value.

validatedAccessToken
SecurityToken

An access token ("at") that was already validated during the SignedHttpRequest validation process.

signedHttpRequest
SecurityToken

A SignedHttpRequest.

signedHttpRequestValidationContext
SignedHttpRequestValidationContext

A structure that wraps parameters needed for SignedHttpRequest validation.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Return Value

A resolved SecurityKey.

Remarks

https://datatracker.ietf.org/doc/html/rfc7800#section-3.4

Applies to