Skip to content

Repository files navigation

DEMO APP

Using Clearance gem for authentication and Passkeys

  • Generated rails app, the classic way (rails new passkey_demo_clearance --database=sqlite3)
  • cd into it
  • bundle
  • add gem "clearance" to the Gemfile, that points at my local branch with the passkeys work (gem "clearance", path: "/Users/valeria/Documents/internal_projects/clearance")
  • rails generate clearance:install follow instructions
  • touch config/initializers/webauthn.rb
WebAuthn.configure do |config|
  config.allowed_origins = [ "http://localhost:3000" ]
  config.rp_name = "Brucey App"
end
  • rails db:migrate
  • rails generate clearance:passkeys follow instructions
  • rails db:migrate
  • ./bin/importmap pin @github/webauthn-json
  • touch app/javascript/passkeys.js (copy file content)
  • import into application.js
  • rails s

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages