-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[cloud_firestore] Cloud Firestore for WEB throwing FirebaseError: Missing or insufficient permissions. (permission-denied) #3095
Comments
@eduardothiesen given that the error it would be useful to provide some information about:
|
@kroikie sorry about that. Below you can see the request and the rules:
I also tried with these rules:
Both rules work for iOS and Android but not for Web. Regards, |
Thanks for the update, you mentioned
So even with setting read to |
@kroikie Actually I just tested again with this rule:
And it worked. I'm sorry for the misinformation! For example if I log in with the email: [email protected] and run this code:
The output will be:
and If I log with a different email, lets say [email protected] the output would be
Different email for the FirebaseUser object but still same uid. OBS: I use the firebase user id to map the id of the user in the database. Thanks in advance. |
I agree, this does look like an Auth issue. How are you switching users, signing out then back in? |
As I was not able to access the system, I just killed the process in Android Studio and cleared all the chrome data. I tested it now by logging out but the problem persists. my logout code:
|
@eduardothiesen thanks for sharing that. Could you confirm that you are signing in with different credentials and getting the same user ID: |
@kroikie Yes, I have several accounts with different credentials and logging with all of them returns the same firebase user id. I also tried creating a new one but it still returns the same id.
|
It looks like I can confirm it is in the update we are working on so this should be available very soon. |
@kroikie Great. Thanks for the help! |
Hey 👋 Our rework of the For help migrating to the new plugins please see the new migration guide: https://firebase.flutter.dev/docs/migration |
Describe the bug
I'm unable to access the Cloud Firestore database on Web (it works perfectly on Android and iOS) and used to work in previous versions on web too.
I tried in channels Dev and Beta, and tested using specific version in the beta channel 1.15.17
I also tried modifying the permissions on Cloud Firestore Rules directly (accepting all requests) but it did not work.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Request returns the data
Additional context
My pubspec.yaml (Using cloud_firestore bellow 0.13 keeps loading firestore requests forever)
Index.html
Flutter doctor
Run
flutter doctor
and paste the output below:Thanks in advance.
The text was updated successfully, but these errors were encountered: