mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #3798] [bug]: "Generate Token" failed due to authorization code flow is sending with GET for OAuth 2.0 #1329
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#1329
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 @Leon-Luu on GitHub (Feb 1, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3798
Is there an existing issue for this?
Current behavior
We are not able to Generate Token and received errors for the OAuth2.0 authentication with Client Credential flow. During the request to the authentication server we could see the browser network inspect that Request Method is GET which causing authorization server returning rejections.
With the same OAuth2.0 authentication request using Postman with the Grant type => Client Credential,

Postman is able to retrieve the access token by "Get New Access Token" as Postman always send to OAuth2 request as POST .
How is Hoppscotch supporting this Grant type : Client Credentials flow for OAuth2.0 ?
Steps to reproduce
Create a request to an authorized API with OAuth2.
Set authorization type to "OAuth 2.0".
Configure the authorization code flow by setting client id & secret
Click "Generate Token".
=> Expected response with access tokens
Environment
Production
Version
Cloud
@liyasthomas commented on GitHub (Feb 2, 2024):
@amk-dev can you look into this?
@Leon-Luu commented on GitHub (Feb 2, 2024):
Updated with more info that this is Client Credentials flow of OAuth2.0 which is not working/supported in Hoppscotch
@Leon-Luu commented on GitHub (Feb 2, 2024):
I can see this is related to https://github.com/hoppscotch/hoppscotch/pull/3413 , when can you merge that feature?
@Leon-Luu commented on GitHub (Mar 12, 2024):
Same as https://github.com/hoppscotch/hoppscotch/pull/3413