Skip to content
U2F to WebAuthn migration demonstration built in Rails
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
lib
log
public
test
tmp
vendor
.gitignore
.ruby-version
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
package.json

README.md

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:

  1. Try out the app when it only supports U2F (see the tag u2f-only)
  2. Switch U2F signing to WebAuthn (see the tag sign-with-webauthn)
  3. Migrate the database to support distinguishing U2F vs WebAuthn (see the tag db-migration)
  4. Switch registration to WebAuthn only (see the tag full-webauthn)

Running the demo application

These instructions are good for any commit in this repo.

  1. Generate TLS certificates:

    mkcert -install
    mkcert -cert-file config/tls/localhost.pem -key-file config/tls/localhost-key.pem localhost
    
  2. Run rake db:migrate

  3. Run rails s to start it!

You can’t perform that action at this time.