Work

WebAuthn Demo

Ruby on Rails
SQLite
JavaScript
WebAuthn

Login with multi-factor authentication using WebAuthn

View project Multi-factor login options for a user

Overview

Demo app prepared a talk I gave at the WNB.rb meetup of March 2024.

This Ruby on Rails app demonstrates login with multi-factor authentication using WebAuthn.

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

Features

  • Secure user accounts using WebAuthn authenticators such as security keys, iCloud keychain, fingerprint, etc.
  • Lightweight custom authentication built using Rails 7.1
  • Stimulus controllers for JavaScript
  • Model and system tests using RSpec and Capybara
  • Mobile and desktop styling using Sass and BEM methodology