A Blazor wrapper for the Web Authentication browser API.
The API specifies ways to create and validate strong public-key-based credentials. It gets these credentials from the native authenticators of the device. On Windows, that's Windows Hello; on iOS/macOS, that's Touch ID or Face ID; and on Android, that's face, fingerprint, or PIN authentication. This project implements a wrapper around the API for Blazor so that we can easily and safely work with native authentication methods from the browser.
The sample project can be demoed at https://kristofferstrube.github.io/Blazor.WebAuthentication/
On each page, you can find the corresponding code for the example in the top right corner.
This repository was built with inspiration and help from the following series of articles:
- Typed exceptions for JSInterop in Blazor
- Wrapping JavaScript libraries in Blazor WebAssembly/WASM
- Call anonymous C# functions from JS in Blazor WASM
- Using JS Object References in Blazor WASM to wrap JS libraries
- Blazor WASM 404 error and fix for GitHub Pages
- How to fix Blazor WASM base path problems