[bug]: google auth callback not working on self host
Chronos77 opened this issue · comments
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
- update env variable
- start docker containers
- try to connect admin console
Environment
Deploy preview
Version
Self-hosted
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.
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?
@Chronos77 yes, can you look into TLS certificates and how you can get them for your domain ?
@Chronos77 are you still facing this issue?