feat: add flet-local-auth extension - #6759
Open
mccre110 wants to merge 9 commits into
Open
Conversation
Switch the dev client and flet build template to FlutterFragmentActivity, which local_auth requires for biometric dialogs on Android. Re-parent LaunchTheme to Theme.AppCompat.DayNight.NoActionBar in light and night styles so the biometric dialog does not crash on API 24-27. Add a biometric cross-platform permission bundle for NSFaceIDUsageDescription on iOS and macOS builds, document FlutterFragmentActivity R8 keep rules, and note Touch ID signing requirements in macOS publish docs. Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
Remove flet-local-auth references from the host PR so docs build passes before the extension lands. Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
Add the flet-local-auth service wrapping local_auth 3.0.2 with upstream-parity LocalAuthException handling, platform auth message types, docs, example, and integration tests. Depends on the Android host FlutterFragmentActivity / AppCompat LaunchTheme changes in the base branch. Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
local_auth 3.x simplified AndroidAuthMessages and IOSAuthMessages and removed customizable Windows dialog strings. Update Python @ft.value types and Dart parsers to match the pinned platform packages. Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
Document sandbox, signing, and SecureStorage entitlement notes alongside the extension service docs. Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
|
|
13 tasks
Map local_auth 3.x iris biometrics in the Python enum and add NSFaceIDUsageDescription to the macOS dev client Info.plist. Co-authored-by: Corey McCrea <mccre110@users.noreply.github.com>
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.
Description
Adds the
flet-local-authextension with aLocalAuthenticationservice for on-device biometric and credential authentication on Android, iOS, macOS, and Windows vialocal_auth3.0.2. Linux and Web are explicitly unsupported.Stacks on: the Android host PR (FlutterFragmentActivity + AppCompat LaunchTheme). Merge that PR first.
API:
is_device_supported(),can_check_biometrics(),get_available_biometrics()authenticate()— raisesLocalAuthExceptionon failure (upstreamlocal_authparity)stop_authentication()AndroidAuthMessages,IOSAuthMessages, etc.) aligned withlocal_auth3.xIncludes Python package, Flutter extension, client registration, CI, docs, example, and integration tests.
Related: closes #3192 (supersedes closed #3682).
Test code
Integration tests:
sdk/python/packages/flet/integration_tests/extensions/local_auth/test_local_auth.pyType of change
Checklist
website/sidebars.ymlfor breaking changes, removals, and deprecations, if applicable.Screenshots
Service invokes the OS biometric modal; no custom Flet UI.
Additional details
N/A
Summary by Sourcery
Add a new cross-platform local authentication service and extension, wiring it into the client, build tooling, and documentation so apps can use on-device biometrics and credentials on supported platforms.
New Features:
Enhancements:
Documentation:
Tests: