5

I found out that it is possible to create a new entry in the Google Authenticator App via a link.

Example: otpauth://totp/Example:alice@google.com?secret=JBSWY3DPEHPK3PXP&issuer=Example

Is it possible to just open the Google Authenticator App on Android and iOS via a link from a website?

If you open the App with a link like this one otpauth://, you get an error.

There is a Scheme defined for link in the iOS and Android App

Quai
  • 175
  • 3
  • 18
  • How are you linking to the custom URL scheme URI? Have you tried this: https://stackoverflow.com/a/33158594/3708242 ? – wottle Apr 24 '18 at 18:56
  • Not yet. The app opens, but I think it's expecting a link with content, not empty. – Quai Apr 24 '18 at 18:58
  • Yes, if you don't pass in the information in the URI, the app will have nothing to do. Are you saying you are trying to launch an empty URI: "otpauth://"? In order to add an entry, you have to provide the full URI with an account, secret and issuer. I am a bit confused as to what you are trying to accomplish. You just want to launch the app, not add an entry? – wottle Apr 24 '18 at 19:09
  • @wottle Didn't work. The App says `Cannot interpret QR code`. If you click `ok`, you can use the app. But i don't want this error. Yes, i just want to open the app. – Quai Apr 24 '18 at 19:10
  • Have you tried the other url scheme: "totp:\\"? – wottle Apr 24 '18 at 19:18
  • Yeah. Same error. :( – Quai Apr 24 '18 at 19:23
  • In iOS apps, you write code to handle when your app is launched with those custom URL schemes. Google probably didn't anticipate people trying to use the custom scheme that way, so their code tries to do something with the URI itself, and when empty or invalid, they try to be helpful and provide an error message to tell the user that something is not right. I'm not too familiar with the Authenticator custom scheme, so maybe someone else has figured out how to do this without the error. – wottle Apr 24 '18 at 19:25
  • Maybe someone else knows an answer. Thank you for your help. :) – Quai Apr 24 '18 at 19:33
  • Any update on this? I'd like to open the app with otpauth::// url scheme and have the same behavior just like if I would click the app icon. – Dan Aug 15 '19 at 13:33
  • No, there are no updates. – Quai Aug 18 '19 at 08:40

0 Answers0