simoneorlando97 / webeep-cli

A tool to use the webeep platform of the Politecnico di Milano directly from the command line.
GNU General Public License v2.0
9 stars 1 forks source link

Add automatic TOTP generation using TOTP Secret and Google Authenticator crate. #5

Closed flakyferr closed 2 years ago

flakyferr commented 2 years ago

This branch adds automatic generation of the required TOTP code by storing the Secret Key exported from an authenticator and using it to generate the required code. While this defeats the purpose of Two Factor Authentication, it is much more comfortable to use. The possibility to use an OTP generated elsewhere is also given. Also, this branch postpones the storing of credentials only after the login has taken place, so that only verified information is saved.