How to handle permissions serverless funtion #4100
Unanswered
shansmith01
asked this question in
General
Replies: 3 comments
-
Use custom headers sent to hasura. Forward other headers to hasura if you going to them for permission checks
row select permissions
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for getting back to me. I tried number 2, but It still seems to want me to use the admin secret or send a JWT along with and Authorization Header as I am in JWT mode Any thoughts? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@shansmith01 There are 3 ways for you to get past the auth system once its set up:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am setting up a cron job to hit a nextjs api route which in turn triggers a mutation in hassura. I would like to put some sort of authentication on this, say via an API key.
My cron system can set headers, is it possible to say have an api key sent along in the header and having a permission set up say "Admin API" can make mutations
Sorry if that's no very clear. Just want to protect and old jo hitting my api routes
Thanks. Love your work
Beta Was this translation helpful? Give feedback.
All reactions