2fanginx
2fanginx copied to clipboard
2FA NGINX + Lua auth portal
Use https://github.com/kardianos/service
Using a javascript library for scrypt: http://cryptocoinjs.com/modules/crypto/scryptsy/
In `database.go`, could use something like https://github.com/go-fsnotify/fsnotify
Allows checks to be made. The username woudl be in cleartext, but included in the calculation of the hash.
Make a secure web client for generating the QR Code+base32 code for TOTP
Make the difference by using GET for queries/displaying the login data, and POST for sending the results.
The embedding may not be so convenient afterwards...