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

QR codes not recognized by Google Authenticator #99

Open
defacto64 opened this issue Oct 10, 2021 · 2 comments
Open

QR codes not recognized by Google Authenticator #99

defacto64 opened this issue Oct 10, 2021 · 2 comments

Comments

@defacto64
Copy link

Hi, any QR codes generated by calling GoogleAuthenticatorQRGenerator.getOtpAuthURL(...) are not detected by Google Authentication app. Here is an example:

https://api.qrserver.com/v1/create-qr-code/?data=URI+%5Bscheme%3Dotpauth%2C+userInfo%3Dnull%2C+host%3Dtotp%2C+port%3D-1%2C+path%3D%2Fissuer%3Auser%2C+queryParams%3D%5Bsecret%3D65DX5JBEFRXCLMS46FO57H67EWEMX3FA%2C+issuer%3Dissuer%2C+algorithm%3DSHA1%2C+digits%3D6%2C+period%3D30%5D%2C+fragment%3Dnull%5D&size=200x200&ecc=M&margin=0

Not even my Camera app can read the above QR code...

Other QR codes, e.g. those generated by Google, are instead recognized.

How comes that? Please advise...

@user4302
Copy link
Contributor

this was never fixed?
i think this is because of 'margin=0'

if you change it to at least 'margin=1' it will work

@alexgamas
Copy link

hello,

your qr code is displaying a wrong otpauth URI.

When i scanned the QR with my cellphone camera this is the decoded text:

URI [scheme=otpauth, userInfo=null, host=totp, port=-1, path=/issuer:user, queryParams=[secret=65DX5JBEFRXCLMS46FO57H67EWEMX3FA, issuer=issuer, algorithm=SHA1, digits=6, period=30], fragment=null]

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

3 participants