Auth0.Android
Auth0.Android copied to clipboard
feat: implemented biometrics authentication for SecureCredentialsManager using androidx.biometrics package
Migrated to use BioMetricManager for performing Authentication before accessing credentials via SecureCredentialsManager
Breaking Changes:
- Removed the
requireAuthenticationAPI which used to be a pre-requisite previously for performing authentication while retrieving Credentials as it is no longer needed.
New API:
- Added a new API
getCredentialsWithAuthenticationinSecureCredentialsManagerwhich is responsible for performing authentication before retrieving credentials. It's no longer needed to callrequireAuthenticationbefore retrieving credentials.
Other changes:
- We've added a dependency on
androidx.biometricspackage to use theBiometricsManagerfor authentication purposes. - Added class LocalAuthenticationManager which consolidates all the logic for interacting with the
BiometricsManager - Added class LocalAuthenticationOptions which helps to configure the behaviour of the
BiometricsManagerliketitle,descriptiondisplayed within in the biometric prompt and the level of authentication required. - Updated
CredentialsManagerExceptionto contain enumCodedescribing the reason for exception and allowing users to check all the cases ofCredentialsManagerExceptionand handle accordingly
Testing
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.
- [ ] This change adds unit test coverage
- [ ] This change adds integration test coverage
- [ ] This change has been tested on the latest version of the platform/language or why not
Checklist
- [ ] I have read the Auth0 general contribution guidelines
- [ ] I have read the Auth0 Code of Conduct
- [ ] All existing and new tests complete without errors