Skip to content

Rails demo for login with multi-factor authentication using WebAuthn

Notifications You must be signed in to change notification settings

jp524/webauthn-demo

Repository files navigation

WebAuthn Demo

Ruby on Rails application demonstrating login with multi-factor authentication using WebAuthn.

The app relies on the webauthn gem and the @github/webauthn-json package.

WNB.rb Meetup Talk

View slides here.

AustinRB Meetup Talk

View slides here.

Local Installation

Requirements

  • Ruby 3.3.0
  • SQLite
  • Chromedriver (for system tests)
  • Google Chrome (for system tests)

Setup

  1. Download the repository: git clone https://github.com/jp524/webauthn-demo.git
  2. Enter the directory: cd webauthn-demo
  3. Install gems: bundle install
  4. Prepare database: rails db:create and rails db:migrate
  5. Start the server: bin/dev

The application can be viewed at http://localhost:3000.

Testing

Run the test suite with bundle exec rspec.

About

Rails demo for login with multi-factor authentication using WebAuthn

Resources

Stars

Watchers

Forks