Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(GraphQL): add support for all RSA and HMAC algorithms supported … #6750

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

dan-j
Copy link
Contributor

@dan-j dan-j commented Oct 17, 2020

…by github.com/dgrijalva/jwt-go/v4

Signed-off-by: dan-j [email protected]

Posted to discuss: https://discuss.dgraph.io/t/graphql-support-more-jwt-algorithms/10999

The GraphQL JWT authorisation feature only supported HS256 and RS256 when the underlying library dealing with JWTs (github.com/dgrijalva/jwt-go/v4) supports many more.

This PR adds support for all HMAC and RSA signing keys. I have purposefully left out the other algorithms since I don't know much about them and whether they need treating differently when it comes to keys etc.


This change is Reviewable

@CLAassistant
Copy link

CLAassistant commented Oct 17, 2020

CLA assistant check
All committers have signed the CLA.

@dan-j dan-j force-pushed the jwt-algorithms branch 2 times, most recently from 741d35d to 3f4c972 Compare October 17, 2020 10:30
…by github.com/dgrijalva/jwt-go/v4

Signed-off-by: dan-j <[email protected]>
Copy link
Contributor

@pawanrawal pawanrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for these changes @dan-j!

@pawanrawal pawanrawal merged commit f74f202 into hypermodeinc:master Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants