Open pixelsnis opened 2 months ago
@pixelsnis Hey, I'm also facing this same issue only on Windows. Could you let me know if you found any workaround or solution for this issue?
~If it helps, downgrading to cloud_firestore: ^5.2.1
temporarily fixed the issue for me. So, the problem must have been introduced in recent updates to the package.~
Edit: Weird, I see you are also using this version. On top of that, I'm unable to reproduce it now.
Is there an existing issue for this?
Which plugins are affected?
Auth, Database
Which platforms are affected?
Windows
Description
Even when the user is freshly signed in, Cloud Firestore declines any requests saying "Missing or insufficient permissions." When checking auth state with
FirebaseAuth.instance.currentUser
, is it non-null, so the authentication clearly went through. The same code works perfectly fine on MacOS, Android and iOS. The Firestore rule for this query isallow read, create: if request.auth != null
Here's the block that gets declined:
Reproducing the issue
Making any request to Cloud Firestore when authenticated gets declined.
Firebase Core version
3.3.0
Flutter Version
3.22.2
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml - aes_crypt_null_safe 3.0.0 - android_id 0.4.0 [flutter] - animated 2.0.0 [flutter] - animations 2.0.11 [flutter] - arrow_path 3.1.0 [flutter] - cached_network_image 3.3.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - cloud_firestore 5.2.1 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cloud_functions 5.0.4 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter] - connectivity_plus 5.0.2 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm] - cupertino_icons 1.0.8 - desktop_drop 0.4.4 [flutter flutter_web_plugins cross_file] - device_info_plus 10.1.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta web win32 win32_registry] - dio 5.6.0 [async http_parser meta path dio_web_adapter] - extension_google_sign_in_as_googleapis_auth 2.0.12 [flutter google_sign_in googleapis_auth http meta] - figma_squircle 0.5.3 [vector_math flutter] - file_picker 6.2.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32] - firebase_auth 5.1.4 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 3.3.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_messaging 15.0.4 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_storage 12.1.3 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine] - flutter_dotenv 5.1.0 [flutter] - flutter_markdown 0.7.3+1 [flutter markdown meta path] - flutter_phoenix 1.1.1 [flutter] - flutter_svg 2.0.9 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - flutter_webrtc 0.11.6+hotfix.1 [collection dart_webrtc flutter path_provider web webrtc_interface] - font_awesome_flutter 10.7.0 [flutter] - gal 2.3.0 [flutter] - google_sign_in 6.2.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - google_sign_in_dartio 0.2.2+1 [flutter google_sign_in google_sign_in_platform_interface shared_preferences shared_preferences_foundation shared_preferences_linux url_launcher url_launcher_macos crypto http html_unescape] - haptic_feedback 0.4.2 [flutter plugin_platform_interface] - hive 2.2.3 [meta crypto] - hive_flutter 1.1.0 [flutter hive path_provider path] - image_picker 1.1.2 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows] - in_app_review 2.0.9 [flutter in_app_review_platform_interface] - intl 0.19.0 [clock meta path] - iso 1.0.0 [extra_pedantic meta pedantic] - launch_at_startup 0.2.2 [flutter win32_registry] - macos_secure_bookmarks 0.2.1 [flutter logging logging_appenders] - media_store_plus 0.1.2 [flutter plugin_platform_interface meta] - mixpanel_flutter 2.2.0 [flutter flutter_web_plugins js] - modal_bottom_sheet 3.0.0 [flutter] - network_info_plus 4.1.0+1 [collection nm flutter flutter_web_plugins meta network_info_plus_platform_interface win32 ffi] - nsd 3.0.0 [flutter nsd_android nsd_ios nsd_macos nsd_platform_interface nsd_windows] - open_file_manager 0.0.4 [flutter plugin_platform_interface] - open_filex 4.5.0 [flutter ffi] - package_info_plus 8.0.2 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32 clock] - path_provider 2.1.4 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - permission_handler 11.3.1 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface] - phosphor_flutter 2.1.0 [flutter] - provider 6.1.2 [collection flutter nested] - purchases_flutter 6.30.2 [flutter freezed_annotation json_annotation] - qr_flutter 4.1.0 [flutter qr] - rive 0.13.12 [collection flutter flutter_web_plugins http meta plugin_platform_interface rive_common] - sentry_flutter 7.20.2 [flutter flutter_web_plugins sentry package_info_plus meta ffi] - share_handler 0.0.21 [flutter share_handler_android share_handler_ios share_handler_platform_interface] - share_plus 7.2.2 [cross_file meta mime flutter flutter_web_plugins share_plus_platform_interface file url_launcher_web url_launcher_windows url_launcher_linux url_launcher_platform_interface ffi win32] - shelf 1.4.1 [async collection http_parser path stack_trace stream_channel] - shelf_multipart 1.0.0 [http_parser mime shelf string_scanner] - sprung 3.0.1 [flutter] - stacked_card_carousel 0.0.4 [flutter] - super_clipboard 0.8.19 [flutter collection meta super_native_extensions] - super_native_extensions 0.8.19 [flutter flutter_web_plugins meta ffi collection path uuid irondash_engine_context irondash_message_channel device_info_plus pixel_snap web] - system_tray 0.1.1 [flutter path] - url_launcher 6.3.0 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - uuid 4.4.2 [crypto sprintf meta fixnum] - window_manager 0.4.2 [flutter path screen_retriever] - zxcvbn 1.0.0 dev dependencies: - build_runner 2.4.11 [analyzer args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml] - flutter_lints 3.0.2 [lints] - flutter_oss_licenses 2.0.3 [path meta yaml dart_pubspec_licenses args] - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service] - hive_generator 2.0.1 [build source_gen hive analyzer source_helper] - msix 3.16.8 [args yaml path package_config get_it image pub_semver console cli_util] transitive dependencies: - _fe_analyzer_shared 67.0.0 [meta] - _flutterfire_internals 1.3.40 [collection firebase_core firebase_core_platform_interface flutter meta] - analyzer 6.4.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.6.1 [crypto path] - args 2.5.0 - async 2.11.0 [collection meta] - boolean_selector 2.1.1 [source_span string_scanner] - build 2.4.1 [analyzer async convert crypto glob logging meta package_config path] - build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 4.0.2 [built_collection built_value crypto http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.4.2 [analyzer async build collection convert crypto graphs logging package_config path pool pub_semver stream_transform yaml] - build_runner_core 7.3.1 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta package_config path pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.9.2 [built_collection collection fixnum meta] - cached_network_image_platform_interface 4.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.2.0 [cached_network_image_platform_interface flutter flutter_cache_manager] - characters 1.3.0 - checked_yaml 2.0.3 [json_annotation source_span yaml] - cli_util 0.4.1 [meta path] - clock 1.1.1 - cloud_firestore_platform_interface 6.3.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 4.1.1 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins] - cloud_functions_platform_interface 5.5.33 [firebase_core flutter meta plugin_platform_interface] - cloud_functions_web 4.9.11 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins] - code_builder 4.10.0 [built_collection built_value collection matcher meta] - collection 1.18.0 - connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface] - console 4.1.0 [vector_math] - convert 3.1.1 [typed_data] - cross_file 0.3.4+2 [meta web] - crypto 3.0.5 [typed_data] - dart_pubspec_licenses 2.0.3 [yaml path json_annotation] - dart_style 2.3.6 [analyzer args collection path pub_semver source_span] - dart_webrtc 1.4.8 [collection js logging meta platform_detect synchronized web webrtc_interface] - dbus 0.7.10 [args ffi meta xml] - device_info_plus_platform_interface 7.0.1 [flutter meta plugin_platform_interface] - dio_web_adapter 2.0.0 [dio http_parser meta web] - extra_pedantic 1.5.0 - fake_async 1.3.1 [clock collection] - ffi 2.1.3 - file 7.0.0 [meta path] - file_selector_linux 0.9.2+1 [cross_file file_selector_platform_interface flutter] - file_selector_macos 0.9.4 [cross_file file_selector_platform_interface flutter] - file_selector_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface] - file_selector_windows 0.9.3+2 [cross_file file_selector_platform_interface flutter] - firebase_auth_platform_interface 7.4.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.12.5 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web] - firebase_core_platform_interface 5.2.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.17.4 [firebase_core_platform_interface flutter flutter_web_plugins meta web] - firebase_messaging_platform_interface 4.5.42 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.8.12 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web] - firebase_storage_platform_interface 5.1.27 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_storage_web 3.9.12 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http meta web] - fixnum 1.1.0 - flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_plugin_android_lifecycle 2.0.21 [flutter] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - freezed_annotation 2.4.4 [collection json_annotation meta] - frontend_server_client 4.0.0 [async path] - get_it 7.7.0 [async collection meta] - glob 2.1.2 [async collection file path string_scanner] - google_identity_services_web 0.3.1+4 [meta web] - google_sign_in_android 6.1.28 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.7.6 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.4.5 [flutter plugin_platform_interface] - google_sign_in_web 0.12.4+2 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http web] - googleapis_auth 1.4.1 [args crypto http http_parser js] - graphs 2.3.2 [collection] - html_unescape 2.0.0 - http 0.13.6 [async http_parser meta] - http_multi_server 3.2.1 [async] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - image 4.2.0 [archive meta xml] - image_picker_android 0.8.12+12 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 3.0.5 [flutter flutter_web_plugins image_picker_platform_interface mime web] - image_picker_ios 0.8.12 [flutter image_picker_platform_interface] - image_picker_linux 0.2.1+1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_macos 0.2.1+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface] - image_picker_platform_interface 2.10.0 [cross_file flutter http plugin_platform_interface] - image_picker_windows 0.2.1+1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface] - in_app_review_platform_interface 2.0.5 [flutter url_launcher plugin_platform_interface platform] - io 1.0.4 [meta path string_scanner] - irondash_engine_context 0.5.4 [flutter plugin_platform_interface] - irondash_message_channel 0.7.0 [flutter ffi] - js 0.6.7 [meta] - json_annotation 4.9.0 [meta] - leak_tracker 10.0.4 [clock collection meta path vm_service] - leak_tracker_flutter_testing 3.0.3 [flutter leak_tracker leak_tracker_testing matcher meta] - leak_tracker_testing 3.0.1 [leak_tracker matcher meta] - lints 3.0.0 - logging 1.2.0 - logging_appenders 1.3.1 [meta logging dio intl clock] - markdown 7.2.2 [args meta] - matcher 0.12.16+1 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.8.0 [collection] - meta 1.12.0 - mime 1.0.5 - nested 1.0.0 [flutter] - network_info_plus_platform_interface 1.1.3 [flutter meta plugin_platform_interface] - nm 0.5.0 [dbus] - nsd_android 2.0.0 [flutter] - nsd_ios 2.0.0 [flutter] - nsd_macos 2.0.0 [flutter] - nsd_platform_interface 2.0.0 [flutter plugin_platform_interface uuid provider collection] - nsd_windows 3.0.0 [flutter] - octo_image 2.1.0 [flutter] - package_config 2.1.0 [path] - package_info_plus_platform_interface 3.0.1 [flutter meta plugin_platform_interface] - path 1.9.0 - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.2.10 [flutter path_provider_platform_interface] - path_provider_foundation 2.4.0 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface] - path_provider_windows 2.3.0 [ffi flutter path path_provider_platform_interface] - pedantic 1.11.1 - permission_handler_android 12.0.12 [flutter permission_handler_platform_interface] - permission_handler_apple 9.4.5 [flutter permission_handler_platform_interface] - permission_handler_html 0.1.3+2 [flutter flutter_web_plugins permission_handler_platform_interface web] - permission_handler_platform_interface 4.2.2 [flutter meta plugin_platform_interface] - permission_handler_windows 0.2.1 [flutter permission_handler_platform_interface] - petitparser 6.0.2 [meta] - pixel_snap 0.1.5 [flutter] - platform 3.1.5 - platform_detect 2.1.0 [meta pub_semver] - plugin_platform_interface 2.1.8 [meta] - pool 1.5.1 [async stack_trace] - pub_semver 2.1.4 [collection meta] - pubspec_parse 1.3.0 [checked_yaml collection json_annotation pub_semver yaml] - qr 3.0.2 [meta] - rive_common 0.4.10 [collection ffi flutter flutter_web_plugins graphs http meta plugin_platform_interface web] - rxdart 0.27.7 - screen_retriever 0.1.9 [flutter] - sentry 7.20.2 [http meta stack_trace uuid] - share_handler_android 0.0.9 [flutter share_handler_platform_interface] - share_handler_ios 0.0.14 [flutter share_handler_platform_interface] - share_handler_platform_interface 0.0.6 [flutter plugin_platform_interface] - share_plus_platform_interface 3.4.0 [cross_file flutter meta mime plugin_platform_interface path_provider uuid] - shared_preferences 2.3.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shared_preferences_android 2.3.1 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.5.2 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.4.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.4.1 [flutter plugin_platform_interface] - shared_preferences_web 2.4.2 [flutter flutter_web_plugins shared_preferences_platform_interface web] - shared_preferences_windows 2.4.1 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - shelf_web_socket 2.0.0 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - source_gen 1.5.0 [analyzer async build dart_style glob path source_span yaml] - source_helper 1.3.4 [analyzer collection source_gen] - source_span 1.10.0 [collection path term_glyph] - sprintf 7.0.0 - sqflite 2.3.3+1 [flutter sqflite_common path] - sqflite_common 2.5.4 [synchronized path meta] - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - stream_transform 2.1.0 - string_scanner 1.2.0 [source_span] - synchronized 3.1.0+1 - term_glyph 1.2.1 - test_api 0.7.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - timing 1.0.1 [json_annotation] - typed_data 1.3.2 [collection] - url_launcher_android 6.3.9 [flutter url_launcher_platform_interface] - url_launcher_ios 6.3.1 [flutter url_launcher_platform_interface] - url_launcher_linux 3.2.0 [flutter url_launcher_platform_interface] - url_launcher_macos 3.2.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface] - url_launcher_web 2.3.3 [flutter flutter_web_plugins url_launcher_platform_interface web] - url_launcher_windows 3.1.2 [flutter url_launcher_platform_interface] - vector_graphics 1.1.10+1 [flutter vector_graphics_codec] - vector_graphics_codec 1.1.10+1 - vector_graphics_compiler 1.1.10+1 [args meta path_parsing xml vector_graphics_codec path] - vector_math 2.1.4 - vm_service 14.2.1 - watcher 1.1.0 [async path] - web 0.5.1 - web_socket 0.1.6 [web] - web_socket_channel 3.0.1 [async crypto stream_channel web web_socket] - webrtc_interface 1.2.0 - win32 5.5.4 [ffi] - win32_registry 1.1.4 [ffi win32] - xdg_directories 1.0.4 [meta path] - xml 6.5.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] ```
Additional context and comments
No response