Users should be able to login through the portal, get an authentication token behind the scenes, the token is then used to authenticate requests to the API for batch and streaming.
The firebase identity platform built-in multi-tenant stuff requires users setup completely new authentication providers for google, github, their own stuff, etc. Until a customer asks us to provide this, we are going to hold off on implementing it. Until then we will have our own concept of tenants, stored in a table in firestore, and pinned to a user using custom claims.
Users should be able to login through the portal, get an authentication token behind the scenes, the token is then used to authenticate requests to the API for batch and streaming.
https://cloud.google.com/identity-platform/docs/multi-tenancy-managing-tenants
Edit:
The firebase identity platform built-in multi-tenant stuff requires users setup completely new authentication providers for google, github, their own stuff, etc. Until a customer asks us to provide this, we are going to hold off on implementing it. Until then we will have our own concept of tenants, stored in a table in firestore, and pinned to a user using custom claims.