Hasura integrations. Claims key not found
I'm really struggling getting Hasura up and running with my Kinde application.
I can't see how I can get he hasura claims under claims key under the key https://hasura.io/jwt/claims
I am sending along an accesstoken that shows the x-hasura-* mappings without the parent key [https://hasura.io/jwt/claims]
2 Replies
So I solved this by mapping hasura claims on the hasura side. However, I am curious as to how the "hasura toggle" is supposed to work out of the box ?
Hey @digvalley.,
Good to hear you fixed your issue.
When you enable the enable the
Hasura mapping
toggle in the Token Customization of the Kinde Admin, a prefix of x-hasura-
is added to the name of many claims, e.g. the following claims have the prefix mentioned when this toggle is enabled:
- x-hasura-email
- x-hasura-external-org-id
- x-hasura-permissions
There are other claims that have this prefix too.
JWTs passed to Hasura require certain claims to have a prefix of x-hasura-
. So the Hasura mapping` toggle adds this prefix to certain claims.
Let me know if you have any further questions on this.Kinde docs
Token customization
Our developer tools provide everything you need to get started with Kinde.