DefaultPasskeyHandler<TUser>.VerifyAttestationStatementAsync 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.
Verifies the attestation statement of a passkey.
protected virtual System.Threading.Tasks.Task<bool> VerifyAttestationStatementAsync(ReadOnlyMemory<byte> attestationObject, ReadOnlyMemory<byte> clientDataHash, Microsoft.AspNetCore.Http.HttpContext httpContext);
abstract member VerifyAttestationStatementAsync : ReadOnlyMemory<byte> * ReadOnlyMemory<byte> * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<bool>
override this.VerifyAttestationStatementAsync : ReadOnlyMemory<byte> * ReadOnlyMemory<byte> * Microsoft.AspNetCore.Http.HttpContext -> System.Threading.Tasks.Task<bool>
Protected Overridable Function VerifyAttestationStatementAsync (attestationObject As ReadOnlyMemory(Of Byte), clientDataHash As ReadOnlyMemory(Of Byte), httpContext As HttpContext) As Task(Of Boolean)
Parameters
- attestationObject
- ReadOnlyMemory<Byte>
The attestation object to verify. See https://www.w3.org/TR/webauthn-3/#attestation-object.
- clientDataHash
- ReadOnlyMemory<Byte>
The hash of the client data used during registration.
- httpContext
- HttpContext
The HTTP context for the request.
Returns
A task that represents the asynchronous operation. The task result contains true if the verification is successful; otherwise, false.
Remarks
See https://www.w3.org/TR/webauthn-3/#verification-procedure.