You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it strictly required to send all session variables, that are used in row permissions?
I am having problems with this:
session variable might contain a list of features, the user has access to, but it doesn't have to! {"feature":{"name":{"_in":"x-hasura-allowed-features"}}} (my actual rule is a bit more complex with an _or, to check for other things as well)
now, if the x-hasura-allowed-features isn't present, I get an error response saying "missing session variable: \"x-hasura-allowed-features\""
Is there any way to allow for missing session variables and check for null in the row permission setting?
I know, I could pass an empty list in my session variable; but I have some dynamically generated session variables as outcome of my authN webhook and the webhook doesn't know, what session variable could be expected (otherwise, I could add empty session variables).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Is it strictly required to send all session variables, that are used in row permissions?
I am having problems with this:
{"feature":{"name":{"_in":"x-hasura-allowed-features"}}}(my actual rule is a bit more complex with an _or, to check for other things as well)x-hasura-allowed-featuresisn't present, I get an error response saying"missing session variable: \"x-hasura-allowed-features\""Is there any way to allow for missing session variables and check for null in the row permission setting?
I know, I could pass an empty list in my session variable; but I have some dynamically generated session variables as outcome of my authN webhook and the webhook doesn't know, what session variable could be expected (otherwise, I could add empty session variables).
Beta Was this translation helpful? Give feedback.
All reactions