Rayquaza01 / authenticator

Firefox addon that generates TOTPs for 2 factor authentication
https://addons.mozilla.org/en-US/firefox/addon/two-factor-authenticator/
MIT License
34 stars 7 forks source link

Smart mode #28

Open vlc33 opened 5 years ago

vlc33 commented 5 years ago

Hello, what about enabling a 'smart mode', that is adding a domain for each code in configuration, then just process when onmouseover the key icon and if we are in a known domain, let the key icon be gold color and auto copy code to clipboard. In this mode when you are in login page then just move the mouse over the key it becomes gold then go back and paste the code. To be smarter if remaining time is less than 8sec then just blink in other color until new code is ready then gold and autocopy.

Thank You and congratulations again for this great job!

Update: In fact that was my first idea, then thinking just a bit more, I found is more easy to just filter the results of the sites to those who match the domain (if none then list all), with that the interface is the same 1.-display the list 1.-pick the code 3.-paste. Brief: Add domain to code list and by default filter the results for the domain (if it matches), else list all

... and put you Bitcoin address so we can tip you! because I just tryed with PayPal donation, now giving 1$ cost me another 1$ in Paypal I do not know why, perhaps is currency conversion or new PayPal tarifs so it is not suitable for small tips (non US).

Rayquaza01 commented 5 years ago

That shouldn't be too hard to do, it would just require the tabs permission to get the URL of the currently open site.

Sorry about donating, I put up my paypal because that's what's most convenient for me, but my Bitcoin address is 3Ca6o8VFQGhAY2RV3yQjvHHhHGyECendtd.

Rayquaza01 commented 5 years ago

Video demo: https://youtu.be/8RTMxRJOboQ

vlc33 commented 5 years ago

Hello, The video shows almost the solution, the question is, what is smart mode for, the idea is to help and accelerate the process so this first solution only helps showing the right pick but does not accelerate.

Is there a way to pick the correct answer in one step? , say the original idea.

When the domain is known, and there is only one code for it, then just ( 'on mouse over' become gold) passing the mouse over the key icon the key becomes gold color (internally we get auto copy) then we come back to the 2FA field and press Ctrl-C.

With this way we spare one click (show key list) and one select-copy .

To be smarter if remaining time is less than 8sec then just blink in other color until new code is ready then gold and autocopy.

Brief: aprove video solution and 'smart mode' is now downgraded to 'default mode' and think about a new 'smart mode' say 'gold key mode'

I also understand that if there are more than one key per domain the list shows various marked fields.

Cool.

mrx23dot commented 3 weeks ago

What about only showing relevant TOTPs when a domain name is added as name, and url matches name? If no matches found then list all.

Less work for user to select the correct TOTP.