iKenndac / Tofu

An easy-to-use two-factor authentication app for iOS
https://tofuauth.com
ISC License
490 stars 64 forks source link

Register URL handler #8

Closed nielslaukens closed 5 years ago

nielslaukens commented 7 years ago

It would be nice if TOFU would register itself as a URL handler for the otpauth:// scheme, just like the Google Authenticator app does. This would allow you to click on a otpauth:// link in e.g. a text message, and have the app automatically open and add the token (maybe after a confirmation).

I believe most of the logic is already implemented for decoding a QR-code, only the registration with iOS for otpauth:// URLs is missing.

calleluks commented 7 years ago

Hey @nielslaukens, that sounds like a cool idea! Do you have an example of an issuer that supply this kind of links?

nielslaukens commented 7 years ago

:-) My employer... The system automatically generates OTP configuration, and sends it via a text message to the users. Typically, the text will be received on the same smartphone that will be used for OTP-generation. Copy-pasting works, but is cumbersome. If the Google Authenticator app is installed, the user can simply click on the link and the OTP-config is added to the app. It would be nice if TOFU would do the same.

calleluks commented 7 years ago

Ah, I see! I agree that it would be a nice feature. Thanks for proposing it, @nielslaukens!

If someone wants to work on this, I'd be happy to answer questions and review PRs. If not, I'll get to it when I can find the time.

TCB13 commented 5 years ago

+1 on this!

ThinkChaos commented 5 years ago

For anyone looking into this, here is a reference on the URL scheme.