Skip to content

mvndaai/webauthn_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webauthn Demo

Example of WebAuthn for a presentation.

Server setup

Downloading from Git

git clone https://github.com/mvndaai/webauthn_demo.git
pushd webauthn_demo

Run from Dockerfile

docker build -t webauthndemo . && docker run -p 127.0.0.1:8080:8080 -it webauthndemo -port :8080 -origin https://example.com

Note: port and origin should match your configuration

Run using local Golang

go get -v ./...
go run . -port :8080 -origin https://example.com

Note: port and origin should match your configuration

Share & Test

And you can use Telebit to make it avaliable outside localhost:

telebit http 8080 webauthn

> Forwarding https://webauthn.YOURDOMAIN.telebit.io -> localhost:8080

Enabling WebAuthn in Chrome

Chrome has flags that my need to be enabled. Paste this into the omnibar:

chrome://flags/#enable-web-authentication-api

MacOS Touch ID: chrome://flags/#enable-web-authentication-touch-id

Spec Variables

https://w3c.github.io/webauthn/#idl-index

Other Demos

About

Example of WebAuthN for a presentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published