-
Notifications
You must be signed in to change notification settings - Fork 37
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
Invalid TOTP URL for QR code #25
Comments
No, it doesn't work. AndOTP still can't scan that QR code until you delete |
Deleting the &digits=8 let me scan the code but then I was unable to use it (or modify it to generate more digits) |
AndOTP don't allow you to modify OTP's digits after you add it by scan the QR code. So anyway, it is definitely AndOTP's own defect. |
I tried other TOTP apps and it's in the original report (without removing
I've just tried a few more:
So maybe the standard is unclear and some are OK with the colon and others aren't? |
I was trying to get
bna
to generate a URL, to create a QR code so I could add it to AndOTP.However, the QR code wouldn't scan. AndOTP ('Invalid QR code'), Authy ('Invalid format, token format not supported') or FreeOTP ('The token specified was invalid') could use the QR code because of a missing colon. Google Authenticator scans it without issue.
The spec doesn't specify the colon is required.
As soon as the colon is added it works. The colon is present in the example in README.md under 'Getting an OTPAuth URL'.
Steps to reproduce:
bna
bna show-url
For example:
otpauth://totp/Blizzard:SERIAL?secret=SERCRET&issuer=Blizzard&digits=8
Should be:
otpauth://totp/Blizzard:SERIAL:?secret=SERCRET&issuer=Blizzard&digits=8
You can verify this:
pip3 install qrcode[pil]
qr "PASTEURLHERE"
The text was updated successfully, but these errors were encountered: