ReplayValidatorAsync Delegate
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.
A delegate that will be called to check if SignedHttpRequest is replayed, if set.
public delegate System.Threading.Tasks.Task ReplayValidatorAsync(SecurityToken signedHttpRequest, SignedHttpRequestValidationContext signedHttpRequestValidationContext, CancellationToken cancellationToken);
type ReplayValidatorAsync = delegate of SecurityToken * SignedHttpRequestValidationContext * CancellationToken -> Task
Public Delegate Function ReplayValidatorAsync(signedHttpRequest As SecurityToken, signedHttpRequestValidationContext As SignedHttpRequestValidationContext, cancellationToken As CancellationToken) As Task
Parameters
- signedHttpRequest
- SecurityToken
A SignedHttpRequest which contains the 'nonce' claim to validate.
- signedHttpRequestValidationContext
- SignedHttpRequestValidationContext
A structure that wraps parameters needed for SignedHttpRequest validation.
- cancellationToken
- CancellationToken
Propagates notification that operations should be canceled.
Return Value
Expected to throw an appropriate exception if SignedHttpRequest replay is detected.