Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR-485] Add support for custom LAPolicy when evaluating biometry aut… #486

Merged
merged 1 commit into from
Jul 14, 2021

Conversation

krodak
Copy link
Contributor

@krodak krodak commented Jul 14, 2021

Changes

Currently, if Face Id / Touch Id fails and iOS displays "Enter passcode" UI, tapping on Enter password triggers instant biometrics failure with CredentialsManagerError.touchFailed(Error)

This happens because Auth0 favours LAPolicy.deviceOwnerAuthenticationWithBiometrics evaluation policy within BioAuthentication.

Updated classes:

  • BioAuthentication
  • CredentialsManager

References

Feature request #485

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not
    More on why I haven't added tests below 🙏

Checklist

Issues

To be honest I couldn't build test target using Carthage and xcframeworks with current setup. I've tried carthage update to work around some of the initial issues, that helped building Nimble for main target, but still I couldn't build test target.

I've pushed my idea for adding testability for included changes, but I see that input parameters testing might not be a part of convention, so please let me know whether I should revert those. 🙏 I admit I haven't tested those locally, but I see they are passing on CI. I'd be happy to retest locally, if I could get more information on what commands I should run to be able to run test target after fresh repo checkout.

@krodak krodak requested a review from a team as a code owner July 14, 2021 11:20
@krodak krodak force-pushed the feature/FR-485-support-custom-lapolicy branch from 5958fbe to 8e90f61 Compare July 14, 2021 11:42
README.md Outdated Show resolved Hide resolved
@krodak krodak force-pushed the feature/FR-485-support-custom-lapolicy branch from 5ae868a to af5458e Compare July 14, 2021 22:11
@krodak krodak requested a review from Widcket July 14, 2021 22:11
Copy link
Contributor

@Widcket Widcket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@Widcket Widcket merged commit 0098b6d into auth0:master Jul 14, 2021
@krodak
Copy link
Contributor Author

krodak commented Jul 19, 2021

@Widcket could I ask how after Auth0 releases new patch versions? Do you think there is a chance to have a patch release that would include this PR? 🙏

@Widcket
Copy link
Contributor

Widcket commented Jul 19, 2021

@krodak I'll put out a new release later today.

@Widcket Widcket added this to the 1.35.0 milestone Jul 19, 2021
@Widcket Widcket mentioned this pull request Jul 19, 2021
@Widcket
Copy link
Contributor

Widcket commented Jul 20, 2021

This is out now in version 1.35.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants