Home Game Development unity – Learn how to authenticate request for participant information utilizing Google Play Companies?

unity – Learn how to authenticate request for participant information utilizing Google Play Companies?

0
unity – Learn how to authenticate request for participant information utilizing Google Play Companies?

[ad_1]

I take advantage of this line of code to get the person server entry token in Unity:

 PlayGamesPlatform.Occasion.RequestServerSideAccess(true, Callback);

the callback responds with a code. after that, I would like to make use of this code to get participant info on the server facet.

I have already got used access_token, id_token, and api_key from the Google developer console. I’ve used many alternative settings, however I at all times get 401 invalid authentication responses.

I take advantage of C# ASP Core on the server facet, however I believe I can use uncooked HTTP request to get a response. I must know the appropriate setup to ship the request to Google’s API.

Right here is one setup that did not work:

   payload = await GoogleJsonWebSignature.ValidateAsync(request._googleTokenId,
                    new 
 GoogleJsonWebSignature.ValidationSettings()ForceGoogleCertRefresh = true });

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here