next-gen-auth-demo

command module
v0.0.0-...-8e8c43f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL