Check permissions of multiple stores in one request #520
Unanswered
HeneryHawk
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
Hello @HeneryHawk, conceptually the authorization model in OpenFGA is store-centric. Therefore, a single check request cannot be spanned across multiple stores. This is inherent to the current design. Although, what you can do, is design a model that has separate applications defined across "modules". Take a look at the Modular Models feature. From what you described as your requirements, Modular Models should be able to meet your use case. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thank you very much for OpenFGA and this great tool.
We operate several multi-tenant SaaS apps and would like to offer OpenFGA as a platform service to all applications for implementing authorization. We thought that each application should have its own store where the permissions for that application are managed in order to logically separate the application data. There should also be a platform store where basic permissions are maintained, including the assignment of a super admin permission.
At runtime, we would then like to check whether a user has a permission or is a super admin.
Is this possible, since these two pieces of information are stored in different stores (application store & platform store)?
We have implemented our own SDK that abstracts OpenFGA and actually always performs bulk checks. A bulk check because the actual application permission is checked and the super admin permission, and if one of the two checks is successful, access is granted.
The fallback would be to move all permissions to the same store and not separate the applications.
Thanks for the support
Beta Was this translation helpful? Give feedback.
All reactions