Skip to content
Discussion options

You must be logged in to vote

Hello,

Thanks for asking. You can visit this blog by hasura on authorization with examples - https://hasura.io/blog/hasura-authorization-system-through-examples/

As it goes, the basic setup for authorization is to have a base auth webhook through which all your API calls would be traversed.

  1. Configure auth webhook
    This auth webhook will act as a middleware between your client and Hasura. It will not be exposed to public and hence you can create your auth business logic in that webhook. For more - https://hasura.io/docs/latest/auth/authentication/webhook/

In order to make auth webhook work, you'll need to avoid passing x-hasura-admin-secret (admin secret env var ) directly from your clien…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adas98012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants