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

fix(GraphQL): Fix auth-token propagation for HTTP endpoints resolved through GraphQL (GRAPHQL-946) #7245

Merged
merged 2 commits into from
Jan 5, 2021

Conversation

abhimanyusinghgaur
Copy link
Contributor

@abhimanyusinghgaur abhimanyusinghgaur commented Jan 5, 2021

Fixes Discuss Issue.


This change is Reviewable

@github-actions github-actions bot added the area/graphql Issues related to GraphQL support on Dgraph. label Jan 5, 2021
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.

Reviewable status: 0 of 2 files reviewed, 1 unresolved discussion (waiting on @abhimanyusinghgaur, @manishrjain, @MichaelJCompton, @pawanrawal, and @vvbalaji-dgraph)


graphql/e2e/admin_auth/poorman_auth/admin_auth_test.go, line 93 at r1 (raw file):

	resp, err := (&http.Client{}).Do(req)
	require.NoError(t, err)
	b, err := ioutil.ReadAll(resp.Body)
defer resp.Body.Close()

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.

Also, cherry-pick into 20.11 and 20.07

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @abhimanyusinghgaur, @manishrjain, @MichaelJCompton, and @vvbalaji-dgraph)

@abhimanyusinghgaur abhimanyusinghgaur merged commit 146c4f1 into master Jan 5, 2021
@abhimanyusinghgaur abhimanyusinghgaur deleted the abhimanyu/poor-man-http branch January 5, 2021 12:08
abhimanyusinghgaur added a commit that referenced this pull request Jan 6, 2021
abhimanyusinghgaur added a commit that referenced this pull request Jan 6, 2021
…through GraphQL (GRAPHQL-946) (#7245)

Fixes [Discuss Issue](https://discuss.dgraph.io/t/alpha-problems-with-auth-token/12136).

(cherry picked from commit 146c4f1)

# Conflicts:
#	graphql/e2e/admin_auth/poorman_auth/admin_auth_test.go
abhimanyusinghgaur added a commit that referenced this pull request Jan 7, 2021
abhimanyusinghgaur added a commit that referenced this pull request Jan 7, 2021
…through GraphQL (GRAPHQL-946) (#7245) (#7252)

Fixes [Discuss Issue](https://discuss.dgraph.io/t/alpha-problems-with-auth-token/12136).

(cherry picked from commit 146c4f1)

# Conflicts:
#	graphql/e2e/admin_auth/poorman_auth/admin_auth_test.go
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