Rookiestyle / KeePassOTP

Add OTP support (two factor authentication) to KeePass
GNU General Public License v3.0
405 stars 29 forks source link

Import From Google Authenticator #90

Closed Minzilein2003 closed 2 years ago

Minzilein2003 commented 2 years ago

Overview

Steps to Reproduce

  1. Export QR-Code from Google Authenticator
  2. Scan QR-Code
  3. Insert uri in Text-Field

Expected Behavior

Load OTP Codes

Actual Behavior

Following Error: Expected amount of OTP entries: 1 Found amount of OTP entries: 4

Context

OS: Windows KeePass Version: 2.50 (64-Bit) Plugin Version: 1.2

2022-02-04 15_53_26-Database kdbx_ - KeePass

Rookiestyle commented 2 years ago

What happens if you try this uri? otpauth-migration://offline?data=CkMKFD3GyqSCSm0oh2eyMx4gtDFmy4XZEhxBQ01FIENvOmpvaG4uZG9lQGV4YW1wbGUuY29tGgdBQ01FIENvIAEoATACCjUKCkhlbGxvId6tvu8SGEV4YW1wbGU6YWxpY2VAZ29vZ2xlLmNvbRoHRXhhbXBsZSABKAEwAhABGAEgACjn4Pv4Ag%3D%3D

https://github.com/Rookiestyle/KeePassOTP/wiki/Import-from-Google-Authenticator#3---add-data-to-keepassotp

I can release a version that produces more verbose output and need your support to narrrow the issue down. Only other option would be to send me your uri string which obviously is not an option... unluss you can create fake accounts in your Google Authenticator and reproduce the issue?

Minzilein2003 commented 2 years ago

The Uri of you he recognizes and he gives me a selection of codes. I am happy to help fix the problem. I don't like to give out my codes.

Rookiestyle commented 2 years ago

I'm not interested in your codes but I was wondering whether you can add a few fake accounts to your Google Authenticator, export those and reproduce the issue by doing so. If so, please post this uri. In the meantime let me figure out how to get the uri when exporting on my andoid. Taking a screenshot is not possible and I don't have a 2nd smartphone available right now

With your uri, the selection form is not even displayed, right?

Minzilein2003 commented 2 years ago

I can create a test QR code for you with uri. That is correct. The selection is not displayed to me.

Rookiestyle commented 2 years ago

That'll be helpful

Minzilein2003 commented 2 years ago

I have now got the codes migrated. The problem was that it did not recognize some codes. For example, it gave me an error with the Twitch code. (Code invalid) When I did all individually, I was able to filter out the error.

Rookiestyle commented 2 years ago

I'm able to reproduce this and will release a fixed version soon.