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.
- Ruby 3.3.0
- SQLite
- Chromedriver (for system tests)
- Google Chrome (for system tests)
- Download the repository:
git clone https://github.com/jp524/webauthn-demo.git
- Enter the directory:
cd webauthn-demo
- Install gems:
bundle install
- Prepare database:
rails db:create
andrails db:migrate
- Start the server:
bin/dev
The application can be viewed at http://localhost:3000.
Run the test suite with bundle exec rspec
.