Google login sometimes fails without error
-
I'm trying to get Google login to work with the latest FusionAuth (1.26.1) and Chrome (90.0.4430.93). In 2 out of 3 profiles, it works fine: A window pops up to authorize the app, I click okay, the FusionAuth login form dims and shows a spinning icon, and then it redirects to my app.
In the third profile, the first two things happen but the last two don't. If I click Login with Google again, the Google-hosted window pops up for a second then immediately closes, but FusionAuth again does nothing more (no dimming or spinning icon). Nothing in the console, nothing in the FusionAuth event log (IdP debug is enabled). The only thing that happens is a POST to
https://play.google.com/log?format=json&hasfast=true&authuser=0
. Any ideas on how to debug this? -
@trevorr Ok, I think I found the cause: the Privacy Badger extension. Not sure if it's fixable or worth fixing.
-
Based on what I am seeing here, I don't believe this is an issue with FusionAuth, but if you discover something else, please let us know and we can file a bug report.
As you might have indicated, my instincts are telling me you had a popup rule blocking the required dialogs or that something in Privacy Badger does not like a combination of the "post" and something else about that URL. You could try disabling certain "privacy rules/settings" (not very familiar with Privacy Badger) to see if that alleviates your problem.
Let me know if you find anything further!
Thanks,
Josh -
@trevorr I am facing the same problem..I tried every possible solution from google but I can not figure this out..can you please help me how can you fix the error?
This Error happens when I try to log in by google using the google OAuth client Id.POST-https://play.google.com/log?format=json&hasfast=true&authuser=0 401
-
@md-tanveeraj Can you confirm how you are intergrating Google?
The two most common implementations of Google + FusionAuth are via the hosted pages (where you have FusionAuth display a
login with google
- https://fusionauth.io/docs/v1/tech/identity-providers/google) or via writing your own login page and Google integration (login with google via API - https://fusionauth.io/docs/v1/tech/apis/identity-providers/google#complete-the-google-login)I might need some more context to be able to provide additional assistance.
Thanks,
Josh