Git Product home page Git Product logo

Comments (13)

 avatar commented on August 25, 2024

Silly me, there's a search function already... Calling myself stupid so nobody else needs to. Done. :)

from tofu.

calleluks avatar calleluks commented on August 25, 2024

Hey @nistan123, thanks for the feedback.

merely double tap a token in the app should directly copy the code to the clipboard

Right now, when the contextual menu disappears after tapping the Copy item, I think people have the expectation that the code was copied to the clipboard. If we didn't display a contextual menu and instead copied codes on double tap, I'm not sure how we could create this expectation or otherwise provide feedback in a way that's in line with the rest of the system.

[...] the Tofu app to automatically send the current code for the relevant token to the clipboard [...] Would this be feasible?

Unfortunately, I don't think that's possible with the currently available APIs.

from tofu.

dietofworms avatar dietofworms commented on August 25, 2024

To extend upon OP's request regarding copying the code automatically. Can we take a look at Google's Authenticator application for inspiration? There, you can simply tap a code and it will automatically copy it to your clipboard. I think this feature would be really good to implement in Tofu.

from tofu.

 avatar commented on August 25, 2024

Just to add an example you may want to have a look at re. suggested feature #3.
The iOS app 1Password offers this exact feature. After installing the app, go Settings > Passwords and Accounts > Autofill Passwords, and then you may add the 1Password app.
Maybe have a closer look at how they do it?

from tofu.

 avatar commented on August 25, 2024

The iOS app 1Password offers this exact feature. After installing the app, go Settings > Passwords and Accounts > Autofill Passwords, and then you may add the 1Password app.

Can update that this feature has not worked at all in 1Password. So perhaps it is impossible to do this currently...

from tofu.

calleluks avatar calleluks commented on August 25, 2024

Regarding one-tap copy: I don’t think the way Google Authenticator provides feedback that it copied the code to the clipboard fits in well with the rest of system. If you have suggestions for how to do this better, I’d love to hear them.

Regarding 1Password and autofill: If I have understood things correctly, the autofill api lets apps pre-register entries that can be auto filled. I don’t see how this would work with short lived one time passwords.

from tofu.

 avatar commented on August 25, 2024

Regarding 1Password and autofill: If I have understood things correctly, the autofill api lets apps pre-register entries that can be auto filled. I don’t see how this would work with short lived one time passwords.

371BDDD4-CC4E-4F9F-83B6-9A288C5AC117

Although I haven’t gotten it to work myself, clearly it is supposed to, if you refer to the image attached.

Imagine how smooth the user experience would be to simply log in to websites and never having to even open Tofu, but just stay in Safari?
It could set your app apart from the rest if you implemented this (and it actually works).

from tofu.

calleluks avatar calleluks commented on August 25, 2024

Imagine how smooth the user experience would be to simply log in to websites and never having to even open Tofu, but just stay in Safari?

I agree that it sounds great! I still don't see how it would work, though.

The way I interpret this 1Password feature is that after autofilling your username/email and password, 1Password will copy the OTP to your clipboard for you to then paste into the OTP field. This seems reliant on getting a callback from the autofill system, and I'm not sure how Tofu would handle that?

from tofu.

 avatar commented on August 25, 2024

This seems reliant on getting a callback from the autofill system, and I'm not sure how Tofu would handle that?

Sorry to say I know nothing about programming/coding, I’m only a lowly consumer. But I found a similar open source project on github which claims to be using auto-fill 2FA https://github.com/FoxAuth/FoxAuth. Perhaps have a look at their code? Although this is not for iOS but Mozilla.

from tofu.

ThinkChaos avatar ThinkChaos commented on August 25, 2024

Regarding 1Password and autofill: If I have understood things correctly, the autofill api lets apps pre-register entries that can be auto filled. I don’t see how this would work with short lived one time passwords.

The API actually launches an app extension that can do more than just register entries. For instance KeepassTouch, a password manager based on MiniKeepass, has an autofill extension that asks the user to unlock the database and then can fetch relevant username/password combos.

What I'm not sure about is if iOS would allow the autofill extension to run for non username/password fields. I think 2FA code inputs generally don't match username nor password detection.

from tofu.

bre7 avatar bre7 commented on August 25, 2024

OTP autofill on iOS only works for SMS login flows. https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_a_text_input_view

1Password for example, autofills user/password and sends the OTP code to the clipboard.

from tofu.

calleluks avatar calleluks commented on August 25, 2024

I don't think this is technically possible right now. Let's re-open this if this changes!

from tofu.

mietzen avatar mietzen commented on August 25, 2024

I found this old pull request: mattrubin/Authenticator#234
Perhaps this would be a possible workaround, we still have to make multiple clicks/taps but we don't need to switch the app / lose focus.

from tofu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.