Skip to content

slashes not supported at jwt location key #10741

Open
@bbetters

Description

@bbetters

Component

What is the current behaviour?

I need to share the same token from hasura v2 that has this key https://hasura.io/jwt/claims but it wont work and i tryied to find out why.
at auth-config.html im providing the following:
jwt:
claimsConfig:
namespace:
claimsFormat: Json
location: /claims.jwt.hasura.io and it works unless i add another / like /claims.jwt.hasura.io/test
https://hasura.io/jwt/claims doesnt work as well for the same reason i suspect

What is the expected behaviour?

{
"errors": [
{
"status": 500,
"message": "The GraphQL URL responded with a non-200 status code.",
"details": {
"data": null,
"errors": [
{
"message": "Internal Error - Hasura claims not found in the JWT at /claims.jwt.hasura.io/test"
}
]
}
}
]
}

How to reproduce the issue?

  1. set the namespace location at auth-config.html to contain a slash like this /claims.jwt.hasura.io/test
  2. Generate a token with this key and use it in the console

Any possible solutions/workarounds you're aware of?

Workaround is to change the key in hasura v2 if possible but it may break my existing project

Metadata

Metadata

Assignees

No one assigned

    Labels

    k/v3-bugBug affecting Hasura v3 (DDN)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions