Hey, I am using the very latest build of the Google Play Games SDK for Unity from Github. It appears that it has changed a bit. When I attempt to get the server auth token from Google and pass it through to PlayFab I get a GoogleOAuthNoIdTokenIncludedInResponse error and the login fails. There are numerous threads about this message all saying to add the profile scope. I cant find a way to do that in the latest Google Play Games SDK version, how does this all come together now?
Which PlayFab API do you use currently? Would you also share some code snippets with us so that we can dig into it.
I have same error.
Code:
PlayGamesPlatform.Instance.Authenticate(status => { PlayGamesPlatform.Instance.RequestServerSideAccess(true, code => { PlayFabClientAPI.LoginWithGoogleAccount(new LoginWithGoogleAccountRequest() { TitleId = PlayFabSettings.TitleId, ServerAuthCode = code, CreateAccount = false }, OnGoogleLoginSuccess, OnGoogleLoginFailure); }); });
Answer by Jay Zuo · May 03 at 06:34 AM
To get LoginWithGoogleAccount work, we will need a ServerAuthCode which has the "profile" access, so that PlayFab backend can use it to retrieve Google account information. If the ServerAuthCode is got without "profile" scope, "GoogleOAuthNoIdTokenIncludedInResponse" error will be returned as in Google sign-in required 'profile' scope? - Playfab Community.
However, since Version 0.11.01 of Google Play Games plugin for Unity, "Extra scopes cannot be requested".
We've reported this issue to our engineering team. Currently, please use Version 0.10.14 as a workaround.
Answer by James Battersby · Apr 18 at 03:31 PM
PlayGamesClientConfiguration and GetServerAuthCode() have been removed (or are missing) from the latest Unity Google Play plugin so there's no way to get the appropriate server auth code. The only workaround at the amount is to use version 0.10.14 or earlier ( https://github.com/playgameservices/play-games-plugin-for-unity/tree/563d7ac6c4c9f5994f5dfceef98b5ef0c1d9f935 )
This needs to be resolved between Playfab + Google + Unity.
I'm brand new to this. I couldn't find the configuration APIs documented in the SDK package. The PlayGamesClientConfiguration seems to be removed entirely and GetServerAuthCode() is replaced by RequestServerAuthCode().
A call to PlayGamesPlatform.Authenticate() followed by PlayGamesPlatform.RequestServerSideAccess() seems to return a legitimate auth code. The subsequent call to PlayFabClientAPI.LoginWithGoogleAccount() with that code assigned to ServerAuthCode arrives at the same issue though, "GoogleOAuthNoIdTokenIncludedInResponse".
I tried calling PlayGamesPlatform.RequestServerSideAccess() with and without forceRefreshToken set and even tried LoginWithGoogleAccountRequest() just to test, all the same result.
Answer by Jannick Leismann · Apr 25 at 06:18 PM
This really needs attention since login in with latest google play game services plugin is not working anymore.
No free servers available 1 Answer
How can I use the Playfab API while writing a Cloud Script with TypeScript? 1 Answer
application id must be a numeric value. please verify that your manifest 1 Answer
How to download content from cdn? 1 Answer
Running a PlayFabServerSDK works without container but not with docker 1 Answer