-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
c/serverRelated to serverRelated to serversupport/needs-triageNeeds to be triaged so that we have enough information to add this to our backlogNeeds to be triaged so that we have enough information to add this to our backlog
Description
In my Postgres DB, I have some tables where I have specified some default inserts based on passed in JWT token claims. This was from using a different solution..but utlimately, in Postgres, I could specify the variable using this format for example. I could place this in the default value, such that upon insert, it would use the logged in users "userid" value.
(current_setting('request.jwt.claims.userid'::text, true))::integer
Does Hasura pass the JWT claims to Postgres like this? I tried the above, but nothing was recognized so I'm wondering if you don't pass them or if you use a different format.
ozum and Gintaszjbaileyashe, filipjnc, coco98, ozum and Gintasz
Metadata
Metadata
Assignees
Labels
c/serverRelated to serverRelated to serversupport/needs-triageNeeds to be triaged so that we have enough information to add this to our backlogNeeds to be triaged so that we have enough information to add this to our backlog