Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 825 Bytes

File metadata and controls

38 lines (24 loc) · 825 Bytes

Devise WebAuthn Demo App

A Rails application demonstrating how to use devise-webauthn gem to integrate WebAuthn passwordless authentication and 2FA into a Devise-based authentication system.

Want to try it?

Option 1 — Visit the hosted version

Option 2 – Run it locally

Prerequisites

  • Ruby 3.4.7

Setup

$ git clone https://github.com/cedarcode/devise-webauthn-demo-app
$ cd devise-webauthn-demo-app/
$ bundle install
$ bundle exec rails db:setup

Running

$ bundle exec rails s

Now you can visit http://localhost:3000 to play with the demo site.

Usage

  1. Sign up at /users/sign_up
  2. Register a passkey or security key from the dashboard
  3. Try passwordless login or 2FA on your next sign-in