Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: google auth callback not working on self host #3989

Open
1 task done
Chronos77 opened this issue Apr 19, 2024 · 3 comments
Open
1 task done

[bug]: google auth callback not working on self host #3989

Chronos77 opened this issue Apr 19, 2024 · 3 comments
Assignees
Labels
bug Something isn't working need testing Needs to be tested before merging onto production self-host Self hosted Hoppscotch instance

Comments

@Chronos77
Copy link

Chronos77 commented Apr 19, 2024

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

@Chronos77 Chronos77 added bug Something isn't working need testing Needs to be tested before merging onto production labels Apr 19, 2024
@JoelJacobStephen JoelJacobStephen added the self-host Self hosted Hoppscotch instance label Apr 22, 2024
@balub
Copy link
Member

balub commented 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.

@balub balub self-assigned this Apr 23, 2024
@Chronos77
Copy link
Author

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?

@balub
Copy link
Member

balub commented Apr 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need testing Needs to be tested before merging onto production self-host Self hosted Hoppscotch instance
Projects
None yet
Development

No branches or pull requests

3 participants