Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.11 KB

README.md

File metadata and controls

51 lines (36 loc) · 1.11 KB

TOTP-server

This project implements a basic Time Based Authentication system implemented in Rust which can be deployed on aws-lambda or can be operated on native system as well

to start the server ~$ cargo run

to test the code ~$ cargo test


For sending a fresh request

~$ curl -X GET http://localhost:3000/register -v

response produced contains a QR code which you can scan in your 2FA app to verify

   

             




  1. open the 2FA app (google authenticator)
  2. scan the QR generated in the response
  3. Accept the account generated
  4. now you can enter the code in 30 second interval