Skip to content
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

Google logo missing but sso working #356

Open
KoushikVanama opened this issue Jul 9, 2024 · 2 comments
Open

Google logo missing but sso working #356

KoushikVanama opened this issue Jul 9, 2024 · 2 comments

Comments

@KoushikVanama
Copy link

I am getting 400 bad request error for this api. This api gets called when your page (login or index) gets loaded and return the html of the button. This below api gives 400 bad request error(see below image) in production but in localhost its working fine.

https://accounts.google.com/gsi/button?type=icon&theme=outline&size=large&text=undefined&shape=pill&logo_alignment=undefined&width=undefined&locale=undefined&click_listener=undefined&client_id=780874297945-onnb84i8bmuaeli6vgpf2onch4up9r4o.apps.googleusercontent.com&iframe_id=gsi_832192_371730&as=b7N5%2FZ1fsOGujD%2FFlSZ9rA

Screenshot 2024-07-09 at 11 27 51 PM

As you can see below I only get the round icon but not the G logo inside it. I have added my domain in console and our domain is https only. Any potential findings that you find in this usecase?

image

version: 0.12.1

@ZtheLeader
Copy link

@KoushikVanama I'm facing the exact same issue. Did you find any solutions to that?

@ZtheLeader
Copy link

I figured out the issue. My site uses different TLDs, and it wasn't working for some of them. Upon investigation, I discovered that the domains were not listed in the Google Console Manager.
After adding the missing TLD URLs, it started working. However, you must include the full URL with the protocol.

For example, "www.github.com/" may not work, but "https://www.github.com/" will. Hope this helps others!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants