google / google-authenticator

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

URI issue with IOS #674

Open jacksnipe24 opened 5 years ago

jacksnipe24 commented 5 years ago

I have link in the webpage that should open Google Authenticator and save the secret

otpauth://totp/ATAIX?secret=OZ5ECQBOGQXXQTB7LZAXGKLNEQYEYQKHPUZTGOCNN5KHSJBVKIYA

In Android everything works fine. There is an issue with ios. When the app is downloaded and there are no generated keys, when clicking link above it indeed opens Google Authenticator and even asks to save the secret, however after clicking YES, nothing happens in the screen. it still shows default blue screen of the app, but actually code was generated. When i close the app and open again now code is there. After this if i click the link above it asks again to save and actually saves.

So from my observations if there are no codes (blank app) then clicking the link generates the code, but wont show in the app unless we restart the app. If there are codes already, everything works fine.

reproduction link

bsentosa commented 5 years ago

HI,

I'm not in the project. But I encountered this, I'm not sure if this is related with your problem. The workaround is to check if there is any space in the URI. If there is a space in the URI (not in the secret key), this will make an invalid URI. Just replace it with "_" (underscore). The space was acceptable in the Android, but not in the IOS.

priyakher02 commented 4 years ago

I have similar issue. Is there a fix for this problem?