[GH-ISSUE #5218] [bug]: Blank page when generating OAuth 2 credentials #1990

Open
opened 2026-03-16 22:46:48 +03:00 by kerem · 3 comments
Owner

Originally created by @AshCorr on GitHub (Jul 2, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5218

Originally assigned to: @CuriousCorrelation on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Desktop App

Browser

Firefox

Operating System

macOS

Bug Description

After configuring the "OAuth 2" authorizer using the "Authorization Code" grant, I get a blank page after trying to generate a token. Checking the network tab it looks like I make it through our OAuth flow and I am redirected back to app://hoppscotch/oauth?code=(code)&state=(state) where I get a 404 from Hoppscotch.

Image

This seems to have broke at some point as I was previously able to generate tokens until I updated to the latest version of the desktop app. I also noticed at the same time that the Hoppscotch redirect URI changed from "tauri://localhost/oauth" to "app://hoppscotch/oauth" which I'm unsure is related or not.

Tried reverting to V25.1.1-2 and it looks like it still worked at that point.

Deployment Type

Hoppscotch Cloud

Version

No response

Originally created by @AshCorr on GitHub (Jul 2, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5218 Originally assigned to: @CuriousCorrelation on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Desktop App ### Browser Firefox ### Operating System macOS ### Bug Description After configuring the "OAuth 2" authorizer using the "Authorization Code" grant, I get a blank page after trying to generate a token. Checking the network tab it looks like I make it through our OAuth flow and I am redirected back to `app://hoppscotch/oauth?code=(code)&state=(state)` where I get a 404 from Hoppscotch. <img width="971" alt="Image" src="https://github.com/user-attachments/assets/ef266678-62f1-467e-a863-a557d6d03142" /> This seems to have broke at some point as I was previously able to generate tokens until I updated to the latest version of the desktop app. I also noticed at the same time that the Hoppscotch redirect URI changed from "tauri://localhost/oauth" to "app://hoppscotch/oauth" which I'm unsure is related or not. Tried reverting to [V25.1.1-2](https://github.com/hoppscotch/releases/releases/tag/v25.1.1-2) and it looks like it still worked at that point. ### Deployment Type Hoppscotch Cloud ### Version _No response_
Author
Owner

@amantiwari57 commented on GitHub (Jul 4, 2025):

Hey @CuriousCorrelation — just wanted to check, is this behavior happening across all OAuth providers, or is it specific to one? I was able to sign in using Google without any issues, so wondering if it's isolated to a particular provider or config.

Also, could the change from tauri://localhost/oauth to app://hoppscotch/oauth be related?

Happy to help test on my end if needed!

<!-- gh-comment-id:3036587946 --> @amantiwari57 commented on GitHub (Jul 4, 2025): Hey @CuriousCorrelation — just wanted to check, is this behavior happening across all OAuth providers, or is it specific to one? I was able to sign in using Google without any issues, so wondering if it's isolated to a particular provider or config. Also, could the change from tauri://localhost/oauth to app://hoppscotch/oauth be related? Happy to help test on my end if needed!
Author
Owner

@CuriousCorrelation commented on GitHub (Jul 4, 2025):

Hi @amantiwari57, this issue is about OAuth 2 authorization for API testing, not signing into Hoppscotch itself.

Also, could the change from tauri://localhost/oauth to app://hoppscotch/oauth be related?

This is already mentioned in the original issue description. The change is expected, it's the callback handling that's failing, or rather the comms channel between them.

<!-- gh-comment-id:3036687128 --> @CuriousCorrelation commented on GitHub (Jul 4, 2025): Hi @amantiwari57, this issue is about OAuth 2 authorization for API testing, not signing into Hoppscotch itself. > Also, could the change from tauri://localhost/oauth to app://hoppscotch/oauth be related? This is already mentioned in the original issue description. The change is expected, it's the callback handling that's failing, or rather the comms channel between them.
Author
Owner

@amantiwari57 commented on GitHub (Jul 4, 2025):

ohh will test it

<!-- gh-comment-id:3036857036 --> @amantiwari57 commented on GitHub (Jul 4, 2025): ohh will test it
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#1990
No description provided.