Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.28 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.28 KB

Webautn Demo

This repository contains a demo of using Webauthn for authentication, which allows you to use:

  • Hardware keys, such as YubiKey
  • Passkeys, which are cryptographic keys stored in your phone and synchronized to cloud

This demo comes along with my blog post.

Screenshot of the demo

Demo modes

  • In the client-side mode, we just do everything in browser, to get a feel of browser API
  • In the server mode, we use server authentication, but the credentials are created by the browser and remain local to the brower
  • In the server cross-platform mode, we try to use true cross-platform authenticators.

Decoding and verification

For illustration purposes, I wrote a few functions that decode the protocol messages into more readable form, and show some cryptographic verification. They are purely for illustration, please don't use them in any production code.

References