Closed josefschabasser closed 5 years ago
Isn't the URI function actually missing something it needs? Yes it is. The provisioning URI is missing things that need to be put into it. So I'll just assume that its an incomplete function rather than a broken one.
I found the issue. The resulting URI is correct and working, but python-bna always adds a new line at the end, which is messing up the qr code.
Hi!
provisioning_uri
generates a wrong URI, which results in an invalid QR code. Here's what I did:This prints
which is missing a
:
between the name and?
. This generates an invalid QR code.This would be the correct URI:
which works as intended.
QR codes tested with qrencode and andOTP. Please see https://github.com/jleclanche/python-bna/issues/24 for a current workaround using sed or awk.
Tested on Arch Linux using python-pyotp 2.3.0.
Best Regards Josef