Compartir a través de


SignedHttpRequestHandler.ValidateSignedHttpRequestPayloadAsync Method

Definition

Validates signed http request payload.

protected internal virtual System.Threading.Tasks.Task<Microsoft.IdentityModel.Tokens.SecurityToken> ValidateSignedHttpRequestPayloadAsync (Microsoft.IdentityModel.Tokens.SecurityToken signedHttpRequest, Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationContext signedHttpRequestValidationContext, System.Threading.CancellationToken cancellationToken);
abstract member ValidateSignedHttpRequestPayloadAsync : Microsoft.IdentityModel.Tokens.SecurityToken * Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Tokens.SecurityToken>
override this.ValidateSignedHttpRequestPayloadAsync : Microsoft.IdentityModel.Tokens.SecurityToken * Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Tokens.SecurityToken>
Protected Friend Overridable Function ValidateSignedHttpRequestPayloadAsync (signedHttpRequest As SecurityToken, signedHttpRequestValidationContext As SignedHttpRequestValidationContext, cancellationToken As CancellationToken) As Task(Of SecurityToken)

Parameters

signedHttpRequest
SecurityToken

A SignedHttpRequest.

signedHttpRequestValidationContext
SignedHttpRequestValidationContext

A structure that wraps parameters needed for SignedHttpRequest validation.

cancellationToken
CancellationToken

Propagates notification that operations should be canceled.

Returns

Remarks

The library doesn't provide any caching logic for replay validation purposes. ReplayValidatorAsync delegate can be utilized for replay validation

Applies to