Auto-login helper for TUWEL and TISS via TU Wien IdP (Tampermonkey userscript).
- Chrome/Edge/Firefox/Safari
- Tampermonkey extension
- Open Tampermonkey dashboard → Utilities → Import.
- Choose
TuAutoLogin.user.jsfrom this folder and install.
- Tampermonkey icon → TuAutoLogin → "Set TU credentials": enter username and password.
- Tampermonkey icon → TuAutoLogin → "Set TOTP secret": enter your base32 TOTP secret (see below).
- If credentials are empty, the script prompts the first time you hit the IdP login page and saves them.
- TUWEL (
/login/index.php): clicks "TU Wien Login". - TISS: clicks "Login".
- TU Wien IdP (
/core/loginuserpass): fillsusername,password, andtotp, then submits. - Password quality warning (
/tupwquality/badquality): clicks Continue automatically.
TU Wien requires MFA for TUaccount since April 2026. The script supports automatic TOTP code generation.
Setup:
- Go to the TU Wien 2FA setup page and set up a new authenticator.
- When shown the QR code, also note the base32 key displayed below it (e.g.
7AG6F2...). - Scan the QR code in Google Authenticator, Authy, or any other app as your backup.
- In the Tampermonkey menu → "Set TOTP secret" → paste the same base32 key.
- Use "Test TOTP (show current code)" to verify it matches your authenticator app.
Behavior without a stored TOTP secret: The script fills username and password, then focuses the TOTP field — you enter the code from your authenticator app manually.
Two Security Modes: chosen on first use, switchable anytime via the Tampermonkey menu.
Convenient Mode: stores credentials encrypted in the browser — fully automatic login. Secure Mode: nothing stored — manual entry every time, maximum security.
Security Limitations:
- Convenient mode uses AES-GCM 256-bit encryption, but the key is derived from a fixed passphrase embedded in the script. A determined attacker with local browser access could still extract credentials.
- Storing the TOTP secret reduces MFA to a second stored secret. It prevents remote attackers but not someone with direct access to your browser profile.
- For maximum security, use Secure Mode and enter your TOTP manually.
GM_getValue,GM_setValue: store credentials and TOTP secret.GM_registerMenuCommand: menu for managing credentials and TOTP.
Remove the userscript from the Tampermonkey dashboard.