dkosmari / gnome-shell-extension-totp

A GNOME Shell extension to generate Time-based One-Time Passwords (TOTP aka Time-based OTP) for websites that use 2FA.
GNU General Public License v3.0
9 stars 2 forks source link

Google Authenticator QR-codes import #3

Open F-Depi opened 4 months ago

F-Depi commented 4 months ago

The import option does not work with the QR codes generated from Google Authenticator app, nor with the link obtainable from zbarcam --raw --quiet --oneshotot.

Is there a way to import the accounts from Google Authenticator that I'm missing? As far as I know Google Authenticator app only gives a link of the type otpauth-migration://offline?data=<SOMECODE> and there are no other options.

dkosmari commented 4 months ago

This extension was coded to parse otpauth:// URIs, not otpauth-migration:// URIs. The former was well documented, the new one is undocumented and proprietary, I didn't even know it existed. Up until a few months ago, my Google Authenticator produced plain otpauth:// URIs.

I'll see if I can add support for it.

In the meantime you could try using a tool to convert it to the otpauth:// scheme, but be careful to not use any "online converter", as there's a high chance it will try to steal your OTP secrets.

F-Depi commented 4 months ago

Thank you.

As a temporary way to obtain the secrets from the otpauth-migration:// URIs I found this that works quite well. NOTE that npm install should be run too, at step 2 in the usage section (after making the executable and before running it).