feat(biometric): add macOS Touch ID support via LocalAuthentication framework#3264
Open
takahashim wants to merge 1 commit intotauri-apps:v2from
Open
feat(biometric): add macOS Touch ID support via LocalAuthentication framework#3264takahashim wants to merge 1 commit intotauri-apps:v2from
takahashim wants to merge 1 commit intotauri-apps:v2from
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add macOS Touch ID support to the biometric plugin via the
LocalAuthenticationframework usingobjc2bindings.Non-macOS desktop platforms should compile successfully and return "not available" gracefully.
Related issue: #1880
Implementation Details
objc2-local-authenticationcrate.It includes
status()(Touch ID availability check) andauthenticate()(Touch ID prompt with device credential fallback).mobile.rsis extracted from the original mobile-onlylib.rs.The core logic (plugin registration,
run_mobile_plugincalls) is preserved, but JS invocations now route throughcommands.rsinstead of being forwarded directly to the native plugin. This required addingmax_attempsto the RustAuthOptionsstruct so the value passes through the Rust layer to Android/iOS.canEvaluatePolicy, localized fallback/cancel titles,touchIDAuthenticationAllowableReuseDuration = 0, and LAError code mapping.