Skip to content

johntopley/sinatra-two-factor-authentication

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sinatra Two Factor Authentication Example

This Sinatra application demonstrates a simple authentication scheme including two-factor authentication (2FA). See https://sideprojectsoftware.com/blog/2018/03/16/sinatra-two-factor-authentication for a full explanation.

Prerequisites

The application depends on the following RubyGems:

Running

To run the application in development use:

ruby app.rb

and access using http://localhost:4567

Alternatively, to run the web application using a Rackup file use:

rackup config.ru (the config.ru may be omitted as Rack looks for this file by default)

and access using http://localhost:9292

Credentials

The credentials for signing in to the app are:

  • Username: user
  • Password: secret123

About

This Sinatra application demonstrates a simple two factor authentication scheme.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published