soffes / SAMKeychain

Simple Objective-C wrapper for the keychain that works on Mac and iOS
MIT License
5.4k stars 956 forks source link

Support Biometry #193

Open rogerluan opened 6 years ago

rogerluan commented 6 years ago

Description

This PR updates the library to add support to Keychain Access Control features, including creation flags, which allows authentication using biometry.

It also deprecates useNoAuthenticationUI that was deprecated by Apple.

Lastly, it adds an utility to check if the device has passcode and/or biometry configured, and fixes a bug when setting properties that should be mutually exclusive. This last bit would cause a failure on queries.

Note

❌ Code is untested on macOS; ✅ But it's in production on iOS for several weeks now.