Skip to content
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

No authenticated users in Firebase Console #62

Open
netotz opened this issue Sep 3, 2020 · 0 comments
Open

No authenticated users in Firebase Console #62

netotz opened this issue Sep 3, 2020 · 0 comments

Comments

@netotz
Copy link

netotz commented Sep 3, 2020

I've succesfully implemented Google sign-in thanks to this NuGet. The problem is when I want to modify the Firebase project rules so only authenticated users can access to the Cloud Firestore database. In my Firebase console appears that the project doesn't have any user:

imagen

But in the app I'm using my Google account with no problem:

imagen

How can I authenticate Google signed-in accounts so they can appear in Users, so I can modify the rules of the Cloud Firestore? These are my Firebase rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
        allow read, write: if request.auth != null
    }
  }
}

Immediately after I sign in with Google, I get Plugin.CloudFirestore.CloudFirestoreException: 'PERMISSION_DENIED: Missing or insufficient permissions.'.

However, if I set the rules to be just true, I can use my Google account with no problems, but for what the exception states, it isn't authenticated (?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants