[PM-8137] Introduce FIDO 2 user verification tracking (#3459)

This commit is contained in:
Patrick Honkonen 2024-07-15 14:44:16 -04:00 committed by GitHub
parent 721c69619e
commit 5ea2f1c736
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -11,6 +11,12 @@ import com.x8bit.bitwarden.data.autofill.fido2.model.Fido2ValidateOriginResult
*/
interface Fido2CredentialManager {
/**
* Returns true when the user has performed an explicit verification action. E.g., biometric
* verification, device credential verification, or vault unlock.
*/
var isUserVerified: Boolean
/**
* Attempt to validate the RP and origin of the provided [fido2CredentialRequest].
*/

View file

@ -39,6 +39,8 @@ class Fido2CredentialManagerImpl(
) : Fido2CredentialManager,
Fido2CredentialStore by fido2CredentialStore {
override var isUserVerified: Boolean = false
override suspend fun registerFido2Credential(
userId: String,
fido2CredentialRequest: Fido2CredentialRequest,