Skip to content

A basic NodeJS/ExpressJS app that uses 2FA with both Google TOTP and Fido U2F

License

Notifications You must be signed in to change notification settings

sbrichardson/2FA-Demo

 
 

Repository files navigation

2FA-Demo

An application to demo providing multiple Two Factor Authentication mechanisms.

The application supports both TOTP method supported by the Google Authenticator application and U2F authentication tokens.

Way more detail can be found on my blog post about this here

Running

The application requires a Mongodb database to act as a backend to store user credentials. The database URL can be either passed in with the environment variable MONGO_URL or picked up from VCAP_SERVICES, it defaults to mongodb://localhost/users

https is required, a selfsigned certificate for localhost is included, but these should be replaced for a proper deployment.

Clone the project, run

npm install

Then

node index.js

Point your browser https://localhost:3000

About

A basic NodeJS/ExpressJS app that uses 2FA with both Google TOTP and Fido U2F

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.5%
  • HTML 32.2%
  • CSS 0.3%