mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #2089] [bug]: Unable to login via GitHub or Google - Selfhosted (Docker) #692
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#692
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 @ChadDa3mon on GitHub (Jan 25, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2089
Is there an existing issue for this?
Current behavior
I have installed a new instance of Hoppscotch using the docker run command in the documentation. When I try to log in with GitHub or Google, it fails. Email also fails, but that is to be expected in this environment.
With GitHub or Google, a window pops open and closes immediately, then I just get an error that says "Something went wrong"
I have tried this in Firefox, Firefox using incognito mode (to disable my addons) and in Edge (stock install with no addons). The issue is the same across all 3 instances. I've searched through your bugs and found similar issues but they were using Brave or Vivaldi.
If I try to use the email option to login, I get the following error: "Firebase: Error (auth/requests-from-referer-http://10.X.Y.Z:3000-are-blocked.)."
This feels like it could be relevant, but again, I don't get that error when I try GitHub or Google.
Looking at the logs in docker doesn't show anything useful either.
Steps to reproduce
Install from Docker (docker run --rm --name hoppscotch -p 3000:3000 hoppscotch/hoppscotch:latest)
Access main page at http://:3000
Try to login using GitHub or Google
Browsers: Firefox and Edge
Environment
Production
Version
Self-hosted
@liyasthomas commented on GitHub (Jan 26, 2022):
As mentioned in our development guidlines, environment variables need to be updated with your own Firebase keys to make the Authentication system work - sample environment variables only work for the production channel.
Read more about hosting Hoppscotch.