How to set session variables if using Auth0 #7246
-
My users have different states, and I only want them to have select access to their states. I want to add a session variable like: X-Hasura-Allowed-States: ["NY", "CA", "WA"] And then in my permission expression: { I'm using Auth0 as my authentication service. I can't seem to find any tutorials on how to set X-Hasura-Allowed-States per user. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Auth0 has rules which lets you configure the custom claims for JWT. Here's one example of how to set it up. You can add in any number of custom |
Beta Was this translation helpful? Give feedback.
Auth0 has rules which lets you configure the custom claims for JWT. Here's one example of how to set it up. You can add in any number of custom
x-hasura-*
session variables inside that.