Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.
/ totp-example Public archive

Example of TOTP 2FA using Phoenix Framework

Notifications You must be signed in to change notification settings

rosswilson/totp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TOTP Example

An Elixir Phoenix Framework application demonstrating TOTP two factor authentication.

Features

  • Generates a random secret code, stored in the database alongside a user
  • Builds a Google Authenticator compatible enrolment URL and displays a QR code.
  • Outputs the expected TOTP code, refreshing every 30 seconds.

Getting Started

  • Install dependencies with mix deps.get
  • Create and migrate your database with mix ecto.setup
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Learn More

About

Example of TOTP 2FA using Phoenix Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published