googleapis / googleapis/google-api-nodejs-client
Play Games Services Server-Side API Access sample
- Vorherrschende Sprache
- TypeScript
- Sterne
- 12.3k
- Forks
- 2k
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 24
Beschreibung
I'm trying to implement the Java example [shown here](https://developers.google.com/games/services/android/offline-access#exchange_the_server_auth_code_for_an_access_token_on_the_server) with Nodejs using the client libraries. My server runs as a Cloud Run Service. I've tried several variations of the samples shown here, but they all ended up `Invalid Credentials` error.
Required credentials are all set up in Play Console, the Android client can login to Games Services, can get the authCode [as shown here](https://developers.google.com/games/services/android/offline-access#get_the_server_auth_code), pass that code to server, and I could not figure out how to proceed after that. I just want to verify this player on the server, calling `applications.verify()` method.
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten Dokumentation zum Offline-Zugriff von Play Games Services und dem Autorisierungsablauf der Node.js-Clientbibliothek. Verfolge, wie der Server-Autorisierungscode ausgetauscht wird, bevor applications.verify() aufgerufen wird; abgeschlossen ist die Aufgabe, wenn der Cloud Run-Dienst den Spieler verifizieren kann, ohne Invalid Credentials zurückzugeben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js
- Bereich
- api, authentication, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100