Skip to content

Conversation

@jayfunk
Copy link
Member

@jayfunk jayfunk commented Oct 19, 2022

These changes are to attempt to address the issue outlined in #181. I was able to address the root issue where the android.security.KeyStoreException: Key user not authenticated is reported when attempting to sign with the private key. It appears from this documentation that when using BiometricPrompt.authenticate we must use the form of the method that does not take CryptoObject as that implies the prompt will be used for Biometric authentication only (supporting documentation https://developer.android.com/training/sign-in/biometric-auth#biometric-or-lock-screen).

After updating the implementation to not use the CryptoObject form of BiometricPrompt.authenticate. After enabling this new form of authentication for both Biometric and device authentication I did find that I was no longer able to verify the signature with my test backend. I was not able to resolve this issue and was hoping that someone else might take a look at my changes and be able to see what change may have caused this regression.

non-biometric authentication. There is an issue in newer versions of
Android that require different configuration of the biometrics library
for dual auth flows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants