advice for multi tenant single SaaS app.
-
Dear all.
We are building an application based on Fusionauth, Hasura, Nextjs and cloudflare stream. The platform is a Netflix like streaming platform for fashion media. It's built by students for students and aims to be the largest online fashion archive.
In our content management application ( this is fashion studio) currently only This Is Fashion administrators are able to upload content. But we are looking to change this and make our app multi tenant compatible.
In our case we want organizations to be able to manage their brands, and other content. An organization has owners and editors. in turn an organization will be the owner of a content item. These users should be the normal this is fashion user accounts.
We have been reading and reading but are unable to figure out what the best approach is to do this.
- organization owner invites other this is fashion users as editors.
- a user can be a editor/owner of multiple organizations
- a user needs to be able to switch organizations.
- active organization needs to be in the JWT for authentication ( this is what Hasura uses for rights )
I hope someone can point us in the right direction.
-
I guess this has more to do with Hasura's authorization system than FusionAuth authentication. However, as for FusionAuth, I think you can use Groups to model organizations and then populate your access token with claims based on the actual memberships your users have. You can additionally model roles with FusionAuth, but if you need to switch back and forth between them, you'd probably want to model those relationship in your database.
-
I think we can close this one as we are picking it up in https://fusionauth.io/community/forum/topic/1011/fusionauth-nextauth-refresh-tokens/5
-
This post is deleted! -
This post is deleted!