Skip to content

nexmo-community/nexmo-rails-devise-2fa-demo

basic-login
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
bin
 
 
 
 
db
 
 
 
 
lib
 
 
log
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Combining Rails, Device and the Nexmo Verify API to implement two factor authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages