Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import from GA via live scan: LABEL MUST NOT CONTAIN A COLON.= #375

Open
1 task done
s-scheurer opened this issue Aug 23, 2024 · 1 comment
Open
1 task done

Import from GA via live scan: LABEL MUST NOT CONTAIN A COLON.= #375

s-scheurer opened this issue Aug 23, 2024 · 1 comment

Comments

@s-scheurer
Copy link

Version

5.2.0

Details & Steps to reproduce

When importing Microsoft entries (always starting with Microsoft:) from Google Authenticator on Android via live scan function the entries show up with the error message "LABEL MUST NOT CONTAIN A COLON.=" and can not be imported.

Expectation

A colon in the label not breaking the import.

Error & Logs

No response

Execution environment

No response

Containerization

  • Docker

Additional information

No response

@Bubka
Copy link
Owner

Bubka commented Aug 26, 2024

Hi,
The QR code contains a string formatted according to the otpauth uri format.
One of the format rules is:

The issuer prefix and account name should be separated by a literal or url-encoded colon, and optional spaces may precede the account name. Neither issuer nor account name may themselves contain a colon

Last time this issue was reported (see #234) it shows that Microsoft uses this colon to identify the company name when the 2FA protects a professional account:

Microsoft:CompanyName:[email protected]

Microsoft does not respect the otpauth format, it's why it's rejected by 2FAuth.

Here is a workaround:

  • Decode your QR code here: https://joohansson.github.io/offline-qr/src/qr-reader.html
    (This page will decode the QR code without sending any data on the network)
  • Copy the Result string
  • Open 2FAuth, click the New button, then Import
  • Paste the string into the Direct Input textarea
  • Before submitting the string, replace the colon that separate the company name from your account id with any string
  • Click Submit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants