johannes-schliephake / nextcloud-passwords-ios

An iOS client for the Nextcloud Passwords app
GNU Affero General Public License v3.0
81 stars 9 forks source link

Feature: AutoFill- 2fa #247

Closed strich3 closed 1 year ago

strich3 commented 1 year ago

Add autofill for 2fa

johannes-schliephake commented 1 year ago

There already exists a Safari sharing extension for autofilling one-time passwords. You can find it in the sharing menu. Apple currently doesn't offer a native API for OTPs, so this is a good as it gets for now.

petter1 commented 4 months ago

That seems like it changed with iOS 17. additionally, it seems like Apple 2FA codes aren't offered anymore if apple keychain isn't enabled, like it did with iOS 16. proton has it implemented, I think here are relevant parts of the code https://github.com/protonpass/ios-pass/blob/3f9d8cabd518fb5e1d0637be96a309775129c6bd/iOS/AppManagement/DependencyInjection/Factory%2BExtensions.swift

image

I found this in the release notes of iOS 17:

image

johannes-schliephake commented 4 months ago

The features I described above are still available and working on iOS 17.

The first screenshot you posted just shows a feature where OTP codes scanned with the Camera app are handled by the password manager you select. This indeed isn't supported yet, but you can still set up OTPs from within the Passwords app.

The release notes are about Passkeys and Settings app deeplinking, two different features. Right now, Apple doesn't allow integration of third party OTP apps.

petter1 commented 3 months ago

Thank you for clarification!

I have now decided, that I want to use passkeys in the future and therefore, I migrated to strongbox since it supports sync to Linux using a KeePass file in my Nextcloud folder.