Monday, August 8, 2022
HomeGame Developmentunity - How you can authenticate request for participant information utilizing Google...

unity – How you can authenticate request for participant information utilizing Google Play Providers?


I exploit this line of code to get the consumer 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 data 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 various settings, however I at all times get 401 invalid authentication responses.

I exploit C# ASP Core on the server facet, however I feel I can use uncooked HTTP request to get a response. I must know the suitable 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 });

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments