-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
a/authnIssues related to "authentication" and capturing session claims from an API callIssues related to "authentication" and capturing session claims from an API callc/serverRelated to serverRelated to serverc/v3-engineV3 Metadata and EngineV3 Metadata and Enginek/ideasDiscuss new ideas / pre-proposals / roadmapDiscuss new ideas / pre-proposals / roadmapp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprintp/mediumnon-urgent issues/features that are candidates for being included in one of the upcoming sprintsnon-urgent issues/features that are candidates for being included in one of the upcoming sprintss/triagedThis has been reviewed by HasuraThis has been reviewed by Hasurav3
Description
I would like the ability to check values in the JWT against set values (strings, booleans etc)
For example if the user's token contains 'allow_write:true` I would like to be able to check for this, rather than having to traverse the database to find the users permissions.
This will reduce the DB overhead of the security rules as it would not be necessary to retrieve data from any tables other than the one being updated (providing the user_id is on the table being updated).
There's some more detail on this towards the end of this blog post https://dev.to/lineup-ninja/modelling-teams-and-user-security-with-hasura-204i
This is just a nice to have, particularly for any users migrating from Firebase.
tlebeitsuk, evert-smit, 0x777, howesteve, denizkenan and 24 more
Metadata
Metadata
Labels
a/authnIssues related to "authentication" and capturing session claims from an API callIssues related to "authentication" and capturing session claims from an API callc/serverRelated to serverRelated to serverc/v3-engineV3 Metadata and EngineV3 Metadata and Enginek/ideasDiscuss new ideas / pre-proposals / roadmapDiscuss new ideas / pre-proposals / roadmapp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprintp/mediumnon-urgent issues/features that are candidates for being included in one of the upcoming sprintsnon-urgent issues/features that are candidates for being included in one of the upcoming sprintss/triagedThis has been reviewed by HasuraThis has been reviewed by Hasurav3