mirror of
https://github.com/bitwarden/android.git
synced 2025-03-16 19:28:44 +03:00
[PM-8137] Introduce FIDO 2 user verification tracking (#3459)
This commit is contained in:
parent
721c69619e
commit
5ea2f1c736
2 changed files with 8 additions and 0 deletions
|
@ -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].
|
||||
*/
|
||||
|
|
|
@ -39,6 +39,8 @@ class Fido2CredentialManagerImpl(
|
|||
) : Fido2CredentialManager,
|
||||
Fido2CredentialStore by fido2CredentialStore {
|
||||
|
||||
override var isUserVerified: Boolean = false
|
||||
|
||||
override suspend fun registerFido2Credential(
|
||||
userId: String,
|
||||
fido2CredentialRequest: Fido2CredentialRequest,
|
||||
|
|
Loading…
Add table
Reference in a new issue