feat: implemented biometrics authentication for SecureCredentialsManager using androidx.biometrics package #745
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Migrated to use BioMetricManager for performing Authentication before accessing credentials via SecureCredentialsManager
Breaking Changes:
requireAuthentication
API which used to be a pre-requisite previously for performing authentication while retrieving Credentials as it is no longer needed.New API:
getCredentialsWithAuthentication
inSecureCredentialsManager
which is responsible for performing authentication before retrieving credentials. It's no longer needed to callrequireAuthentication
before retrieving credentials.Other changes:
androidx.biometrics
package to use theBiometricsManager
for authentication purposes and this dependency needs to be added only by the users who are usingSecureCredentialsManager
BiometricsManager
BiometricsManager
liketitle
,description
displayed within in the biometric prompt and the level of authentication required.CredentialsManagerException
to contain enumCode
describing the reason for exception and allowing users to check all the cases ofCredentialsManagerException
and handle accordinglyTesting
Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. Since this library has unit testing, tests should be added for new functionality and existing tests should complete without errors.
Checklist