-
-
Notifications
You must be signed in to change notification settings - Fork 306
Allow importing TOTP configuration through QR codes #903
Allow importing TOTP configuration through QR codes #903
Conversation
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
|
This works for me, I've imported ~30 TOTP configs without a hitch so far. |
fmeum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we keep pumping out OTP features at this speed, andOTP will soon be deprecated in favor of Password Store. ;-)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Is this a thing? Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
|
I'll go check up on why this opens in landscape... |
I think that's because of https://github.com/journeyapps/zxing-android-embedded/blob/13440ad8751dcaba4177fa50dfee639dac52a53d/zxing-android-embedded/AndroidManifest.xml#L35 |
I'll go make this portrait and push a new tag out. |
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
|
Or well, this works too. Gotta love ManifestMerger. |
fmeum
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great!
I don't know the answer to this one sorry. My guess is that nobody does this though, because a context-less OTP code doesn't make much sense most of the time. That said, it could still be handy to have for getting seeds out of e.g. a shell by piping it to e.g. |
If there's no precedent in the wild I'm just gonna revert it and stay on the safer side. Thanks for the info! |
* develop: (62 commits) Scroll to files and enter folders when created (android-password-store#909) Run a treewide reformat (android-password-store#908) Improve how secrets and stored and used (android-password-store#907) Improve and refactor Autofill heuristics (android-password-store#905) Use PreferenceKeys file to manage SharedPreferences keys. (android-password-store#891) Revert "Support directly importing secrets" (android-password-store#904) Allow importing TOTP configuration through QR codes (android-password-store#903) Bump version Prepare release 1.9.2 update changelog Workaround to prevent crash on first run (android-password-store#898) Workaround to prevent crash on first run (android-password-store#898) Offer TOTP Autofill for OTP fields (android-password-store#899) Merge SshKeyGenFragment into its activity (android-password-store#897) Reintroduce TOTP support (android-password-store#890) Sync with release branch (android-password-store#896) build: bump version Prepare release 1.9.1 Backport Actions fixes (android-password-store#894) Rework GitHub Actions (android-password-store#893) ...

📢 Type of change
📜 Description
Adds a button to password creation/edit screen that starts a camera view to import QR codes. The implementation
is very rudimentary and does no error checking, which we should change. The view also starts in landscape which
I will probably need to rectify in the source library.
💡 Motivation and Context
Let's just say that I am better at Kotlin than at Bash and leave it at that.
💚 How did you test it?
Manually imported by 20+ TOTP sites into files with and without extra content and validated the generated OTPs.
📝 Checklist
🔮 Next steps
📸 Screenshots / GIFs
¯\(ツ)/¯