TREN-TOTP is a lightweight browser extension built to simplify two-factor authentication for the University of Trento portal. Once configured, it automatically generates and inserts TOTP (Time-based One-Time Password) codes whenever prompted by the university's authentication system.
This means you no longer need to manually open an authenticator app or copy and paste codes; the extension handles it for you.
This extension does not implement additional security measures to protect your TOTP secret. As visible in the source code, the secret is stored using your browser's local storage. While this is sufficient for the intended purpose of the project, it is not considered a best practice for secure storage of sensitive information. Use at your own discretion.
Since the extension is not available on any browser store, it must be installed manually as an unpacked extension:
- Open your browser’s Extensions page (e.g.,
chrome://extensions/for Chrome). - Enable Developer Mode.
- Click "Load unpacked" and select the
tren-totpfolder containing the extension files.
After installation:
- Click the extension icon in your browser toolbar to open the popup.
- On first use, click the Settings (gear) icon.
- Paste your base32 TOTP secret into the input field and save it.
You can return to this page anytime to update the secret.
- Your current TOTP code is displayed in the popup.
- Click the code to copy it to the clipboard.
- The code will blink five seconds before expiration, giving you a visual cue.
- A progress bar at the bottom indicates the remaining validity time.
- When accessing the University of Trento authentication portal (
https://idp.unitn.it/idp/profile/SAML2/Redirect/SSO*), the extension will automatically fill in the TOTP field during login.
If you use Google Authenticator and need to extract your TOTP secret:
- Open the app and tap the menu (☰).
- Select "Export accounts", and choose your
idp.unitn.itaccount. - Take a screenshot of the generated QR code.
- Upload the screenshot to the TOTP QR Code Secret Extractor to retrieve your secret key.
Made with ❤️ for the University of Trento community.