mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-22 16:32:01 +03:00
user not authenticated/key permanently invalidated
This commit is contained in:
parent
6672ff3245
commit
41c6bad62f
@ -95,18 +95,18 @@ class BiometricProtectionSinceM(
|
||||
Log.d(TAG, "User is now verified by biometrics")
|
||||
}
|
||||
|
||||
UserAuthenticationStatus.USER_NOT_AUTHENTICATED -> onAuthenticationCancelledOrFailed().also {
|
||||
Log.e(TAG, "Failed to use the authentication private key")
|
||||
// explanation for why both statuses trigger onKeyPermanentlyInvalidated:
|
||||
// we are in onAuthenticationSucceeded callback of BiometricPrompt which means,
|
||||
// that if the key is still not authenticated, the key is not valid anymore
|
||||
UserAuthenticationStatus.KEY_PERMANENTLY_INVALIDATED,
|
||||
UserAuthenticationStatus.USER_NOT_AUTHENTICATED -> onKeyPermanentlyInvalidated().also {
|
||||
Log.e(TAG, "The private key is not valid for signatures anymore")
|
||||
}
|
||||
|
||||
UserAuthenticationStatus.SIGNATURE_FAILED -> onAuthenticationCancelledOrFailed().also {
|
||||
Log.e(TAG, "Signature with the key pair failed")
|
||||
}
|
||||
|
||||
UserAuthenticationStatus.KEY_PERMANENTLY_INVALIDATED -> onKeyPermanentlyInvalidated().also {
|
||||
Log.e(TAG, "The private key is not valid for signatures anymore")
|
||||
}
|
||||
|
||||
}
|
||||
},
|
||||
onAuthenticationFailed = {
|
||||
|
Loading…
Reference in New Issue
Block a user