Skip to content
/ example Public
forked from go-webauthn/example

Example usage of github.com/go-webauthn/webauthn

Notifications You must be signed in to change notification settings

lil5/example

 
 

Repository files navigation

Example

This is an example go + React application which shows off the functionality of the github.com/go-webauthn/webauthn library.

Features

This project implements the following features:

  • Shows off the fact this library can work with practically any http lib (like github.com/valyala/fasthttp) thanks to the hard work by the contributors to github.com/duo-labs/webauthn
  • U2F Registration
  • Attestation:
    • Standard
    • Resident Key / Discoverable
  • Assertion:
    • Standard
    • AppID (U2F Registered Keys)
    • Discoverable (Passwordless)
  • Simulates Username/Password login via a username only login.
  • Shows details about browser support.
  • Shows debug messages relevant to what occurred; for example if the user chooses cancel.
  • Full TypeScript implementation of the Webauthn portions.

Requirements

The following requirements are needed to build the project:

  • npm
  • go (1.17)

Steps

The following steps allow you to run the project:

  • Copy config.example.yml to config.yml.
  • Edit config.yml with your desired settings.
  • Run go generate to generate the react frontend.
  • Run go build ./cmd/server.
  • Run the ./build binary.
  • Configure a HTTPS proxy to answer requests on your desired domain.
  • Visit the domain.

About

Example usage of github.com/go-webauthn/webauthn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 51.9%
  • TypeScript 45.3%
  • HTML 1.8%
  • Other 1.0%