[GH-ISSUE #3989] [bug]: google auth callback not working on self host #1402

Open
opened 2026-03-16 20:12:02 +03:00 by kerem · 4 comments
Owner

Originally created by @Chronos77 on GitHub (Apr 19, 2024).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3989

Originally assigned to: @balub on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

when I launch dockers and I try to connect to the admin part with google, it redirects me to the callback inquire however that does nothing and it leaves me on the login page, without any error in the admin logs or backend.

Steps to reproduce

  1. update env variable
  2. start docker containers
  3. try to connect admin console

Environment

Deploy preview

Version

Self-hosted

Originally created by @Chronos77 on GitHub (Apr 19, 2024). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3989 Originally assigned to: @balub on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior when I launch dockers and I try to connect to the admin part with google, it redirects me to the callback inquire however that does nothing and it leaves me on the login page, without any error in the admin logs or backend. ### Steps to reproduce 1. update env variable 2. start docker containers 3. try to connect admin console ### Environment Deploy preview ### Version Self-hosted
Author
Owner

@balub commented on GitHub (Apr 23, 2024):

Hey @Chronos77, please feel free to correct me if I got this wrong. After going through the complete login flow with Google successfully you are left back on the login screen not logged into Hoppscotch ?

If this is the case is your instance running on HTTP ? Hoppscotch uses HTTP secure cookies which means unless its HTTPS the cookies don't get saved in the browser.

<!-- gh-comment-id:2071647537 --> @balub commented on GitHub (Apr 23, 2024): Hey @Chronos77, please feel free to correct me if I got this wrong. After going through the complete login flow with Google successfully you are left back on the login screen not logged into Hoppscotch ? If this is the case is your instance running on HTTP ? Hoppscotch uses HTTP secure cookies which means unless its HTTPS the cookies don't get saved in the browser.
Author
Owner

@Chronos77 commented on GitHub (Apr 24, 2024):

Hello, thank you for your answer.

This is indeed the case regarding my problem.

Currently on the instance, I am using ports 3100, 3170 and 3000. Then we set up a load balancer which redirects an HTTPS url to one of its ports.

I therefore suppose that we would have to run the hoppscotch server in https, is that right? Is there an easy way to put it in https?

<!-- gh-comment-id:2074209472 --> @Chronos77 commented on GitHub (Apr 24, 2024): Hello, thank you for your answer. This is indeed the case regarding my problem. Currently on the instance, I am using ports 3100, 3170 and 3000. Then we set up a load balancer which redirects an HTTPS url to one of its ports. I therefore suppose that we would have to run the hoppscotch server in https, is that right? Is there an easy way to put it in https?
Author
Owner

@balub commented on GitHub (Apr 25, 2024):

@Chronos77 yes, can you look into TLS certificates and how you can get them for your domain ?

<!-- gh-comment-id:2077969455 --> @balub commented on GitHub (Apr 25, 2024): @Chronos77 yes, can you look into TLS certificates and how you can get them for your domain ?
Author
Owner

@balub commented on GitHub (May 14, 2024):

@Chronos77 are you still facing this issue?

<!-- gh-comment-id:2109403549 --> @balub commented on GitHub (May 14, 2024): @Chronos77 are you still facing this issue?
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#1402
No description provided.