I think the rationale for this is the SSH login, where you only have username/password to enter and cannot have an additional step. However, one might as well have three WebUI input fields and concatenate the OTP to the password to pass it to the lower levels...
Public key authentication used and password authentication disabled in our entire DC.
Hi all,I am in the process of activating 2FA (TOTP) for all services that offer it. E.g. Github, our self hosted Gitlab, Hetzner, Paypal, ... you name it.For all of these services the login procedure is the same:1. Prompt for username and password. Sometimes first only username, <ENTER>, then password <ENTER>.2. Then I am asked for the 6 digit one time token.This works great because I have been using password safe software for years and the username and password get filled in automatically. Then I have one more step to enter the OTP. Perfect.With OPNsense it seems there is only one prompt for username and password and you are supposed to append (or prepend depending on configuration) your OTP to the static password.How is this expected to work? The password is filled in by the password manager. Visible as a bunch of dots or stars. If I append the OTP in that same field my browser asks me if I want to update the saved password for that service every single time.WTF? What is the idea behind this completely insane user interface? Unless I get one prompt for fixed username and password and then a second one for the OTP, 2FA on OPNsense is unusable. Every other service I have ever used with TOTP does this.Kind regards,Patrick
Actually, there is a rationale for asking both the password and the OTP at the same time: For example, with PSD2, there is a rule that when either one security factor fails, one must not disclose which one that was. Otherwise, you could still guess passwords.This is independent of the way the interface is asking for both security factors, you could well have two separate input fields. However, asking for the OTP only after the password is correct is a giveaway, IMHO.
and what do you think your chances are guessing the constantly ever changing 6 digit number with the correct password?
So at least Github proceeds to the OTP entry only after a correct password was entered for the user in question and reports an "incorrect user name or password" otherwise. That's not ultra critical, but not optimal, either.I guess this is due to the fact that 2FA is optional for that site.