Skip to content

vprus/next-gen-auth-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Demo of authentication using 2FA / passkeys

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published