-
Notifications
You must be signed in to change notification settings - Fork 71
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
Facebook auth failed #339
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Ignore the previous message, inspecting the screenshot looks like everything should be configured fine. |
I printed |
Oh so that's why. I'm expecting auth to not be empty since it should contain the Facebook access token. |
I putted a breakpoint in L400 and a
|
I'm testing and cannot reproduce the error. |
Yeah, can it be something in the Facebook app itself? Is there somewhere that shows how to set up the Facebook app page? Should I use a test app or a normal app? |
We don't have our "official" guide yet, but basically you can just follow this article since 99% of the stuff that should be configured is not specifically related to our plugin, but general Firebase and OAuth2 flow. 👉 guide [firebase/environment_variables]
apiKey="xxx"
authDomain="xxx"
databaseURL="xxx"
projectId="xxx"
...
[firebase/auth_providers]
facebook_id="xxx"
facebook_secret="xxx" And everything should just work fine. |
Instead of hitting localhost, what happens if you change it to 127.0.0.1? I'm having issues where my firebase emulator cannot be resolved from godot, and changing the GodotFirebase code from localhost to 127.0.0.1 made it work for me. |
If it works for you, that's ok. There's should me no issue about changing from localhost to 127.0.0.1. |
Correct, it needs to be mapped in hosts correctly. I just wondered if the user might be having the same issue. |
As it happened for you, there might be a chance a user may have the same issue, even if very low. |
There's something much bigger here. The entire OAuth2 flow is fully broken now due to deprecations on the Firebase side, removing the loopback URLs in addition to the original URL style. I'm actually going to close this, and when I have a moment, open an entirely new bug to track the issue. |
Describe the bug
Trying to use
Firebase.Auth.get_auth_localhost(Firebase.Auth.get_FacebookProvider())
to login using Facebook but it doesn't work.Expected behavior
Firebase.Auth.get_auth_localhost(Firebase.Auth.get_FacebookProvider())
Should open a working page to login (this part works) but after that, I get redirected to http://localhost:5000/ with the error "localhost refused to connect." Also, sometimes it works but I get an error message in Godot.Screenshots
Environment:
Additional context
The login screen opens but after that, the redirect link doesn't work (the profile doesn't get registered in The Firebase users).
Did I miss a setting somewhere?
The text was updated successfully, but these errors were encountered: