You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently pass-otp requires using an otpauth:// URI which is fantastic for flexibility however in practice this isn't the OTP format that is generally shared by websites. This makes entering secrets unnecessarily difficult. As entering new OTP secrets is something I do rarely I can never remember the full format of the URI. otpauth://totp/totp-secret?secret= is by far the most common format required and it is a lot to remember. otpauth:// is shown in the prompt so that is "free" but totp/totp-secret?secret is not much off from line-noise. I can remember that totp should be in there somewhere but the exact format is too much for my brain. I end up dumping another secret that I know I already have, constructing the URL (and copying it as I need to insert it twice) then inserting it.
I think it would be a great benefit to users if the tool could provide some assistance. Here is a first idea:
If entering a secret interactively.
After the secret is entered twice identically.
If the secret is not a valid otpauth:// URI.
If the secret is a valid TOTP token.
Prompt the user if this is a TOTP token.
If they indicate that it is, generate the full URL (otpauth://totp/totp-secret?secret=$user_input) and insert that.
I think the risk here is very low because most sites will require the user to insert a test code before enabling 2fa anyways and the UX improvement is dramatic.
The text was updated successfully, but these errors were encountered:
Given that the pass otp insert command right now seems to just mirror the functionality of pass insert, I think it would make sense to just change it to automatically prepend the string.
People who don't want it automatically prepended can just use pass insert
Currently pass-otp requires using an
otpauth://
URI which is fantastic for flexibility however in practice this isn't the OTP format that is generally shared by websites. This makes entering secrets unnecessarily difficult. As entering new OTP secrets is something I do rarely I can never remember the full format of the URI.otpauth://totp/totp-secret?secret=
is by far the most common format required and it is a lot to remember.otpauth://
is shown in the prompt so that is "free" buttotp/totp-secret?secret
is not much off from line-noise. I can remember thattotp
should be in there somewhere but the exact format is too much for my brain. I end up dumping another secret that I know I already have, constructing the URL (and copying it as I need to insert it twice) then inserting it.I think it would be a great benefit to users if the tool could provide some assistance. Here is a first idea:
otpauth://
URI.otpauth://totp/totp-secret?secret=$user_input
) and insert that.I think the risk here is very low because most sites will require the user to insert a test code before enabling 2fa anyways and the UX improvement is dramatic.
The text was updated successfully, but these errors were encountered: