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

Deprecate synchronous methods for signature calculation #497

Open
hvge opened this issue Nov 2, 2022 · 0 comments
Open

Deprecate synchronous methods for signature calculation #497

hvge opened this issue Nov 2, 2022 · 0 comments

Comments

@hvge
Copy link
Member

hvge commented Nov 2, 2022

In the future SDK release, we should deprecate the synchronous methods that calculate PowerAuth Symmetric Signatures and add asynchronous variants. This change will help to solve the following problems with the biometry:

On iOS:

  • The signature calculation is a thread blocking operation if PowerAuthAuthentication object is configured for biometric signature. The asynchronous API allows us to hide all such complexity into one properly cancelable call.
  • The implementation will use LAContext internally so we can fully handle all weird states, such as power button press while biometric dialog is visible.

On Android:

  • The biometric signature calculation require that application has to resolve the biometry key in advance. This can be now an implementation detail hidden in asynchronous API.

I think that we need to introduce a new object, called "biometric prompt" that contain information about biometric prompt.

Related to #9, #271, #272, #495

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

No branches or pull requests

1 participant