Skip to content
Combining Rails, Device and the Nexmo Verify API to implement two factor authentication
Ruby HTML Other
Branch: basic-login
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
docs
lib
log
public
test
vendor/assets
.gitignore
Gemfile
Gemfile.lock
LICENSE.txt
README.md
Rakefile
config.ru

README.md

Nexmo Rails 2FA Demo

A demo that implements 2-factor-authentication in Rails using Device and the Nexmo Verify API.

Tutorial: Two Factor Authentication (2FA) in Ruby on Rails with Devise and Nexmo Verify

Kittens and Co 2FA Flow

Basic Login - basic-login branch

The basic-login branch is the starting point of the tutorial and is just a simple Rails 4 app Device and Bootstrap to provide a simple app with a login.

Usage

  • Clone this repository
  • Run git checkout basic-login
  • Run bundle install
  • Run rails server
  • Visit http://localhost:3000/
  • Register and login

Two Factor Authentication - two-factor branch

The two-factor branch is the end point of out tutorial, adding a before_filter two our basic login and verifying a user's identity using their phone number.

The differences between these two branches can be seen here and in our in-dept tutorial.

Usage

License

This sample is released under the MIT License

You can’t perform that action at this time.