google / google-authenticator

Open source version of Google Authenticator (except the Android app)
Apache License 2.0
5.19k stars 966 forks source link

Failed to Add profile through QR Code scanning in iOS app #683

Closed somayaji1983 closed 5 years ago

somayaji1983 commented 5 years ago

Dear Team, We are trying to add TOTP profile into Google authenticator APP by scanning QR.

Looking forward for resolution.

ThomasHabets commented 5 years ago

You've obfuscated the URL, but part of the QR code is visible in the background. I hope this is not too secret as there may be enough data in the screenshot to get the data back.

I think the problem is that algorithm is not set to one of SHA1|SHA256|SHA512|MD5. Could you try changing in to SHA1?

Other than that, have you tried not having the colon in the username? What about leaving out some of the parameters?

ThomasHabets commented 5 years ago

BTW the URL scheme is documented here

somayaji1983 commented 5 years ago

Hi @ThomasHabets. Firstly thanks for your reply. As explained above, the same QR code is working fine with Google Authenticator in Android OS but throwing error in iOS. The algorithm used is " HmacSha1 " , is that could be the reason why it is now working in iOS ? Request your opinion on this

ThomasHabets commented 5 years ago

Nonetheless, it's not a supported algorithm string by spec (link above) or code.

I don't know why it's supported by the android app. Could it be that the android app is not even reading that parameter?

somayaji1983 commented 5 years ago

The query got resolved after modifying algorithm to SHA1.

Julie4ganesh commented 4 years ago

hi., I have one query.. i already using sha1 algorithm ..Nonetheless i have same issue in ios device .. it shows invalid barcode.. now what was the problem of this?..pls rply me

ThomasHabets commented 4 years ago

@Julie4ganesh: How was your QR code generated?

gocreating commented 3 years ago

Same issue https://freeipa-users.redhat.narkive.com/gZ5SkTsN/otp-google-authenticator-iphone-invalid-barcode 5 years past and you dont even get this shit done?