GraphQL support more JWT algorithms

At the moment, it seems that the DGraph GraphQL API only supports HMAC256 and RSA256. I am using an issuer which is using RSA512 which prevents me from using DGraph.

There should be no issues adding support for this, I propose we support all algorithms which are supported by the github.com/dgrijalva/jwt-go/v4 module.

  • RS256
  • RS384
  • RS512
  • HS256
  • HS384
  • HS512

Willing to create a pull request on this if nobody objects.

Thanks!

2 Likes

Hi @dan-j,

Thanks for pointing this out.
Dgraph being an open source database, willingly accepts community contributions. You may go ahead and create a pull request for this feature.

Do post in this thread when you create a pull request to get it reviewed.

Here are our Community Contribution guidelines.