playgameservices / play-games-plugin-for-unity

Google Play Games plugin for Unity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Play Games Services v2 SDK: How to obtain IdToken (Open ID Connect ID Token)?

scrapHandler opened this issue · comments

With v1 we could specify the scope with RequestIdToken() and could get a "Open ID Connect ID Token" with GetIdToken().

How would we do this with the newest version >= 0.11.01 ?

(I know we now can call RequestServerSideAccess() to get an AuthCode, which we can exchange for an AccessToken/RefreshToken on a server, but I actual need an IdToken)

I have the same issue here! I'm trying to complete the google auth flow with the server side, but I don't know where is the idToken, since we can't use the normal OAuth operations in server because the request is redirected to the google login page

Hello,

We have the same question here. How are we supposed to verify the Player ID on the server side?
Can someone answer this please? Right now I've seen multiple threads on the Unity forum that suggest to downgrade to a previous version.

Hi,

We also have same issue. We need to obtain IdToken to complete server side flow.

Hi,

We also have same issue. We need to obtain IdToken to complete server side flow.

You have to use the google sign in SDK for unity rather than this