I did understand how the Access with Touch ID's kSecAccessControlTouchIDAny
in the framework KeychainAccess works but i couldn't figure out how to do this with Face ID in iOS 11. I couldn't find any documentation for solving it yet (Maybe the docs are not out yet?).
So i am seeking out to stackoverflow and ask: How to write values secured with Face ID to the keychain and how to copy them back?
An minimal example would be nice.
No problem. You can manually add the credentials for any password-protected website. To do this, open Settings > Accounts & Passwords > App & Website Passwords. Face ID scans your face to grant you access to your existing list of password-protected sites.
Face ID data does not leave your device, and is never backed up to iCloud or anywhere else. If you choose to enroll in Face ID, you can control how it is used or disable it at any time.
Sometimes you'll need to enter your account password instead of using Face ID: If your face isn't recognized five times in a row. If the amount of time in Settings > Security > “Require password” has elapsed. If you reset Face ID or set up an alternate appearance on your device.
Face images captured during normal operation aren't saved, but are instead immediately discarded once the mathematical representation is calculated for either enrollment or comparison to the enrolled Face ID data.
This appears to now work in Xcode 9.1 (since beta).
Testable with example here:
https://developer.apple.com/library/content/samplecode/KeychainTouchID/Introduction/Intro.html
Even though this example has not been updated for Face ID, it appears to work for storing keychain items protected by Face ID.
As discussed, this does not work in Xcode 9.0 GM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With