question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android: Fingerprint authentication not implemented yet

See original GitHub issue

It’s possible to get if the device supports fingerprint authentication with getSupportedBiometryType() but the keychain item doesn’t use the fingerprint authentication (or provide options for doing so).

Looking at https://github.com/oblador/react-native-keychain/blob/c4b2b4dcfe4e36d2cfc86bf25d3a5af461779464/android/src/main/java/com/oblador/keychain/cipherStorage/CipherStorageKeystoreAESCBC.java#L71

The code is commented out. I’ve tried playing with this feature and uncommenting the code and even passing if the device supports fingerprint auth as an extra argument to encrypt.

However I can’t get it working and there’s nothing in the logs to suggest what is wrong.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:1
  • Comments:29 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
cladjulescommented, Sep 9, 2018

@LinusU That’s really good.

I managed to merge some of your code into my PR. You can now encrypt without using fingerprint and decrypt using it. https://github.com/cladjules/react-native-keychain

At least, there is now a separate cipherStorage so it’s easier to manage and in a different file.

I will try and add the BiometricPromptCompat so it uses both Compat and BiometricPrompt code.

1reaction
Jyrno42commented, Sep 13, 2018

@Jyrno42 5c00a5d doesn’t have anything to do with fingerprint, right? Can you submit that as a separate pull request?

Will do

E: https://github.com/oblador/react-native-keychain/pull/150 is out

Read more comments on GitHub >

github_iconTop Results From Across the Web

Show a biometric authentication dialog - Android Developers
One method of protecting sensitive information or premium content within your app is to request biometric authentication, such as using face recognition or ......
Read more >
Detecting failed fingerprint authentication attempts in an ...
My company wants to implement fingerprint authentication in its Android app and I'm wondering if there is any way to log the failed ......
Read more >
How to implement Fingerprint Authentication in Android Apps
Here Android app developers are explain step by step how to implement fingerprint authentication features in Android apps.
Read more >
5 steps to implement Biometric authentication in Android
Step 2: Check if the device supports Biometric authentication · The device is running Android 6.0 or higher · The device features a...
Read more >
Local Authentication on Android - OWASP MASTG
Make sure that fingerprint authentication and/or other types of biometric authentication are exclusively based on the Android SDK and its APIs. If this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found