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
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