SignedHttpRequestHandler.ValidateSignedHttpRequestAsync 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.
Validates a signed http request using the signedHttpRequestValidationContext
.
public System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationResult> ValidateSignedHttpRequestAsync (Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationContext signedHttpRequestValidationContext, System.Threading.CancellationToken cancellationToken);
member this.ValidateSignedHttpRequestAsync : Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.SignedHttpRequest.SignedHttpRequestValidationResult>
Public Function ValidateSignedHttpRequestAsync (signedHttpRequestValidationContext As SignedHttpRequestValidationContext, cancellationToken As CancellationToken) As Task(Of SignedHttpRequestValidationResult)
Parameters
- signedHttpRequestValidationContext
- SignedHttpRequestValidationContext
A structure that wraps parameters needed for SignedHttpRequest validation.
- cancellationToken
- CancellationToken
Propagates notification that operations should be canceled.
Returns
A SignedHttpRequestValidationResult.
IsValid will be true
if the signed http request was successfully validated, false
otherwise.