WebAuthn Rails demo application
This demo is part of a blog post that describes how to migrate an application from Rails to WebAuthn.
While you'd be best served reading the blog post, the tl;dr is:
- Try out the app when it only supports U2F (see the tag
- Switch U2F signing to WebAuthn (see the tag
- Migrate the database to support distinguishing U2F vs WebAuthn (see the tag
- Switch registration to WebAuthn only (see the tag
Running the demo application
These instructions are good for any commit in this repo.
Generate TLS certificates:
mkcert -install mkcert -cert-file config/tls/localhost.pem -key-file config/tls/localhost-key.pem localhost
rails sto start it!