mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #4339] [MERGED] feat: add support for Digest authorization #4759
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#4759
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/4339
Author: @anwarulislam
Created: 9/11/2024
Status: ✅ Merged
Merged: 10/29/2024
Merged by: @jamesgeorge007
Base:
next← Head:feat/digest-auth📝 Commits (10+)
6efa54afeat: digest auth added to new schema96bbc7fchore: schema update59a65befeat: digest auth added0ec64e7feat: digest auth advanced optionsa9de371chore: clean ui835e0b5chore: digest auth addedbfe209cfeat: digest auth method testing5db4e37feat: digest md5 responsee342dbbchore: clean up3c5ad34chore: clean up📊 Changes
29 files changed (+964 additions, -49 deletions)
View changed files
📝
packages/hoppscotch-cli/package.json(+1 -0)📝
packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts(+19 -13)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/digest-auth-coll.json(+43 -0)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/digest-auth-failure-coll.json(+43 -0)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/digest-auth-success-coll.json(+43 -0)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/digest-auth-envs.json(+21 -0)➕
packages/hoppscotch-cli/src/utils/auth/digest.ts(+139 -0)📝
packages/hoppscotch-cli/src/utils/pre-request.ts(+45 -0)📝
packages/hoppscotch-cli/src/utils/request.ts(+1 -0)📝
packages/hoppscotch-common/locales/en.json(+14 -3)📝
packages/hoppscotch-common/package.json(+1 -0)📝
packages/hoppscotch-common/src/components.d.ts(+1 -0)📝
packages/hoppscotch-common/src/components/app/spotlight/Entry.vue(+5 -4)📝
packages/hoppscotch-common/src/components/graphql/Authorization.vue(+24 -9)📝
packages/hoppscotch-common/src/components/graphql/Headers.vue(+2 -1)📝
packages/hoppscotch-common/src/components/http/Authorization.vue(+48 -7)📝
packages/hoppscotch-common/src/components/http/authorization/AWSSign.vue(+3 -3)➕
packages/hoppscotch-common/src/components/http/authorization/Digest.vue(+172 -0)📝
packages/hoppscotch-common/src/composables/codemirror.ts(+2 -2)➕
packages/hoppscotch-common/src/helpers/auth/digest.ts(+147 -0)...and 9 more files
📄 Description
Closes HFE-570
What's changed
This PR introduces Digest authentication as new request auth types.
Note for reviewers
Digest auth works in two stages.
First, it requests for an initial response, where we get necessary information like realm, nonce, algorithm, etc., from the server in the header WWW-Authenticate.
Then, we have to parse information from that header. Finally, we have to generate an authorization header and request with that auth header in the Authorization header property.
To test digest auth in CLI
hopp test src/__tests__/e2e/fixtures/collections/digest-auth-coll.json -e src/__tests__/e2e/fixtures/environments/digest-auth-envs.json🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.