question

Dmitrii Osipov avatar image
Dmitrii Osipov asked

Google login using play game services

i has tried to login with this plugin to provide frow fith saving progress across devices. Also i have setup all settings in title addons page and developer console \ play games settings console section. Web binding also provided and testet via google.

Web client ID in plugin settings provided from this app. In PlayGamesPlatform.GetServerAuthCode i successfully got a token. But passing it into LoginWithGoogle causes InvalidGoogleToken error. What i'm doing wrong?

sdks
q.png (3.7 KiB)
10 |1200

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

brendan avatar image
brendan answered

Just making sure all the other threads on this topic have the updated info: We do now support the newer Google authentication (ServerAuthCode) process. Please see this post for more information: https://playfab.com/blog/setting-up-google-sign-in/.

10 |1200

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

brendan avatar image
brendan answered

The Google Play Game Services plugin uses Google's v3 model for authentication, which is not yet supported. We are tracking on that in this thread, which provides more information on this topic: https://community.playfab.com/questions/574/207827387-Login-with-Google-token-issue.html.

3 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.

Dmitrii Osipov avatar image Dmitrii Osipov commented ·

ok, thanx. But i need it as soon as possible. can i validate this token in another way?

via http request from cloud script or custom server for example?

0 Likes 0 ·
brendan avatar image brendan Dmitrii Osipov commented ·

The existing (V2) Google token service isn't going away in the foreseeable future, and does work fine to get you the token you need to sign into PlayFab. We discuss using it in the other thread, and the login sample in GitHub: https://github.com/PlayFab/Unity3d_Login_Example_Project. We will be updating for Google's V3 tokens as soon as we can.

0 Likes 0 ·
justas.antanauskas@gmail.com avatar image justas.antanauskas@gmail.com brendan commented ·

Me too encountered this issue. I keep searching for a workaround and always end up to the old login sample in GitHub which is deprecated. So I am stuck cause V3 tokens don't work yet and V2 sample is not available.

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.