Bubka / 2FAuth

A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
https://docs.2fauth.app/
GNU Affero General Public License v3.0
2.3k stars 152 forks source link

Ease QR capture on desktop (Screenshot QR codes) #410

Open lurendrejer opened 4 weeks ago

lurendrejer commented 4 weeks ago

Probably a nightmare.

Most meeting-type websolutions have some sort of screensharing, I guess this could be used to take a screenshot and import QR-codes that way.

The camera functionality is great for mobile devices - on the desktop a screenshot-type import would be nice.

Bubka commented 4 weeks ago

Hi, the Upload a QR code button lets you upload any image that contains a QR code, like a screenshot. Isn't that what you're asking for?

Image analysis can take a lot of memory, so you might have to increase the php memory_limit setting to prevent the Allowed memory size of 134217728 bytes exhausted (tried to allocate 67108872 bytes) error.

lurendrejer commented 4 weeks ago

More or less, i guess the inspiration comes from the authenticator-chrome-extension. There you can select part of the screen and import the QR-code. Which is more convinent than screenshot -> save -> upload. Having saved screenshots might be a security concern also, but thats the users problem.

It is purely a convinience thing and might be a complete nightmare to implement. Some sort of virtual camara-driver that takes a screenshot could be a workaround for my personal usecase.

Bubka commented 4 weeks ago

Ok I got it. Indeed this will be hard to implement, if not impossible. This implies to "escape' from the 2FAuth tab in the browser to display another one. I don't think this is technically possible/allowed by the browser without an extension (or an OS client app).

Maybe you could ask to @josh-gaby if he can do something with 2fauth-browser-extension

lurendrejer commented 2 weeks ago

Would i paste-box make sense? You can copy the QR-image to clipboard in most occations, having the ability to paste it into 2fauth would make the download/upload dance i little more user friendly.

Bubka commented 2 weeks ago

This one is probably achievable, I keep the idea 👍🏻 (although I still think this is a job for a browser extension)