[PR #2125] [MERGED] Add an authorization tab for GraphQL #3638

Closed
opened 2026-03-17 01:14:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2125
Author: @liyasthomas
Created: 2/20/2022
Status: Merged
Merged: 3/14/2022
Merged by: @AndrewBastin

Base: mainHead: main


📝 Commits (10+)

  • f9b55bb chore(deps): bump
  • c5337a0 feat: added auth in gql request type
  • 4df6369 feat: added auth on ui
  • f0a7b13 feat: added auth to header in request
  • cf6fd8f Merge branch 'hoppscotch:main' into main
  • 7c329b4 feat: history event 500 error rectified
  • ac81fa7 feat: added auth in gql request type
  • 2d8c2fe feat: added auth on ui
  • 19e3072 feat: added auth to header in request
  • 12122df chore(deps): bump

📊 Changes

12 files changed (+491 additions, -29 deletions)

View changed files

📝 packages/hoppscotch-app/components/collections/graphql/Request.vue (+11 -7)
packages/hoppscotch-app/components/graphql/Authorization.vue (+322 -0)
📝 packages/hoppscotch-app/components/graphql/RequestOptions.vue (+15 -1)
📝 packages/hoppscotch-app/components/graphql/Sidebar.vue (+5 -0)
📝 packages/hoppscotch-app/components/history/graphql/Card.vue (+11 -7)
📝 packages/hoppscotch-app/helpers/GQLConnection.ts (+28 -4)
📝 packages/hoppscotch-app/newstore/GQLSession.ts (+32 -1)
📝 packages/hoppscotch-app/newstore/history.ts (+5 -2)
📝 packages/hoppscotch-data/package.json (+1 -1)
📝 packages/hoppscotch-data/src/collection/index.ts (+2 -2)
packages/hoppscotch-data/src/graphql/HoppGQLAuth.ts (+43 -0)
📝 packages/hoppscotch-data/src/graphql/index.ts (+16 -4)

📄 Description

Closes #2019

Description

PR which introduces the functionality of authorization under graphQL section.

Task breakdown

  • Update HoppGQLRequest under hoppscotch-data package
  • Update UI to display Authorization tab
  • Link selections to state variables
  • Add selected authorization method in headers
  • Refactor other parts of the code which depends on updated code
  • Test the application and ensure functional correctness
  • Add query param support for api-key

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

This is a WIP and might have been updated since last visit.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2125 **Author:** [@liyasthomas](https://github.com/liyasthomas) **Created:** 2/20/2022 **Status:** ✅ Merged **Merged:** 3/14/2022 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`f9b55bb`](https://github.com/hoppscotch/hoppscotch/commit/f9b55bb4f3c363371c1f4a21e505574c27314433) chore(deps): bump - [`c5337a0`](https://github.com/hoppscotch/hoppscotch/commit/c5337a0a4607efacb698ecf442ec99fdc629b372) feat: added auth in gql request type - [`4df6369`](https://github.com/hoppscotch/hoppscotch/commit/4df6369fa561fa7162d96962501a7d1cc82bdaa1) feat: added auth on ui - [`f0a7b13`](https://github.com/hoppscotch/hoppscotch/commit/f0a7b135236f4150ef0502ef747b5185d0317d26) feat: added auth to header in request - [`cf6fd8f`](https://github.com/hoppscotch/hoppscotch/commit/cf6fd8fb264f611638f923641bf8693c2b2563d8) Merge branch 'hoppscotch:main' into main - [`7c329b4`](https://github.com/hoppscotch/hoppscotch/commit/7c329b49a8a4e41a5222fa42f49005ebd156c819) feat: history event 500 error rectified - [`ac81fa7`](https://github.com/hoppscotch/hoppscotch/commit/ac81fa75be9f9593b78b7ebdf6ee301b378a895d) feat: added auth in gql request type - [`2d8c2fe`](https://github.com/hoppscotch/hoppscotch/commit/2d8c2fe7df695dd34f5e328149ab1f1844668298) feat: added auth on ui - [`19e3072`](https://github.com/hoppscotch/hoppscotch/commit/19e30723c9c7b6c278628c13cb9c052544e9632e) feat: added auth to header in request - [`12122df`](https://github.com/hoppscotch/hoppscotch/commit/12122df6f049ccaf486c02be3dc6fceec6dc9c47) chore(deps): bump ### 📊 Changes **12 files changed** (+491 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/components/collections/graphql/Request.vue` (+11 -7) ➕ `packages/hoppscotch-app/components/graphql/Authorization.vue` (+322 -0) 📝 `packages/hoppscotch-app/components/graphql/RequestOptions.vue` (+15 -1) 📝 `packages/hoppscotch-app/components/graphql/Sidebar.vue` (+5 -0) 📝 `packages/hoppscotch-app/components/history/graphql/Card.vue` (+11 -7) 📝 `packages/hoppscotch-app/helpers/GQLConnection.ts` (+28 -4) 📝 `packages/hoppscotch-app/newstore/GQLSession.ts` (+32 -1) 📝 `packages/hoppscotch-app/newstore/history.ts` (+5 -2) 📝 `packages/hoppscotch-data/package.json` (+1 -1) 📝 `packages/hoppscotch-data/src/collection/index.ts` (+2 -2) ➕ `packages/hoppscotch-data/src/graphql/HoppGQLAuth.ts` (+43 -0) 📝 `packages/hoppscotch-data/src/graphql/index.ts` (+16 -4) </details> ### 📄 Description Closes #2019 ### Description <!-- Add a brief description of the pull request --> PR which introduces the functionality of authorization under graphQL section. Task breakdown - [x] Update HoppGQLRequest under hoppscotch-data package - [x] Update UI to display Authorization tab - [x] Link selections to state variables - [x] Add selected authorization method in headers - [x] Refactor other parts of the code which depends on updated code - [x] Test the application and ensure functional correctness - [x] Add query param support for api-key ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behavior, etc. --> This is a WIP and might have been updated since last visit. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:14:07 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#3638
No description provided.