mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3136] [MERGED] fix: graphql authorization headers #4243
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4243
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3136
Author: @anwarulislam
Created: 6/13/2023
Status: ✅ Merged
Merged: 6/22/2023
Merged by: @AndrewBastin
Base:
release/2023.4.7← Head:fix/gql-authorization-headers📝 Commits (3)
ae8a448fix: graphql authorization headers872eaa5fix: auth object updating issuec94ffd0feat: added persistence for gql📊 Changes
8 files changed (+105 additions, -27 deletions)
View changed files
📝
packages/hoppscotch-common/src/components.d.ts(+1 -0)📝
packages/hoppscotch-common/src/components/graphql/Authorization.vue(+22 -4)📝
packages/hoppscotch-common/src/components/graphql/Request.vue(+13 -2)📝
packages/hoppscotch-common/src/components/smart/EnvInput.vue(+3 -1)📝
packages/hoppscotch-common/src/helpers/GQLConnection.ts(+38 -6)📝
packages/hoppscotch-common/src/newstore/GQLSession.ts(+1 -4)📝
packages/hoppscotch-common/src/newstore/localpersistence.ts(+25 -0)📝
packages/hoppscotch-common/src/pages/graphql.vue(+2 -10)📄 Description
Closes #3135
🤖 Generated by Copilot at 2091437
Summary
This pull request fixes the Authorization config not being added to headers in GraphQL. And it removes environment highlights on Authorization field on GraphQL as env support doesn't yet have in GQL
Walkthrough
environmentHighlightsprop toSmartEnvInputcomponent to control environment variable highlighting (link, link, link, link, link, link, link)gqlAuth$stream fromGQLSessionstore to get authentication information for GraphQL request inRequest.vue(link, link)authvariable toconnectandgetSchemamethods ofGQLConnectionclass inRequest.vueandGQLConnection.tsto send authentication information along with URL and headers when connecting to GraphQL endpoint (link, link, link, link)getSchemamethod ofGQLConnectionclass inGQLConnection.ts(link)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.