question

sinanozeray avatar image
sinanozeray asked

Google Account Login Fail

Hello,

I've implemented PlayFab to my Unity game for Photon custom authentication. It worked ridiculously good so far. I really appreciate the work behind this.

My only problem so far is I couldn't get Google login to work. I already linked my Web Client ID to my dev console, and I can get my ServerAuthCode. But when I request a login with the Google account, I get the following error.

"redirect_uri_mismatch", "Bad_request"


I've checked my game's URI credentials in the dev console, and changed them several times. However, I can't get any of them to work. What do I have to put in the URI fields in the console?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Can you check that your Authorized Redirect URL in the Google settings for your project is set to "https://oauth.playfab.com/oauth2/google" (https://playfab.com/blog/setting-up-google-sign-in/)?

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sinanozeray avatar image sinanozeray commented ·

Thank you so much. I haven't seen that blog post. This fixed the issue.

0 Likes 0 ·
mkolinichenko avatar image mkolinichenko commented ·
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.