android / security-samples

Multiple samples showing the best practices in security APIs on Android.
Apache License 2.0
938 stars 395 forks source link

Get Which Biometric is used for authentication on Onsucesscallback #68

Open irshadillias opened 3 years ago

irshadillias commented 3 years ago

BiometricPrompt.AuthenticationResult only provide following value

AUTHENTICATION_RESULT_TYPE_UNKNOWN, AUTHENTICATION_RESULT_TYPE_DEVICE_CREDENTIAL, AUTHENTICATION_RESULT_TYPE_BIOMETRIC

But from AUTHENTICATION_RESULT_TYPE_BIOMETRIC cant identify whether face or finger print or iris.

Usecase : my application only support finger print. Since Fingerprint only in strong authentication(class 3) now i can use, but safer side when any of other (fingerprint , iris) meet class 3 specification in future i need to show error message on success scenario.