Ad

Using Firebase Cloud Firestore With Custom Authentication Security (without Firebase Authentication)

- 1 answer

I want to use Cloud Firestore (Firebase DB) without using Firebase Authentication service.

I want to authenticate user from my Java code with my own implementation and then allow access to the Firestore database to valid users.

Is it possible to use Firebase Cloud Firestore DB by implementing our own authentication mechanism?

Ad

Answer

As Alex answered: you will need to use Firebase Authentication to be able to properly secure access to your database.

But you can use your own identity provider with Firebase Authentication. That way your own Java code can handle the sign in, and then mint a token for Firebase to use to identify that user, and to secure data access with. For more in this see the documentation on custom authentication.

Ad
source: stackoverflow.com
Ad