Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support user info variables as lists to be used in permissions #1333

Closed
ecthiender opened this issue Jan 7, 2019 · 3 comments
Closed

support user info variables as lists to be used in permissions #1333

ecthiender opened this issue Jan 7, 2019 · 3 comments
Labels
c/server Related to server k/enhancement New feature or improve an existing feature

Comments

@ecthiender
Copy link
Member

Right now the user info variables (as headers, from JWT claims or from webhook response) are converted into map of strings to strings. Support should be added for lists as well. Then in the permission system _in can be used with session variables.

See #1314

@lanex-victor
Copy link

Definitely looking forward for this to be added. Hope sooner..

@pilattebe
Copy link

For string columns you can send "X-Hasura-Variable":(${IdArray.join("|")})
Then restrict

{
    id: _similar: "X-Hasura-Variable"
}

It is a REGEX-like. id1 will match (id1|id2|id3) but not id4
Only works for strings tho.

@0x777
Copy link
Member

0x777 commented Jul 10, 2019

added in f1cf6d0. See #2475

@0x777 0x777 closed this as completed Jul 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/server Related to server k/enhancement New feature or improve an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants