Skip to content

Register and login with passkeys using go-webauthn

Notifications You must be signed in to change notification settings

shangsuru/passkey-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Passkey Demo

An implementation of authentication with passkeys using the go-webauthn library

Passkey Demo

Local Development

Setup the app (installs dependencies and initializes database schema)

make install

Start the app (starts the Go server together with Redis and Postgres)

make run

HTTPS setup

This is to test password managers like bitwarden.

Create a custom HTTPS URL that will route traffic to your your local server. In this case http://localhost:9044

 ngrok http http://localhost:9044

Look for the Forwarding output.

Forwarding      https://51ed-47-150-126-75.ngrok-free.app -> http://localhost:9044

Fix up the .env file.

RP_DISPLAY_NAME=PasskeyDemo
RP_ID=51ed-47-150-126-75.ngrok-free.app
RP_ORIGIN=https://51ed-47-150-126-75.ngrok-free.app

About

Register and login with passkeys using go-webauthn

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published