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

Require user interaction to find Touch ID credentials #14448

Closed
wants to merge 3 commits into from

Conversation

codingllama
Copy link
Contributor

Require user interaction to find credentials, as a preparation for the Touch ID credential picker. No user-visible changes are introduced in this PR, even though program behavior is slightly different.

To avoid double-prompting users during Touch ID authentication we have to set a grace period in the underlying LAContext and share it between functions. Note that FindCredentials (native) uses the LAContext explicitly, whereas Authenticate (native) uses it through the SecItemCopyMatching query dictionary.

A new HasCredentials check is introduced so we keep the current behavior of failing without user interaction if no Touch ID keys are present. This is necessary to keep the tsh UX smooth.

#13901

@github-actions github-actions bot requested review from avatus and espadolini July 13, 2022 21:59
@codingllama codingllama force-pushed the codingllama/touchid-shared-lacontext branch from 9294b9f to 0c14781 Compare July 14, 2022 14:09
@codingllama
Copy link
Contributor Author

After doing more testing I think I'll have to change some parts of this PR. I'll let you know when it's good to go.

@codingllama codingllama marked this pull request as draft July 14, 2022 20:22
@codingllama
Copy link
Contributor Author

Replaced by #14492.

@codingllama codingllama deleted the codingllama/touchid-shared-lacontext branch July 14, 2022 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant