twofas / 2fas-android

Source code for 2FAS Android app
GNU General Public License v3.0
987 stars 71 forks source link

"Feature" request: adding an entry via the otpauth URL should give a more meaningful/obvious response (edited in response to comment) #77

Open Tipoff4317 opened 1 year ago

Tipoff4317 commented 1 year ago

Edited Filing

Description

The description has been edited in response to Rafał's https://github.com/twofas/2fas-android/issues/77#issuecomment-1773744346

2FAS should show a more meaningful/obvious response to an entry addition via otpauth URL. Currently, it may sometimes appear to do nothing even after having added the entry to the list.

Steps

1) Enter an otpauth URL into a web browser, such as Firefox, that can launch an app 2) Click launch 3) Pick 2FAS 4) After authentication, should show a response to the effect that the entry has been added to the list.

Setups

Screenshots

Adding to 2FAS

https://github.com/twofas/2fas-android/assets/17734927/416fa418-864b-4fa9-a1e6-59393b6020c2

Adding to Aegis

https://github.com/twofas/2fas-android/assets/17734927/3a312b76-ab14-4fbc-9bd1-9b4445203e07

Original Filing

Description

2FAS should allow adding a new entry using an otpauth URL, just like Aegis or Authy. This is when the website/service, such as Lemmy, gives an otpauth URL instead of a QR code. This probably can be used to enter an entry manually as well, if editing in 2FAS is too painful.

It is not clear if this is in addition, or is a subset of, https://github.com/twofas/2fas-android/issues/44

Steps

1) Enter an otpauth URL into a web browser, such as Firefox, that can launch an app 2) Click launch 3) Pick 2FAS 4) After authentication, should show an entry screen with the relevant fields filled in.

(the rest almost same as above)

rafakob commented 1 year ago

We support otpauth links, they are automatically added to the list. In your case the only issue is that the app stays on previously opened Settings page (instead of redirecting to the list of tokens).

Tipoff4317 commented 1 year ago

Confirming that. The example got into my list. Thx!