mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5358] [bug]: Authorization code flow not starting with PKCE #2048
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#2048
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?
Originally created by @macmessa on GitHub (Aug 28, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5358
Originally assigned to: @anwarulislam on GitHub.
Is there an existing issue for this?
Platform
Web App/Desktop App
Browser
Edge Version 134.0.3124.72
Operating System
Windows
Bug Description
Since lots of the apps created in our authorization server are public clients, they implement the PKCE for client authentication.
I've tried to set an authorization code flow with PKCE, so the label
Code Challengeshows up, but with no additional fields likeCode VerifierandCode Challenge Method, I think this might be triggering a form validation when I clickGenerate Token, requesting these fields (they are needed).Deployment Type
Self-hosted (on-prem deployment)
Version
v2025.7.1
@Gandhi11 commented on GitHub (Sep 18, 2025):
Same problem here. I think the "algorithms" dropdown should be shown which is not the case at the moment.
@Gandhi11 commented on GitHub (Sep 18, 2025):
In local development the dropdown is there. But not in builded web app or desktop app.
@Gandhi11 commented on GitHub (Sep 19, 2025):
@macmessa Is the collection you are trying to add this is a imported collection? On my side it seems to work when it is a completely new collection...
@macmessa commented on GitHub (Sep 19, 2025):
Yes, turns out it was because it was an imported collection, I had to create a new one and recreate all of the endpoints, making the import useless for me, in this case.
@anwarulislam commented on GitHub (Oct 6, 2025):
Hello @Gandhi11, @macmessa,
Following the discussion, it seems that the issue may not be related to the PKCE implementation. The problem pertains to the failure to display all the required fields after the import of collections. However, when a new collection is created, it functions correctly. Could you please confirm if this is accurate or provide further details?
@macmessa commented on GitHub (Oct 6, 2025):
Exactly, only fails when it's a n imported collection, it does not display all required fields.
@anwarulislam commented on GitHub (Oct 6, 2025):
@macmessa, thanks for the confirmation.
@Gandhi11 commented on GitHub (Oct 9, 2025):
@anwarulislam After investigating the TeamCollection entry in the database. It look like the required key codeVerifierMethod is missing in the auth key of the data column. I think it should be "plain" or "S256".
Here's a look at the data after the postman importation.
Here's a look at the data on a working collection.
Hope this help.
@anwarulislam commented on GitHub (Oct 13, 2025):
@Gandhi11, I just submitted the PR. It is expected to address the issue. If you could confirm and verify the changes, it would be greatly appreciated. Please inform me if it is functioning correctly.
@jamesgeorge007 commented on GitHub (Oct 31, 2025):
Hi, closing this issue since the patch is now live with the latest release. Please feel free to share any feedback.