WebAuthn

Wisej.NET's WebAuthn extension is an integration for the Web Authentication APIarrow-up-right available in most browsers.

WebAuthn Source Code

Features

  • WebAuthn API wrapper with async client calls for credential creation and assertion retrieval

  • Server-side signature validation for ES256 and RS256, plus signature parsing utilities

  • Data models for authenticator/client data and responses

  • WebAuthn request/selection structures (relying party, user entity, credential parameters and descriptors, authenticator selection criteria).

  • Spec enums and flags for attestation, attachments, transports, resident key requirements, and COSE algorithms.

Code Example

This code sample sets up all the parameters to call the WebAuthn.CreateAsync function. The WebAuthn.CreateAsync function asks the browser’s WebAuthn API to create a new credential using a local authenticator (e.g., Windows Hello, Touch ID, etc.), honoring the authenticator selection settings and timeout. It then returns a response object that includes the new credential’s public key, authenticator data, and client data.

How to use

The WebAuthn extension can be added to a Wisej.NET project using NuGetPackage Manager.

Last updated

Was this helpful?