Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by carlgfinity · Apr 01 at 05:44 AM · sdks

GoogleOAuthNoIdTokenIncludedInResponse When Logging In With Google Play

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?

Comment
Andrey Svershko
Bernhard Klemenjak

People who like this

2 Show 2
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Apr 01 at 06:08 AM 0
Share

Which PlayFab API do you use currently? Would you also share some code snippets with us so that we can dig into it.

avatar image Andrey Svershko · Apr 13 at 06:05 AM 0
Share

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);
   });
});


5 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

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.

Comment
Matthew Sanford
Bernhard Klemenjak

People who like this

2 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

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.

Comment
Jannick Leismann
Bernhard Klemenjak

People who like this

2 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Matthew Sanford · May 03 at 03:36 AM 0
Share

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.

avatar image

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.

Comment
Bernhard Klemenjak

People who like this

1 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Bernhard Klemenjak · May 03 at 01:24 AM

Same here, I needed to downgrade again :/

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Gruff · Jun 25 at 09:57 AM

Same here. Downgrading to GPGS v10.14 and using the old .Builder() pattern was the only way I could get this to work.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    8 People are following this question.

    avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

    Related Questions

    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

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges