Share via


SignInManager<TUser>.PerformPasskeyAttestationAsync(String) Method

Definition

Performs passkey attestation for the given credentialJson.

public virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult> PerformPasskeyAttestationAsync(string credentialJson);
abstract member PerformPasskeyAttestationAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult>
override this.PerformPasskeyAttestationAsync : string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Identity.PasskeyAttestationResult>
Public Overridable Function PerformPasskeyAttestationAsync (credentialJson As String) As Task(Of PasskeyAttestationResult)

Parameters

credentialJson
String

The credentials obtained by JSON-serializing the result of the navigator.credentials.create() JavaScript function.

Returns

A task object representing the asynchronous operation containing the PasskeyAttestationResult.

Remarks

The credentialJson should be obtained by JSON-serializing the result of the navigator.credentials.create() JavaScript API. The argument to navigator.credentials.create() should be obtained by calling MakePasskeyCreationOptionsAsync(PasskeyUserEntity).

Applies to