Questions tagged [hasura-jwt]
15 questions
2
votes
1 answer
Resource does not exist error on hasura while github ci cd
I am trying to setup github ci cd with hasura...
I did everything as document said so, but since I am applying change locally on database, on cloud deployment it is saying table already exist while applying migration (which is logically…

AtiqGauri
- 1,483
- 13
- 26
2
votes
1 answer
How do you test out Hasura authorization?
If I disable x-hasura-admin-secret in the Dashboard, and add Authorization: Bearer a_jwt_encoded_with_a_HASURA_GRAPHQL_JWT_SECRET_and_the_hasura_custom_claims
Then I keep getting these toast notifications:
Schema introspection query…

corysimmons
- 7,296
- 4
- 57
- 65
1
vote
1 answer
How to pass header in hasura-session?
I am running a hasura project and I am using compute field in hasura.
How can I pass and get the header in the query?
There is already an open issue, but people are talking about a workaround as well but it didn't work out for me.
Here is…

Kunchok Tashi
- 21
- 2
1
vote
2 answers
Hasura Graphql JWT Issue
I have deployed my Hasura Engine which is running inside a docker in a Linux server.
And I have developed my jwt token auth code using nodeJs.
The problem is while adding the token to my Hasura API end point I am getting the below error:
{
…

eboi
- 131
- 6
1
vote
0 answers
custom roles in hasura using firebase auth and jwt
I am using firebase AUTH with cloud function the passes the JWT to the client, however there is no logic there of loading permissions since the user is not registerd yet, so he gets the x-hasura-default role.
However after I created the user than in…

Alon Goldberg
- 11
- 1
1
vote
0 answers
Hasura - Different Permission for different pages (in web application) on same table for same user / role
I'm new to Hasura & I'm exploring Permissions feature that comes with Hasura for authorization. We have a table named "devices" which contains device information like name, IP address, etc.
We have configured couple of additional roles named…

Jagadeesh Kumar Pandari
- 59
- 1
- 1
- 4
0
votes
1 answer
Hasura Auth Clarifications
I have 2 things which i would like to confirm before moving forward with the workaround i have in mind.
When using JWT Auth with HS256 algorithm, i have a key which is less than 32 characters in length. I'm getting this error - "Error in $: Invalid…

Elan cheziyan
- 1
- 1
- 1
0
votes
1 answer
Where are Hasura roles stored?
I want to create authentication apis in Hasura. My user can have differrent roles when signing up. Thinking of maintaining an Enum table for the same. So that I can have a foreign key/type from it in the user table. However, I intend to create a…

Rohit Bokade
- 25
- 2
0
votes
1 answer
having problem with graphql and magic api . how to apply mutations and queries on a server to create a schema
I have two GraphQL files: mutations.js and queries.js under a gql folder...
This folder contains GraphQL mutations and queries used across the app.
gql
mutations.js
queries.js
I set up the GraphQL endpoint, but i keep getting this…

Amine
- 21
- 1
- 2
0
votes
1 answer
How to map correctly to make `x-hasura-allowed-roles` field an array using claims_map in Hasura?
I have a JWT token which looks like
{
"aud": "xx",
"iss": "http://xx.com/adfs/services/trust",
"iat": 1649956864,
"exp": 1649960464,
"apptype": "xx",
"appid": "dcf6c0d8-7f3c-4904-a0c9-852c92c7624f",
"authmethod": "http://xx",
…

Hongbo Miao
- 45,290
- 60
- 174
- 267
0
votes
1 answer
Error when encoding and decoding jwt on next-auth
On next-auth when just using the callbacks object https://next-auth.js.org/configuration/callbacks everything works fine, I can log in with google. and a jwt gets correctly generated.
callbacks: {
async jwt({ token }) {
…

Israel Ortiz Cortés
- 478
- 1
- 4
- 13
0
votes
1 answer
Creating new roles Using Hasura meatadat API
I am new to Hasura metadata API, Are there any REST API options to create roles via REST API. I am not asking about inherited roles. inherited roles don't meet my requirements.

Nishad Ceroen
- 25
- 4
0
votes
0 answers
Hasura crashed while going through the tutorial
I was going through the Hasura tutorial at the following site, and for some reason "Hasura Console" crashed.
https://auth0.com/blog/building-a-collaborative-todo-app-with-realtime-graphql-using-hasura
The timing of the crash is not clear, but I…

Toto
- 1
- 1
0
votes
2 answers
Hasura object permission based authorization
I am trying to set a "Row Select" permissions on Hasura. I have a (simplified for brevity) Data Model like below
User
id: UserID
App
id: AppID
App Permissions
user_id: User ID
app_id: App ID
permissions: [ ENUM: Admin, View, Owner ]
Feed
app_id:…

Abhishek
- 2,543
- 4
- 34
- 46
0
votes
2 answers
Issue configuring JWT secret with claims_map in Hasura Docker compose
I am trying to set claims_map in HASURA_GRAPHQL_JWT_SECRET in my docker compose file
using the below config
HASURA_GRAPHQL_JWT_SECRET:…

Rolwin Crasta
- 4,219
- 3
- 35
- 45