carverauto / threadr

🌎 OSS Real-time AI Data Analysis with GraphDB integration. 🔍
Apache License 2.0
16 stars 1 forks source link

New tenant #102

Open mfreeman451 opened 2 months ago

mfreeman451 commented 2 months ago

https://cloud.google.com/identity-platform/docs/multi-tenancy-managing-tenants

Our WebUI login flow needs to set/look for a cookie containing the tenantID so we dont burded the user too much on login with a 3rd field.

Example firestore structure:

/tenants/{tenantId}
    /metadata { name, createdBy, ... }
    /members
        /{userId} { role, joinedDate, ... }