Closed rat-matheson closed 1 year ago
So I think I found the solution. The google client id for the demo app is '624796833023-clhjgupm0pu6vgga7k5i5bsfp6qp6egh.apps.googleusercontent.com'. I suspect the 'Authorized JavaScript origins' in the console.cloud.google.com is set to http://localhost:somePort. It needs to not have the port and just be http://localhost, even if the port in the console matches the angular server (ie 4200 by default). This stackoverflow comment has a bit more detail.
You might not notice the issue if you are validating the demo app locally using https or using your own custom google client api. However, using the one that is currently set for the demo fails and likely needs to be updated. Can a maintainer check this and update the configuration?
On my end, I just created a new client and gave it the appropriate settings and can now load the demo app with no issues.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I've cloned the repo and am building the latest commit 1a1201b783. When I run the demo app, I get a few errors for the google login.
I've tried using the default google client id as well as my own and get the same results. Here are the errors I'm seeing:
My google config setup
I suspect this is somewhat irrelevant if using the default clientId of 624796833023-clhjgupm0pu6vgga7k5i5bsfp6qp6egh.apps.googleusercontent.com. However, when I used my own client id, I went through the following process.
Debbuging
Loading the button image
Looks like an authorization issue.
From the console
From the network tab:
https://accounts.google.com/gsi/status?client_id=624796833023-clhjgupm0pu6vgga7k5i5bsfp6qp6egh.apps.googleusercontent.com&as=o%2FMHOfjuIn%2BLhWpvNOCjLw
Same thing pretty much for the button
https://accounts.google.com/gsi/button?type=icon&size=medium&text=signin_with&width&shape=rectangular&theme=outline&logo_alignment=left&locale&client_id=624796833023-clhjgupm0pu6vgga7k5i5bsfp6qp6egh.apps.googleusercontent.com&iframe_id=gsi_733389_980571&as=o%2FMHOfjuIn%2BLhWpvNOCjLw
Other issues
I suspect solving the button issue with solve the other issues