Hello,
I am trying to access my firestore DB from a java *client* application. In fact, it is an unsupervised device (think IOT) . It seems that the only official java library that uses firestore auth is the Admin SDK but in this case I can't use that since the device is not under my control + I can't have all the devices authenticate using a single service account.
I considered using a service account per device but google limits the number of service accounts to 100, according to documentation + this would use GCP IAM authorization instead of firebase's finer-grained rules.
I found this java firestore client library:
but again, it seems to me that it uses service accounts for authentication. Right?
What I'm planning now for the unsupervised authentication is to use custom tokens and to communicate with firestore via REST using the firebase ID token derived from the custom token.
So this left me with some questions
1) is there a firestore java client (non-admin) library that exists that can use custom tokens to authenticate to firebase auth?
2) if I use gRPC, will it use IAM authentication or firebase auth? if the latter, can I use custom tokens like all the other client libraries?
3) is there a sample project that uses firestore via gRPC? i couldn't fine one and have no idea how to use it. Especially the authentication part
Thank you