feat(firebase_app_check,windows): add custom App Check provider support - #18576
feat(firebase_app_check,windows): add custom App Check provider support#18576SelaseKay wants to merge 3 commits into
Conversation
Allow Flutter Windows apps to mint App Check tokens through a Dart WindowsCustomProvider callback, with app-scoped native wiring.
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 馃憤 and 馃憥 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
80b703d to
2d81d43
Compare
Description
Adds custom App Check provider support for Windows, addressing the custom-provider part of #12227. Combined with the existing Windows debug provider, this lets Flutter Windows apps meet App Check enforcement for Firestore, Functions, Storage, Auth, and Realtime Database.
Previously, Windows
activate()always installed the C++ debug provider. Apps can now passWindowsCustomProvider(fetchToken: ...)so the native plugin asks Dart for a minted token (and its expiry) whenever the Firebase C++ SDK needs a fresh App Check token.Usage:
fetchTokenis invoked by the plugin when the native SDK needs a token. App code never touches generated PigeonFirebaseAppCheckFlutterApi; a private method-channel implementation registers that callback perapp.name. The native factory is process-global and long-lived, with per-app custom vs debug dispatch atGetTokentime.This reimplements closed #18184 on current
main(includingrecaptchaSiteKeyonactivate) and incorporates the review feedback from that PR.Related Issues
#12227
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]).This will ensure a smooth and quick review process. Updating the
pubspec.yamland changelogs is not required.///).melos run analyze) does not report any problems on my PR.Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?