ewalk153 / webauthn-rails-demo-app

Rails app demonstrating a WebAuthn password-less login

Home Page:https://webauthn.cedarcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebAuthn Rails Demo App

Application demonstrating a WebAuthn password-less login built with Ruby on Rails + webauthn ruby gem.


Want to try it?

Option 1 — Visit the hosted version

Option 2 — Run it locally


  • Ruby
  • yarn (or npm)
  • PostgreSQL


$ git clone https://github.com/cedarcode/webauthn-rails-demo-app
$ cd webauthn-rails-demo-app/
$ cp .env.example .env
$ bundle install
$ yarn install (or npm install)
$ bundle exec rake db:setup


$ bundle exec rails s

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


Gem Update Policy

Gemfile Version Constraints

In Gemfile define gem dependencies using a version contrainst of ~> MAJOR.MINOR by default (or ~> 0.MINOR.PATCH if latest MAJOR is 0), unless you have reasons to use something different. An example of an exception could be rails, which is known to make backwards-incompatible changes in minor level updates, so in that case we use ~> MAJOR.MINOR.PATCH.


$ gem install bundler-audit
$ bundle audit --update
$ bundle update --conservative --group test development
$ bundle update --strict --patch
$ bundle update --strict --minor
$ bundle update --major
$ bundle outdated --groups

More in:

Updating gems cheat sheet


Rails app demonstrating a WebAuthn password-less login


License:Apache License 2.0


Language:Ruby 59.0%Language:HTML 28.0%Language:JavaScript 10.2%Language:SCSS 2.5%Language:Shell 0.2%Language:Procfile 0.1%