Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesridgway/devise-otp-second-step
An example of how to implemented OTP two-factor authentication as a second login step in Rails and Devise
https://github.com/jamesridgway/devise-otp-second-step
Last synced: 13 days ago
JSON representation
An example of how to implemented OTP two-factor authentication as a second login step in Rails and Devise
- Host: GitHub
- URL: https://github.com/jamesridgway/devise-otp-second-step
- Owner: jamesridgway
- Created: 2020-05-23T19:56:01.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-01T10:09:39.000Z (over 1 year ago)
- Last Synced: 2024-08-04T06:04:02.162Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 680 KB
- Stars: 32
- Watchers: 4
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
Awesome Lists containing this project
README
# Devise OTP 2FA as Second Login Step Example
![Tests](https://github.com/jamesridgway/devise-otp-second-step/workflows/Tests/badge.svg?branch=master)This is an example project that demonstrates how to implement OTP two-factor authentication in devise so that the user
is asked for their OTP code as a second login step.![OTP as second-step](./devise-otp-second-step.png)
A step by step guide is available here: [Implementing OTP two-factor authentication as a second login step with Rails and Devise](https://www.jamesridgway.co.uk/implementing-a-two-step-otp-u2f-login-workflow-with-rails-and-devise/)
## Using this example
You can run this example by following the steps below.
1. Run yarn
yarn install
2. Run bundler
bundle install
3. Setup the database
rails db:reset
rails db:migrate db:seed4. Visit [http://localhost:3000/])(http://localhost:3000/). Default credentials are:
Username: [email protected]
Password: letmein