WebAuthn

Wisej.Ext.WebAuthn.WebAuthn

Namespace: Wisej.Ext.WebAuthn

Assembly: Wisej.Ext.WebAuthn (3.2.0.0)

Provides methods for creating and retrieving credentials from the client following the Web Authorization API standards.

public class WebAuthn

Methods

Creates new credentials for the client.

ParameterTypeDescription

challenge

Random string for validating the request.

rp

Relaying Party (rp), the organization responsible for registering and authenticating the user.

user

Information about the user currently registering.

publicKeyCredentialParameters

Array describing what public key types are acceptable to the server.

authenticatorSelection

"platform" (Windows Hello) vs "cross-platform" (Yubikey) required.

timeout

The time in milliseconds that the user has to respond to a prompt for registration.

attestation

allows servers to indicate how important the attestation data is to this registration event.

Returns: Task<CredentialsResponse>. The client's credentials.

Gets the requested credentials from the client.

ParameterTypeDescription

challenge

Random string for validating the request.

allowCredentials

Which credential the server would like the user to authenticate with.

timeout

The time in milliseconds that the user has to respond to a prompt for registration.

Returns: Task<CredentialsResponse>.

Checks whether the client device has a user-verifying platform authenticator available for use.

Returns: Task<Boolean>. True if the device has a user-verifying platform authenticator.

Validates the given attestation against the provided public key.

ParameterTypeDescription

publicKey

The public key generated during registration.

authenticatorDataBase64

"platform" (Windows Hello) vs "cross-platform" (Yubikey) required.

clientDataBase64

Client data base64 encoded.

signature

Authentication signature.

Returns: Boolean. The success of the validation.

Throws:

Last updated