jeroentrappers / flutter_keychain

A flutter plugin for secure storage on Android via KeyStore and iOS via Keychain
Other
56 stars 41 forks source link

Support for Biometric Authentication #5

Closed LinusU closed 4 years ago

LinusU commented 5 years ago

Any plans to support biometric authentication?

On iOS this can be implemented by sending the biometryAny or biometryCurrentSet SecAccessControlCreateFlags, the system will then handle showing a TouchID/FaceID prompt to the user when the value is read back.

On Android this can be implemented with a .setUserAuthenticationRequired(true) call together with BiometricPrompt (using androidx for backwards compat). Here is an example from Google, and here is a guide on getting the compat lib up and running.

🚀

jeroentrappers commented 5 years ago

No, but by all means send me a pull request.

LinusU commented 5 years ago

I'd be happy to!

Would you be open to using square/Valet on the iOS side? It's available thru cocoapods so it will be invisible to the end user.

I'll also need support for shared keychain access groups in my application and using Valet abstracts both biometric authentication and shared (local & iCloud) access groups really nicely. It would make the lines of code in this project really few!

jeroentrappers commented 5 years ago

Sure, go for it.

On Wed, Mar 6, 2019 at 10:58 AM Linus Unnebäck notifications@github.com wrote:

I'd be happy to!

Would you be open to using square/Valet https://github.com/square/Valet on the iOS side? It's available thru cocoapods so it will be invisible to the end user.

I'll also need support for shared keychain access groups in my application and using Valet abstracts both biometric authentication and shared (local & iCloud) access groups really nicely. It would make the lines of code in this project really few!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jeroentrappers/flutter_keychain/issues/5#issuecomment-470044727, or mute the thread https://github.com/notifications/unsubscribe-auth/AA4PWhsgEiDB5UWSisNmo-LhVNpzL0-zks5vT5FPgaJpZM4bfFrb .

--

mixdesign commented 4 years ago

@jeroentrappers Hi, have you made something on this? I'm looking for plugin which has Biometric and keychain integration. Maybe you've com up with another plugin which solves this feature? Thanks

LinusU commented 4 years ago

I ended up just making some quick bindings to the BioPass library since I needed access from native code as well and it was an easy and clean solution:

https://pub.dev/packages/flutter_biopass

If I had the time I still think it would be nice to get it in here :)

netgfx commented 3 years ago

Was this ever implemented on this library?