/devise-passkeys-template

A template repo that showcases using Devise Passkeys

Primary LanguageRuby

README

Prerequisites

Please use your platform's specific instructions for the below as needed.

Requirements

  • Ruby via the .ruby-version
  • The gems in the associated Gemfile
  • puma-dev to simplify HTTPS connections (WebAuthn requires a Secure context)

Setup

To have puma-dev proxy the requests to the foreground server (bundle exec rails server), you will need to specify the port to map to the test domain (see: https://github.com/puma/puma-dev#proxy-support):

echo '3210' > ~/.puma-dev/devise-passkeys

Running the server

./bin/dev_server

(which is a simple wrapper around):

bundle exec rails s --port 3210

The app is now running at https://devise-passkeys.test

Pulled from Getting your Rails dev environment ready for passkeys