mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3531] [MERGED] fix: Oauth 2.0 authentication type is breaking #4422
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#4422
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/3531
Author: @amk-dev
Created: 11/10/2023
Status: ✅ Merged
Merged: 11/13/2023
Merged by: @AndrewBastin
Base:
release/2023.8.4← Head:feat/oauth-revamp📝 Commits (2)
514fb3cchore: rename oauth.js to oauth.tscffcac8fix: oauth basic improvements📊 Changes
6 files changed (+186 additions, -94 deletions)
View changed files
📝
packages/hoppscotch-common/package.json(+1 -1)📝
packages/hoppscotch-common/src/components/http/OAuth2Authorization.vue(+6 -1)📝
packages/hoppscotch-common/src/helpers/oauth.ts(+124 -56)📝
packages/hoppscotch-common/src/pages/index.vue(+1 -25)➕
packages/hoppscotch-common/src/pages/oauth.vue(+43 -0)📝
pnpm-lock.yaml(+11 -11)📄 Description
Before
Currently authentication type Oauth is breaking when trying to generate token. The breakage is caused by an incorrect destructuring we do when extracting info from OIDC discovery URL.
After
Added necessery validations when parsing OIDC discovery URL content.
Since we haven't touched the oauth code in a long time. I've done some quick improvements to the code.
oauth.jsto typescriptindex.vueto a seperate pageoauth.vue🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.