Authenticator-Extension / authenticator.cc

https://authenticator.cc
MIT License
44 stars 154 forks source link

[Firefox] Plugin Disappears when Browser Loses Focus #43

Open stellarpower opened 1 month ago

stellarpower commented 1 month ago

Hi,

I was trying to add an authentication method - I click on the plugin in Firefox, the pencil icon, and then go to add a new account. I'm on desktop, so I need to enter the key textually, not from a QR code. I've only just installed the plugin, so the settings are all left at defaults.

The site for which I was trying to add the method has given me both of these, so I can click the icon to copy, and paste into the model dialogue in authenticator.cc. Except when I go back to copy, the plugin dialogue disappears, so I can't enter more than one field at once.

Even if I copy to a text editor (so a different application), as soon as I move my mouse away form the Firefox window, the modal dialogue closes, so I have to go round again. Coupled with the fact that the page that generated the keys also timed out it made the process quite frustrating (and 2FA is frustrating enough as it is!)

I don't know how feasible a solution/workaround there is, but personally I'd prefer to do things like adding accounts in a settings page for the plugin; I also know some plugins are able to bring up their own window like a separate browser page, and I think this might be a useful option. Or if there is an applicable setting available, it might be worth looking at having it on by default.

Thanks!

Sneezry commented 1 month ago

image

Is this what you are looking for? It locates at settings - preferences page.

Also, when you double click the title bar (shown as below) in popup dialogue, it should open in a separate window:

image

stellarpower commented 1 month ago

I think so - except now, I have no buttons like the settings cog or the edit pencil to add a new authentication mechanism. image

mymindstorm commented 1 month ago

You should be able to copy the secret, open the add account dialog, and paste. None of the text fields outside of the account secret matter outside of giving you something to remember which code belongs to what account, so you could leave them blank and change them later.

Nonetheless, if you open a new tab and go to moz-extension://2bc3fa18-2c7a-4747-8760-cef35de58832/view/popup.html, you should be able to use the full extension in its own tab.

mymindstorm commented 1 month ago

Also, being on the desktop does not stop you from using a QR code, which would be a lot easier. Just click the scan icon on the extension's toolbar, and you can scan a QR code on the tab you currently have open.

image

stellarpower commented 1 month ago

So the QR code is for pasting in an image? The extension asked for extra permissions, and I assumed it was for e.g. a laptop with a webcam.

In order to add it I needed an account and a secret. Because the popup closes, I couldn't copy from the page (or even my text editor) and paste in - as as soon as it lost focus the popup closed. Even if I had the account in the clipboard, I paste that, go back to copy the secret and it closes in the same manner. I had to copy the two together and then backspace over one portion for both fields. If there's the capability for a popup then (thanks for the link, did not know I could do that in general with any extension), to me that makes more sense for when adding a new account as the default way to present.