Ability to force security context filter #471
Unanswered
jessedobbelaere
asked this question in
Q&A
Replies: 1 comment 2 replies
-
|
This is an interesting concept; I like it and see it's worth. I will keep this in mind as a new feature to implement! My gut says an implementation could be the following:
|
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.
-
Is it possible to set a security context that is injected on each query that executes, so it's always setting or filtering on an attribute? For example, I have a multi-tenant setup where we always need to filter on the
tenantIdkey.In OneTable this is supported via
setContextfunction, see here. I'm searching for similar functionality in Electrodb? Or perhaps some way to hook into the attributes (in a central place) before a query is executed?Beta Was this translation helpful? Give feedback.
All reactions