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): Validate audience in authorization JWT and change Dgraph.Authorization format. #5980

Merged
merged 1 commit into from
Jul 14, 2020

Conversation

arijitAD
Copy link

@arijitAD arijitAD commented Jul 14, 2020

Fixes GRAPHQL-565(Release-blocker)

  1. Upgrades jwt-go to v4 to support multiple aud claims in JWT
  2. Makes JWT token expiry field option in GraphQL.
  3. Changes Dgraph.Authorization format.

The updated Dgraph.Authorization format is as follows:
# Dgraph.Authorization {"VerificationKey":"secretkey","Header":"X-Test-Auth","Namespace":"https://xyz.io/jwt/claims","Algo":"HS256"}

Co-authored-by: David Peek [email protected]
(cherry picked from commit 5d789f0)


This change is Reviewable

Docs Preview: Dgraph Preview

…aph.Authorization` format. (#5927)

1. Upgrades jwt-go to v4 to support multiple aud claims in JWT
2. Makes JWT token expiry field option in GraphQL.
3. Changes Dgraph.Authorization format.

Co-authored-by: David Peek <[email protected]>
(cherry picked from commit 5d789f0)
@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Jul 14, 2020
@parasssh parasssh merged commit 340dd8f into release/v20.07 Jul 14, 2020
@arijitAD arijitAD deleted the arijitAD/20.07_JWT-aud-claims branch July 14, 2020 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/graphql Issues related to GraphQL support on Dgraph.
Development

Successfully merging this pull request may close these issues.

2 participants