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

RequestSignature success when application will enter background #271

Open
pykaso opened this issue Dec 6, 2019 · 4 comments
Open

RequestSignature success when application will enter background #271

pykaso opened this issue Dec 6, 2019 · 4 comments
Assignees

Comments

@pykaso
Copy link

pykaso commented Dec 6, 2019

When the biometry prompt is displayed and the application will enter background with a swipe gesture method PowerAuthSDK.sharedInstance().requestSignature(..) will succeed and return the wrong authorization header.

https://drive.google.com/file/d/1bAFc9Jz3TmhelERCX678lgS21LtomX88/view

Expected behavior: Method will throw a Error

@petrdvorak
Copy link
Member

petrdvorak commented Dec 6, 2019

Probably a duplicate of issue #9

Could you please put break-point to PA2Keychain.m#L175 and let us know what is in s variable?

@pykaso
Copy link
Author

pykaso commented Dec 6, 2019

FaceID/TouchID dialog canceled by swipe (switch to another application):

(OSStatus) s = -25293

@hvge
Copy link
Member

hvge commented Nov 2, 2022

Upcoming release 1.7.5 will provide a proper workaround in form of enhanced authenticateUsingBiometry() method. The method fully handle all such situations internally.

The issue will be properly resolved in future 1.8.x release, by introducing asynchronous API for signature calculations (see #497)

@hvge
Copy link
Member

hvge commented Nov 10, 2022

Our updated documentation provides a temporary workaround for this issue.

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

3 participants