SapuSeven / BetterUntis

An alternative mobile client for the Untis timetable system.
GNU General Public License v3.0
240 stars 34 forks source link

[Feature Request] Add 2FA #239

Open KaktusXY opened 2 years ago

KaktusXY commented 2 years ago

Add 2FA support

Screenshot_20220103-183045_BetterUntis.png

fischerling commented 1 year ago

I was able to use BetterUnits with an account using 2FA by providing the units mobile key instead of my account password.

SapuSeven commented 1 year ago

For now, using the app key / QR code from the Untis profile page is the only way to circumvent 2FA. Do you know if the original Unis Mobile app supports 2FA directly?

Cameo007 commented 1 year ago

Yes. It asks for a TOTP code if needed.

noboevbo commented 1 year ago

As @fischerling suggested, I was able to login to a 2FA secured account using the key shown in the profile page under "Access via Untis Mobile" (Zugriff über Untis Mobile), but I had to tick the "Skip app secret resolution", under advanced settings.

SapuSeven commented 1 year ago

For now, using the app code is the only way to login with 2FA enabled. Unfortunately, as long as I don't have access to a 2FA-enabled account or a http trace of the login process, I can't work on this feature.